Podczas kompilowania kdesupport ze źródeł, od bardzo długiego czasu otrzymuję pewną listę błędów. Domyślam się co jest nie tak, ale niestety rozwiązania znalezione w internecie nie pomogły. :/ Jeśli ktoś miał coś podobnego i udało mu się to rozwikłać, to proszę o pomoc.
Kompilacja kdesupport z svn:
Kod: Zaznacz cały
-- Found Qt-Version 4.4.0 (using /home/kde-devel/qt-copy/bin/qmake)
-- Found Automoc4: /home/kde-devel/kde/build/KDE/kdesupport/automoc/automoc4
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ xsltproc
+ MySQL Server
Congratulations! All external packages have been found.
-----------------------------------------------------------------------------
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found CppUnit: /usr/lib/libcppunit.so
-- Found Qt-Version 4.4.0
-- Could not find Java JNI
-- Found CLucene library: /usr/lib/libclucene.so
-- Found CLucene include dir: /usr/include
-- Found CLucene library dir: /usr/lib
-- Found CLucene: /usr/lib/libclucene.so
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
---------------------------------------------------------------------------------------
-- Soprano Components that will be built:
* The CLucene-based full-text search index library
-- Soprano Components that will NOT be built:
* Redland storage backend
* Sesame2 storage backend (java-based)
* Raptor RDF parser
* Raptor RDF serializer
---------------------------------------------------------------------------------------
** Expat is disabled. No support for XML via Expat
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found CLucene library: /usr/lib/libclucene.so
-- Found CLucene include dir: /usr/include
-- Found CLucene library dir: /usr/lib
-- Found CLucene: /usr/lib/libclucene.so
** CLucene is found. Support for CLucene backend is enabled
** HyperEstraier is disabled. No support for HyperEstraier backend
** SQLite is disabled. No support for SQLite backend
** Exiv2 is found. Support for indexing of EXIF/IPTC metadata is enabled
-- Found Qt-Version 4.4.0
** Qt4 is found. Support for Qt4 GUI client is enabled
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found dbus-1 release >= 1.0
** DBus-1 is found. Support for DBus interface in Strigi daemon is enabled
** Log4cxx is disabled. No support for advanced logging
** FAM is disabled. No support for efficient file change monitoring system
-- Found cppunit: /usr/lib/libcppunit.so
** CppUnit is found. Support for Strigi unit tests is enabled
** Java is found. Support for generating xsd parser from *.xsd files is enabled
-- dbus support enabled
-- Found Qt-Version 4.4.0 (using /home/kde-devel/qt-copy/bin/qmake)
-- Configuring done
CMake Warning (dev) at akonadi/libs/CMakeLists.txt:16 (add_library):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "akonadiprotocolinternals" links to some libraries for which
the linker must search:
-lpthread
and other libraries with known full path:
/home/kde-devel/qt-copy/lib/libQtCore.so
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
Po tym pojawia się liste tego co się udało, nie ma sensu jej wstawiać, jest długa i naprawdę nic ciekawego w niej nie ma, wszystko przebiega bezproblemowo, aż w końcu zatrzymuje się na 100% i wywala kilka błędów i ostrzeżeń.
Kod: Zaznacz cały
----------
1. ERROR in xsdparser/xsdparser.java (at line 81)
List<Class> classes = new ArrayList<Class>();
^^^^
The type List is not generic; it cannot be parameterized with arguments <Class>
----------
2. ERROR in xsdparser/xsdparser.java (at line 81)
List<Class> classes = new ArrayList<Class>();
^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
3. ERROR in xsdparser/xsdparser.java (at line 81)
List<Class> classes = new ArrayList<Class>();
^^^^^^^^^
The type ArrayList is not generic; it cannot be parameterized with arguments <Class>
----------
4. ERROR in xsdparser/xsdparser.java (at line 81)
List<Class> classes = new ArrayList<Class>();
^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
5. ERROR in xsdparser/xsdparser.java (at line 86)
classes.addAll(c.getClasses());
^^^^^^^^^^
The method getClasses() is undefined for the type Class
----------
6. ERROR in xsdparser/xsdparser.java (at line 115)
for (Class c : classes) {
^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
7. ERROR in xsdparser/xsdparser.java (at line 183)
c.atts.put(aname, atype);
^^^^^^
c.atts cannot be resolved or is not a field
----------
8. ERROR in xsdparser/xsdparser.java (at line 225)
part.seqtype = (min == 1 && max == 1) ? SequencePart.Type.SINGLE
^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
9. ERROR in xsdparser/xsdparser.java (at line 225)
part.seqtype = (min == 1 && max == 1) ? SequencePart.Type.SINGLE
^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
10. ERROR in xsdparser/xsdparser.java (at line 226)
: SequencePart.Type.LIST;
^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
11. ERROR in xsdparser/xsdparser.java (at line 230)
c.sequence.add(part);
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
12. ERROR in xsdparser/xsdparser.java (at line 238)
c.sequence.add(part);
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
13. ERROR in xsdparser/xsdparser.java (at line 271)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
14. ERROR in xsdparser/xsdparser.java (at line 271)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^
The type Map.Entry is not generic; it cannot be parameterized with arguments <String, String>
----------
15. ERROR in xsdparser/xsdparser.java (at line 271)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
16. ERROR in xsdparser/xsdparser.java (at line 271)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^^
c.atts cannot be resolved or is not a field
----------
17. ERROR in xsdparser/xsdparser.java (at line 274)
for (SequencePart part : c.sequence) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
18. ERROR in xsdparser/xsdparser.java (at line 274)
for (SequencePart part : c.sequence) {
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
19. ERROR in xsdparser/xsdparser.java (at line 275)
if (part.seqtype == SequencePart.Type.SINGLE) {
^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
20. ERROR in xsdparser/xsdparser.java (at line 275)
if (part.seqtype == SequencePart.Type.SINGLE) {
^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
21. ERROR in xsdparser/xsdparser.java (at line 288)
for (SequencePart part : c.sequence) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
22. ERROR in xsdparser/xsdparser.java (at line 288)
for (SequencePart part : c.sequence) {
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
23. ERROR in xsdparser/xsdparser.java (at line 296)
for (String name : c.atts.keySet()) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
24. ERROR in xsdparser/xsdparser.java (at line 296)
for (String name : c.atts.keySet()) {
^^^^^^
c.atts cannot be resolved or is not a field
----------
25. ERROR in xsdparser/xsdparser.java (at line 300)
if (c.sequence.size() > 0) {
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
26. ERROR in xsdparser/xsdparser.java (at line 304)
for (SequencePart part : c.sequence) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
27. ERROR in xsdparser/xsdparser.java (at line 304)
for (SequencePart part : c.sequence) {
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
28. ERROR in xsdparser/xsdparser.java (at line 305)
if (part.seqtype == SequencePart.Type.SINGLE) {
^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
29. ERROR in xsdparser/xsdparser.java (at line 305)
if (part.seqtype == SequencePart.Type.SINGLE) {
^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
30. ERROR in xsdparser/xsdparser.java (at line 319)
if (c.sequence.size() > 0) {
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
31. ERROR in xsdparser/xsdparser.java (at line 327)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
32. ERROR in xsdparser/xsdparser.java (at line 327)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^
The type Map.Entry is not generic; it cannot be parameterized with arguments <String, String>
----------
33. ERROR in xsdparser/xsdparser.java (at line 327)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
34. ERROR in xsdparser/xsdparser.java (at line 327)
for (Entry<String, String> e : c.atts.entrySet()) {
^^^^^^
c.atts cannot be resolved or is not a field
----------
35. ERROR in xsdparser/xsdparser.java (at line 345)
for (String name : c.atts.keySet()) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
36. ERROR in xsdparser/xsdparser.java (at line 345)
for (String name : c.atts.keySet()) {
^^^^^^
c.atts cannot be resolved or is not a field
----------
37. ERROR in xsdparser/xsdparser.java (at line 350)
for (SequencePart part : c.sequence) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
38. ERROR in xsdparser/xsdparser.java (at line 350)
for (SequencePart part : c.sequence) {
^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
39. ERROR in xsdparser/xsdparser.java (at line 351)
if (part.seqtype == SequencePart.Type.SINGLE) {
^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
40. ERROR in xsdparser/xsdparser.java (at line 351)
if (part.seqtype == SequencePart.Type.SINGLE) {
^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
41. ERROR in xsdparser/xsdparser.java (at line 374)
List<SequencePart> sequence = new ArrayList<SequencePart>();
^^^^
The type List is not generic; it cannot be parameterized with arguments <SequencePart>
----------
42. ERROR in xsdparser/xsdparser.java (at line 374)
List<SequencePart> sequence = new ArrayList<SequencePart>();
^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
43. ERROR in xsdparser/xsdparser.java (at line 374)
List<SequencePart> sequence = new ArrayList<SequencePart>();
^^^^^^^^^
The type ArrayList is not generic; it cannot be parameterized with arguments <SequencePart>
----------
44. ERROR in xsdparser/xsdparser.java (at line 374)
List<SequencePart> sequence = new ArrayList<SequencePart>();
^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
45. ERROR in xsdparser/xsdparser.java (at line 376)
Map<String, String> atts = new HashMap<String, String>();
^^^
The type Map is not generic; it cannot be parameterized with arguments <String, String>
----------
46. ERROR in xsdparser/xsdparser.java (at line 376)
Map<String, String> atts = new HashMap<String, String>();
^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
47. ERROR in xsdparser/xsdparser.java (at line 376)
Map<String, String> atts = new HashMap<String, String>();
^^^^^^^
The type HashMap is not generic; it cannot be parameterized with arguments <String, String>
----------
48. ERROR in xsdparser/xsdparser.java (at line 376)
Map<String, String> atts = new HashMap<String, String>();
^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
49. ERROR in xsdparser/xsdparser.java (at line 378)
List<Class> getClasses() {
^^^^
The type List is not generic; it cannot be parameterized with arguments <Class>
----------
50. ERROR in xsdparser/xsdparser.java (at line 378)
List<Class> getClasses() {
^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
51. ERROR in xsdparser/xsdparser.java (at line 379)
List<Class> classes = new ArrayList<Class>();
^^^^
The type List is not generic; it cannot be parameterized with arguments <Class>
----------
52. ERROR in xsdparser/xsdparser.java (at line 379)
List<Class> classes = new ArrayList<Class>();
^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
53. ERROR in xsdparser/xsdparser.java (at line 379)
List<Class> classes = new ArrayList<Class>();
^^^^^^^^^
The type ArrayList is not generic; it cannot be parameterized with arguments <Class>
----------
54. ERROR in xsdparser/xsdparser.java (at line 379)
List<Class> classes = new ArrayList<Class>();
^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
55. ERROR in xsdparser/xsdparser.java (at line 380)
for (SequencePart part : sequence) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
56. ERROR in xsdparser/xsdparser.java (at line 380)
for (SequencePart part : sequence) {
^^^^^^^^
sequence cannot be resolved
----------
57. ERROR in xsdparser/xsdparser.java (at line 383)
classes.addAll(part.element.getClasses());
^^^^^^^^^^
The method getClasses() is undefined for the type Class
----------
58. WARNING in xsdparser/xsdparser.java (at line 395)
enum Type {
^^^^
'enum' should not be used as an identifier, since it is a reserved keyword from source level 5.0 on
----------
59. ERROR in xsdparser/xsdparser.java (at line 395)
enum Type {
^^^^
enum cannot be resolved to a type
----------
60. ERROR in xsdparser/xsdparser.java (at line 395)
enum Type {
^^^^
Syntax error, insert ";" to complete FieldDeclaration
----------
61. ERROR in xsdparser/xsdparser.java (at line 396)
SINGLE, LIST, SET
^
Syntax error on token ",", delete this token
----------
62. ERROR in xsdparser/xsdparser.java (at line 396)
SINGLE, LIST, SET
^^^
Syntax error, insert ";" to complete BlockStatements
----------
63. ERROR in xsdparser/xsdparser.java (at line 399)
Type seqtype;
^^^^
Type cannot be resolved to a type
----------
63 problems (62 errors, 1 warning)make[2]: *** [strigi/src/xsd/metadataproperties.cpp] Błąd 255
make[1]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/all] Błąd 2
make: *** [all] Błąd 2
Sprawdzałem w kilku miejscach i żadne z poniższego nie działa u mnie, mimo, że u innych działa (różnica pewnie w dystrybucjach):
link1
link2
link3