[Qt-interest] Problem compiling Lighthouse (Resend/Crosspost)

Kustaa Nyholm Kustaa.Nyholm at planmeca.com
Thu Nov 25 10:32:53 CET 2010


Hi,

I've been playing with Qt-Lighthouse for about half a year now.
Last week we decided to install it to a colleague's PC and took the
opportunity to upgrade to the latest version, but now we cannot
compile the examples. They all fail with the same error, see below.

We suspect this is a configure issues as the old -embedded-lite switch
no longer works and we had to leave it out.

All pointers including a better place to ask this question are
appreciated.

br Kusti


system: windows xp 32 bit, MinGW version 5.1.6, Active Perl 5.12.2
 
Got qt sources from git, lighthouse branch. checked out 25.11.2010
 
First ran configure-script successfully, qmake gets created and all example
makefiles are generated ok.

Then ran mingw32-make on several example-projects, which all seem to fail
with error: 

ISO C++ forbids declaration of `QGraphicsSystemScreen'... (see full output
at the end)
 
configure-script, which goes fine:
--------------------
 
set QTDIR=C:\paasomalightver2
set PATH=C:\Perl\site\bin;C:\Perl\bin;C:\MinGW\bin;%QTDIR%;%PATH%
configure.exe -platform win32-g++ -opensource -nomake docs -nomake demos
-nomake tools -nomake translations -no-qt3support -developer-build
-debug-and-release -no-accessibility -no-qt3support -no-xmlpatterns
-no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-webkit
-no-script -no-scripttools -process
 
 
 
make-script:
--------------------
set INCLUDE=
set QTDIR=C:\paasomalightver2
set PATH=C:\MinGW\bin;%QTDIR%/bin;%QTDIR%;
cd examples\desktop
qmake
mingw32-make.exe
 
 
 
error msg:
-------------------------
 
C:\paasomalightver2\examples\desktop>mingw32-make.exe
cd screenshot\ && mingw32-make.exe -f Makefile
mingw32-make.exe[1]: Entering directory
`C:/paasomalightver2/examples/desktop/screenshot'
mingw32-make.exe -f Makefile.Debug all
mingw32-make.exe[2]: Entering directory
`C:/paasomalightver2/examples/desktop/screenshot'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore"
-I"..\..\..\include\QtGui" -I"..\..\..\include"
-I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared"
-I"..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore"
-I"..\..\..\include\QtGui" -I"..\..\..\include"
-I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared"
-I"..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\screenshot.o
screenshot.cpp
In file included from ../../../include/QtGui/qgraphicssystemcursor.h:1,
                 from ../../../include/QtGui/QtGui:119,
                 from screenshot.cpp:42:
./../../include/QtGui/../../src/gui/painting/qgraphicssystemcursor.h:71:
error: expected `)' before '*' token
./../../include/QtGui/../../src/gui/painting/qgraphicssystemcursor.h:82:
error: ISO C++ forbids declaration of `QGraphicsSystemScreen' with no type
./../../include/QtGui/../../src/gui/painting/qgraphicssystemcursor.h:82:
error: expected `;' before '*' token
mingw32-make.exe[2]: *** [tmp/obj/debug_shared/screenshot.o] Error 1
mingw32-make.exe[2]: Leaving directory
`C:/paasomalightver2/examples/desktop/screenshot'
mingw32-make.exe[1]: *** [debug-all] Error 2
mingw32-make.exe[1]: Leaving directory
`C:/paasomalightver2/examples/desktop/screenshot'
mingw32-make.exe: *** [sub-screenshot-make_default-ordered] Error 2
 
C:\paasomalightver2\examples\desktop>pause
Press any key to continue . . .
-------------------------

At least the following files appear to be different in my working
installation and the new one we are trying to set up:

from the working installation:
 
src/gui/painting/qgraphicssystem_lite_p.h
src/gui/painting/qgraphicssystem_lite.cpp
src/gui/painting/qgraphicssystem.cpp
 
src/gui/painting/qgraphicssystemcursor_lite.h & cpp
 
from the new installation:
 
src/gui/painting/qgraphicssystem_p.h
src/gui/painting/qgraphicssystem.cpp
 
src/gui/painting/qgraphicssystemcursor.h & cpp



 
 
 

 






More information about the Qt-interest-old mailing list