[Qt-jambi-interest] building jambi 4.4.0_01 with java-openjdk 1.6

Gunnar Sletta gunnar at trolltech.com
Tue Aug 5 08:07:50 CEST 2008


Dirk Mueller wrote:
> Hi, 
> 
> I've been trying for a few weeks now to package jambi for openSUSE (11.0 for 
> example). I've noticed that it seems to depend on $QTDIR being set to a 
> directory containing include/, lib, and plugins directories. 
> 
> fixing that, I'll end up with this build error: 
> 
> [javac] Compiling 631 source files to /usr/src/packages/BUILD/qtjambi-src-
> gpl-4.4.0_01
> [javac] /usr/src/packages/BUILD/qtjambi-src-
> gpl-4.4.0_01/com/trolltech/qt/core/QByteArray.java:894: cannot find symbol
> [javac] symbol : method toChar_private(com.trolltech.qt.QNativePointer,int)
> [javac] location: class com.trolltech.qt.core.QByteArray
> [javac] char res = toChar_private(ok, base);

Hi Dirk,

This is a problem with how and which header files the generator picks 
up. the toChar method stems from QByteArray::toUShort() which returns a 
ushort. The method is rejected, as you can probably see in the generator 
output, as a result of ushort being an undefined type. "ushort" is 
declared in qglobal.h so any Qt header will have it.

You can see how the preprocessor output looks, by looking at the 
JAMBI/generator/.preprocessor.tmp file and see which qglobal.h it 
includes, my guess is its the wrong one.

The build options we use to build the binary packages are:

./configure -no-qt3support -release -shared -prefix $PWD -no-sql-sqlite2 
-no-mmx -no-3dnow -no-sse -no-sse2 -D QT_JAMBI_BUILD

Using those, might also help a bit.

best regards,
Gunnar




More information about the Qt-jambi-interest mailing list