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

Dirk Mueller dmueller at suse.de
Tue Aug 5 11:14:36 CEST 2008


On Tuesday 05 August 2008, Gunnar Sletta wrote:

> 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.

Indeed. What you didn't mention: is that expected or is that an error? I 
assume that it is an error, but given that you figured that all out without me 
pointing to the full logfile, it could also be perfectly normal behaviour. 
FWIW, this is the full generator output: 

generator] WARNING(MetaJavaBuilder) :: skipping function 
'QByteArray::toUShort', unmatched return type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping function 
'QByteArray::setNum', unmatched parameter type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping function 'QUuid::QUuid', 
unmatched parameter type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping field 'QUuid::data2' with 
unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: skipping field 'QUuid::data3' with 
unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: skipping field 
'QXmlInputSource::EndOfData' with unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: skipping field 
'QXmlInputSource::EndOfDocument' with unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: skipping function 'QLocale::toUShort', 
unmatched return type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping function 'QLocale::toString', 
unmatched parameter type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping function 
'QKeyEvent::createExtendedKeyEvent', unmatched parameter type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping function 
'QKeyEvent::QKeyEvent', unmatched parameter type 'ushort'
[generator] WARNING(MetaJavaBuilder) :: skipping field 'QKeyEvent::c' with 
unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: skipping field 'QEvent::t' with 
unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: skipping field 'QPaintDevice::painters' 
with unmatched type 'unsigned short int'
[generator] WARNING(MetaJavaBuilder) :: enum '__codecvt_result' does not have 
a type entry or is not an enum
[generator] WARNING(MetaJavaBuilder) :: enum 'enum_2' does not have a type 
entry or is not an enum
[generator] WARNING(MetaJavaBuilder) :: signature 'toString(unsigned 
short)const' for function modification in 'QLocale' not found. Possible 
candidates: toString(QDate,QLocale::FormatType)const in QLocale, 
toString(QDate,QString)const in QLocale, 
toString(QDateTime,QLocale::FormatType)constin QLocale, 
toString(QDateTime,QString)const in QLocale, 
toString(QTime,QLocale::FormatType)const in QLocale, 
toString(QTime,QString)const in QLocale, toString(double,char,int)const in 
QLocale, toString(float,char,int)const in QLocale, toString(int)const in 
QLocale, toString(long long)constin QLocale, toString(short)const in QLocale, 
toString(uint)const in QLocale, toString(unsigned long long)const in QLocale
[generator] WARNING(MetaJavaBuilder) :: signature 
'toUShort(QString,bool*,int)const' for function modification in 'QLocale' not 
found. Possible candidates:
[generator] WARNING(MetaJavaBuilder) :: signature 'setNum(unsigned short,int)' 
for function modification in 'QByteArray' not found. Possible candidates: 
setNum(double,char,int) in QByteArray, setNum(float,char,int) in QByteArray, 
setNum(int,int) in QByteArray, setNum(long long,int) in QByteArray, 
setNum(short,int) in QByteArray, setNum(uint,int) in QByteArray, 
setNum(unsigned long long,int) in QByteArray
[generator] WARNING(MetaJavaBuilder) :: signature 'toUShort(bool*,int)const' 
for function modification in 'QByteArray' not found. Possible candidates:
[generator] Running the Qt Jambi Generator. Please wait while source files are 
being generated...
[generator] Classes in typesystem: 555
[generator] Generated:
[generator]   - java......: 547 (547)
[generator]   - cpp-impl..: 523 (523)
[generator]   - cpp-h.....: 362 (362)
[generator]   - meta-info.: 32 (32)
[generator]   - pri.......: 8 (8)
[generator]
[generator] Done, 20 warnings (717 known issues)

> 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.

it includes the one that was installed by Qt 4.4.0. 

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

I'll try that now before looking further. Thanks a lot for your help!

Greetings,
Dirk




More information about the Qt-jambi-interest mailing list