Created attachment 60040 [details] compile log of kdebindings with kross java enabled Version: unspecified (using KDE 4.6.2) OS: Linux When setting these to on:-DBUILD_java=ON -DENABLE_KROSSJAVA=on the make fails starting with; Scanning dependencies of target libkrossjava [ 79%] Building CXX object java/krossjava/krossjava/CMakeFiles/libkrossjava.dir/libkrossjava_automoc.o [ 79%] Building CXX object java/krossjava/krossjava/CMakeFiles/libkrossjava.dir/jvmvariant.o In file included from /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.cpp:22:0: /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.h: In static member function 'static _jobject* Kross::JavaType<QSize>::toJObject(const QSize&, JNIEnv*)':/java/krossjava/krossjava/jvmvariant.h:241:33: error: invalid use of incomplete type 'const struct QSize' /usr/include/qt4/QtCore/qmetatype.h:303:7: error: forward declaration of 'const struct QSize' /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.h:241:44: error: invalid use of incomplete type 'const struct QSize' /usr/include/qt4/QtCore/qmetatype.h:303:7: error: forward declaration of 'const struct QSize' /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.h: In static member function 'static QSize Kross::JavaType<QSize>::toVariant(_jobject*, JNIEnv*)':s-4.6.3/java/krossjava/krossjava/jvmvariant.h:245:67: error: return type 'struct QSize' is incomplete /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.h:249:29: error: invalid use of incomplete type 'struct QSize' /usr/include/qt4/QtCore/qmetatype.h:303:7: error: forward declaration of 'struct QSize' and ending with; /usr/include/kross/core/metatype.h:97:75: error: using invalid field 'Kross::MetaTypeVariant<VARIANTTYPE>::m_value' /usr/include/kross/core/metatype.h: In member function 'void* Kross::MetaTypeVariant<VARIANTTYPE>::toVoidStar() [with VARIANTTYPE = QSizeF]': /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.cpp:268:1: instantiated from here /usr/include/kross/core/metatype.h:99:58: error: using invalid field 'Kross::MetaTypeVariant<VARIANTTYPE>::m_value' /usr/include/kross/core/metatype.h: In member function 'int Kross::MetaTypeVariant<VARIANTTYPE>::typeId() [with VARIANTTYPE = QSize]': /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.cpp:268:1: instantiated from here /usr/include/kross/core/metatype.h:97:75: error: using invalid field 'Kross::MetaTypeVariant<VARIANTTYPE>::m_value' /usr/include/kross/core/metatype.h: In member function 'void* Kross::MetaTypeVariant<VARIANTTYPE>::toVoidStar() [with VARIANTTYPE = QSize]': /usr/src/kdebindings-4.6.3/java/krossjava/krossjava/jvmvariant.cpp:268:1: instantiated from here /usr/include/kross/core/metatype.h:99:58: error: using invalid field 'Kross::MetaTypeVariant<VARIANTTYPE>::m_value' make[2]: *** [java/krossjava/krossjava/CMakeFiles/libkrossjava.dir/jvmvariant.o] Error 1 make[1]: *** [java/krossjava/krossjava/CMakeFiles/libkrossjava.dir/all] Error 2 When both options are enabled, cmake shows; -- PYTHON_SITE_PACKAGES_INSTALL_DIR: /usr/lib/python2.7/site-packages -- Build PyKDE4... yes -- Found JNI: /usr/java/latest/jre/lib/amd64/libjawt.so -- using FindJNI.cmake -- JAVA_HOME: /usr/java/latest -- JAVA_AWT_LIB_PATH: -- JAVA_JVM_LIB_PATH: -- JAVA_INCLUDE_PATH: /usr/java/latest/include -- JAVA_INCLUDE_PATH2: /usr/java/latest/include/linux -- JAVA_AWT_INCLUDE_PATH: /usr/java/latest/include -- JAVA_JVM_LIBRARY: /usr/lib64/libjvm.so -- Build Kross Java... yes Reproducible: Always Steps to Reproduce: Have http://download.java.net/dlj/binaries/jdk-6u25-dlj-linux-amd64.bin installed, untar kdebindings, cd, ccmake, enable kross java, etc, etc, then make.
*** This bug has been marked as a duplicate of bug 203974 ***