Qt-jambi-interest Archive, May 2007
Making jambi from source
Message 1 in thread
Hello!
I tried building the jambi stuff from source. I followed the description
in BUILDING_SOURCE_PACKAGE, but ran into problems on step 3, since there
was no juic binary available in this step. I tried to enter the juic
directory and ran qmake and make, but got these errors:
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_UIC_JAVA_GENERATOR -DQT_UIC
-DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/mkspecs/linux-g++ -I.
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtCore
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtCore
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtXml
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtXml
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include -I. -I.
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtCore
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtCore
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtXml
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include/QtXml
-I/usr/local/Trolltech/Qt-4.3.0-snapshot-20070228/include -I. -I. -o
javawritedeclaration.o javawritedeclaration.cpp
In file included from javawritedeclaration.cpp:23:
javawritedeclaration.h:26:24: error: treewalker.h: No such file or directory
In file included from javawritedeclaration.cpp:24:
javawriteinitialization.h:27:20: error: option.h: No such file or directory
javawritedeclaration.cpp:25:20: error: driver.h: No such file or directory
javawritedeclaration.cpp:26:17: error: ui4.h: No such file or directory
javawritedeclaration.cpp:27:17: error: uic.h: No such file or directory
javawritedeclaration.cpp:28:26: error: databaseinfo.h: No such file or
directory
javawritedeclaration.cpp:29:31: error: customwidgetsinfo.h: No such file
or directory
javawritedeclaration.h:37: error: expected class-name before â{â token
javawritedeclaration.h:40: error: âDomUIâ has not been declared
javawritedeclaration.h:41: error: âDomWidgetâ has not been declared
javawritedeclaration.h:42: error: âDomLayoutâ has not been declared
javawritedeclaration.h:43: error: âDomSpacerâ has not been declared
javawritedeclaration.h:44: error: âDomActionGroupâ has not been declared
javawritedeclaration.h:45: error: âDomActionâ has not been declared
javawriteinitialization.h:42: error: expected class-name before â{â token
javawriteinitialization.h:48: error: âDomUIâ has not been declared
javawriteinitialization.h:49: error: âDomWidgetâ has not been declared
javawriteinitialization.h:50: error: âDomLayoutâ has not been declared
javawriteinitialization.h:51: error: âDomSpacerâ has not been declared
javawriteinitialization.h:52: error: âDomLayoutItemâ has not been declared
javawriteinitialization.h:57: error: âDomActionGroupâ has not been declared
javawriteinitialization.h:58: error: âDomActionâ has not been declared
javawriteinitialization.h:59: error: âDomActionRefâ has not been declared
javawriteinitialization.h:64: error: âDomTabStopsâ has not been declared
javawriteinitialization.h:69: error: âDomCustomWidgetsâ has not been
declared
javawriteinitialization.h:70: error: âDomCustomWidgetâ has not been declared
javawriteinitialization.h:75: error: âDomLayoutDefaultâ has not been
declared
javawriteinitialization.h:76: error: âDomLayoutFunctionâ has not been
declared
javawriteinitialization.h:81: error: âDomConnectionâ has not been declared
javawriteinitialization.h:86: error: âDomImageâ has not been declared
javawriteinitialization.h:89: error: âDomColorâ has not been declared
javawriteinitialization.h:92: error: âDomPropertyâ has not been declared
javawriteinitialization.h:94: error: âDomStringâ has not been declared
javawriteinitialization.h:97: error: âDomPropertyâ was not declared in
this scope
javawriteinitialization.h:97: error: template argument 1 is invalid
javawriteinitialization.h:98: error: âDomColorGroupâ has not been declared
javawriteinitialization.h:103: error: âDomWidgetâ has not been declared
javawriteinitialization.h:104: error: âDomWidgetâ has not been declared
javawriteinitialization.h:105: error: âDomWidgetâ has not been declared
javawriteinitialization.h:106: error: âDomWidgetâ has not been declared
javawriteinitialization.h:107: error: âDomItemâ was not declared in this
scope
javawriteinitialization.h:107: error: template argument 1 is invalid
javawriteinitialization.h:108: error: âDomWidgetâ has not been declared
javawriteinitialization.h:110: error: ISO C++ forbids declaration of
âDomWidgetâ with no type
javawriteinitialization.h:110: error: expected â;â before â*â token
javawriteinitialization.h:111: error: ISO C++ forbids declaration of
âDomImageâ with no type
javawriteinitialization.h:111: error: expected â;â before â*â token
javawriteinitialization.h:119: error: field âoptionâ has incomplete type
javawriteinitialization.h:130: error: âDomWidgetâ was not declared in
this scope
javawriteinitialization.h:130: error: template argument 1 is invalid
javawriteinitialization.h:131: error: âDomLayoutâ was not declared in
this scope
javawriteinitialization.h:131: error: template argument 1 is invalid
javawriteinitialization.h:132: error: âDomActionGroupâ was not declared
in this scope
javawriteinitialization.h:132: error: template argument 1 is invalid
javawriteinitialization.h:136: error: âDomWidgetâ was not declared in
this scope
javawriteinitialization.h:136: error: template argument 2 is invalid
javawriteinitialization.h:137: error: âDomImageâ was not declared in
this scope
javawriteinitialization.h:137: error: template argument 2 is invalid
javawriteinitialization.h:138: error: âDomActionâ was not declared in
this scope
javawriteinitialization.h:138: error: template argument 2 is invalid
javawritedeclaration.cpp: In constructor
âJava::WriteDeclaration::WriteDeclaration(Uic*)â:
javawritedeclaration.cpp:40: error: invalid use of undefined type
âstruct Uicâ
javawritedeclaration.h:30: error: forward declaration of âstruct Uicâ
javawritedeclaration.cpp:40: error: invalid use of undefined type
âstruct Uicâ
javawritedeclaration.h:30: error: forward declaration of âstruct Uicâ
javawritedeclaration.cpp:40: error: invalid use of undefined type
âstruct Uicâ
javawritedeclaration.h:30: error: forward declaration of âstruct Uicâ
javawritedeclaration.cpp: At global scope:
javawritedeclaration.cpp:45: error: variable or field âacceptUIâ
declared void
javawritedeclaration.cpp:45: error: âint
Java::WriteDeclaration::acceptUIâ is not a static member of âstruct
Java::WriteDeclarationâ
javawritedeclaration.cpp:45: error: âDomUIâ was not declared in this scope
javawritedeclaration.cpp:45: error: ânodeâ was not declared in this scope
javawritedeclaration.cpp:46: error: expected â,â or â;â before â{â token
javawritedeclaration.cpp:88: error: variable or field âacceptWidgetâ
declared void
javawritedeclaration.cpp:88: error: âint
Java::WriteDeclaration::acceptWidgetâ is not a static member of âstruct
Java::WriteDeclarationâ
javawritedeclaration.cpp:88: error: âDomWidgetâ was not declared in this
scope
javawritedeclaration.cpp:88: error: ânodeâ was not declared in this scope
javawritedeclaration.cpp:89: error: expected â,â or â;â before â{â token
javawritedeclaration.cpp:99: error: variable or field âacceptLayoutâ
declared void
javawritedeclaration.cpp:99: error: âint
Java::WriteDeclaration::acceptLayoutâ is not a static member of âstruct
Java::WriteDeclarationâ
javawritedeclaration.cpp:99: error: âDomLayoutâ was not declared in this
scope
javawritedeclaration.cpp:99: error: ânodeâ was not declared in this scope
javawritedeclaration.cpp:100: error: expected â,â or â;â before â{â token
javawritedeclaration.cpp:110: error: variable or field âacceptSpacerâ
declared void
javawritedeclaration.cpp:110: error: âint
Java::WriteDeclaration::acceptSpacerâ is not a static member of âstruct
Java::WriteDeclarationâ
javawritedeclaration.cpp:110: error: âDomSpacerâ was not declared in
this scope
javawritedeclaration.cpp:110: error: ânodeâ was not declared in this scope
javawritedeclaration.cpp:111: error: expected â,â or â;â before â{â token
javawritedeclaration.cpp:117: error: variable or field
âacceptActionGroupâ declared void
javawritedeclaration.cpp:117: error: âint
Java::WriteDeclaration::acceptActionGroupâ is not a static member of
âstruct Java::WriteDeclarationâ
javawritedeclaration.cpp:117: error: âDomActionGroupâ was not declared
in this scope
javawritedeclaration.cpp:117: error: ânodeâ was not declared in this scope
javawritedeclaration.cpp:118: error: expected â,â or â;â before â{â token
javawritedeclaration.cpp:124: error: variable or field âacceptActionâ
declared void
javawritedeclaration.cpp:124: error: âint
Java::WriteDeclaration::acceptActionâ is not a static member of âstruct
Java::WriteDeclarationâ
javawritedeclaration.cpp:124: error: âDomActionâ was not declared in
this scope
javawritedeclaration.cpp:124: error: ânodeâ was not declared in this scope
javawritedeclaration.cpp:125: error: expected â,â or â;â before â{â token
make: *** [javawritedeclaration.o] Error 1
Regards,
Helge Fredriksen
Message 2 in thread
On Friday 04 May 2007 13:51, Helge Fredriksen wrote:
> Hello!
>
> I tried building the jambi stuff from source. I followed the description
> in BUILDING_SOURCE_PACKAGE, but ran into problems on step 3, since there
> was no juic binary available in this step. I tried to enter the juic
> directory and ran qmake and make, but got these errors:
Hi,
You have done everything correct, and it is our fault that it doesn't work.
The good thing is that we will fix it for the next release, and that it is an
easy fix for it.
The problem is that all the files needed to compile QtJambi is not getting
installed when running 'make install' in the Qt snapshot package.
So we need to point QTDIR to the Qt snapshot package itself, not where it
installs it's files to.
In Step 2 we said:
------------------------------------------------------------------------
STEP 2: Build the C++ libraries and tools
------------------------------------------------------------------------
- Go to the JAMBI directory
- Run qmake recursivly on the source tree:
> qmake -r
- Make the sources
So to let qmake find all the files, set QTDIR while running qmake -r
> QTDIR=/path/to/qt-snapshot-src/ qmake -r
Hope this fixes your problem.
Best regards
HÃvard F