Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, December 2006
problems compiling Qt on Solaris x86


Message 1 in thread

Hi All,
I am trying to get Qt compiled on Solaris 10 x86. I am facing a weird 
issue. Can someone please help me out? :(
I am getting the error when the signalsloteditor_plugin.c file is 
getting compiled.
Compilers being used
gcc, g++
Any help is welcome,
Thanks,
Jeevan

Here is the output.

g++ -c -O2 -D_REENTRANT -Wall -W -fPIC  -DQT_STATICPLUGIN 
-DQDESIGNER_COMPONENTS_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB 
-DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED 
-I../../../../../mkspecs/solaris-g++ -I. -I../../../../../include/QtCore 
-I../../../../../include/QtCore -I../../../../../include/QtGui 
-I../../../../../include/QtGui -I../../../../../include/QtXml 
-I../../../../../include/QtXml -I../../../../../include 
-I../../../../../include/QtDesigner -I. -I.. -I../../lib/components 
-I../../lib/sdk -I../../lib/extension -I../../lib/uilib 
-I../../lib/shared -I../propertyeditor -I../objectinspector 
-I../signalsloteditor -I../formeditor -I../widgetbox -I../buddyeditor 
-I../taskmenu -I../taskmenu -I../tabordereditor -I.moc/release-shared 
-I.uic/release-shared -I/usr/sfw/include -o 
.obj/release-shared/signalsloteditor_tool.o 
../signalsloteditor/signalsloteditor_tool.cpp
gcc -c -O2 -D_REENTRANT -Wall -W -fPIC  -DQT_STATICPLUGIN 
-DQDESIGNER_COMPONENTS_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB 
-DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED 
-I../../../../../mkspecs/solaris-g++ -I. -I../../../../../include/QtCore 
-I../../../../../include/QtCore -I../../../../../include/QtGui 
-I../../../../../include/QtGui -I../../../../../include/QtXml 
-I../../../../../include/QtXml -I../../../../../include 
-I../../../../../include/QtDesigner -I. -I.. -I../../lib/components 
-I../../lib/sdk -I../../lib/extension -I../../lib/uilib 
-I../../lib/shared -I../propertyeditor -I../objectinspector 
-I../signalsloteditor -I../formeditor -I../widgetbox -I../buddyeditor 
-I../taskmenu -I../taskmenu -I../tabordereditor -I.moc/release-shared 
-I.uic/release-shared -I/usr/sfw/include -o 
.obj/release-shared/signalsloteditor_plugin.o 
../signalsloteditor/signalsloteditor_plugin.c
In file included from ../../../../../include/QtCore/qnamespace.h:1,
                 from 
../../../../../include/QtGui/../../src/gui/kernel/qkeysequence.h:27,
                 from ../../../../../include/QtGui/qkeysequence.h:1,
                 from 
../../../../../include/QtGui/../../src/gui/kernel/qaction.h:27,
                 from ../../../../../include/QtGui/qaction.h:1,
                 from ../../../../../include/QtGui/QAction:1,
                 from ../signalsloteditor/signalsloteditor_plugin.c:28:
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:31: 
error: syntax error before "QT_MODULE"
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:34: 
error: syntax error before "namespace"
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:38: 
error: syntax error before '{' token
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:90: 
warning: return type defaults to `int'
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h: In 
function `Q_DECLARE_FLAGS':
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:91: 
error: `Qt' undeclared (first use in this function)
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:91: 
error: (Each undeclared identifier is reported only once
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:91: 
error: for each function it appears in.)
../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:91: 
confused by earlier errors, bailing out
gmake[5]: *** [.obj/release-shared/signalsloteditor_plugin.o] Error 1
gmake[5]: Leaving directory 
`/space/downloads/tmp/qt/qt-x11-opensource-src-4.2.1/tools/designer/src/components/lib'
gmake[4]: *** [sub-lib-make_default-ordered] Error 2
gmake[4]: Leaving directory 
`/space/downloads/tmp/qt/qt-x11-opensource-src-4.2.1/tools/designer/src/components'
gmake[3]: *** [sub-components-make_default-ordered] Error 2
gmake[3]: Leaving directory 
`/space/downloads/tmp/qt/qt-x11-opensource-src-4.2.1/tools/designer/src'
gmake[2]: *** [sub-src-make_default] Error 2
gmake[2]: Leaving directory 
`/space/downloads/tmp/qt/qt-x11-opensource-src-4.2.1/tools/designer'
gmake[1]: *** [sub-designer-make_default-ordered] Error 2
gmake[1]: Leaving directory 
`/space/downloads/tmp/qt/qt-x11-opensource-src-4.2.1/tools'
gmake: *** [sub-tools-make_default-ordered] Error 2

--
 [ signature omitted ] 

Message 2 in thread

Hi,

> I am trying to get Qt compiled on Solaris 10 x86. I am facing a weird 
> issue. Can someone please help me out? :(
> [...]
> ../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:31: 
> error: syntax error before "QT_MODULE"
> ../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:34: 
> error: syntax error before "namespace"
> ../../../../../include/QtCore/../../src/corelib/global/qnamespace.h:38: 
> error: syntax error before '{' token
> [...]

There should be nothing at all in front of "QT_MODULE". Unless maybe 
qglobal.h or qnamespace.h are somehow corrupted, maybe containing 
invisible charcaters that the compiler dislikes.

Have these files maybe been edited on a Windows platform? How have the 
Qt sources been unpacked to their present location? What commands did 
you run to build Qt?

--
 [ signature omitted ]