PDA

View Full Version : Qt State Machine Examples don't compile



vitalyx
4th April 2009, 14:19
Hello,

When I try compile any of the examples that come with the brand new Qt State Machine Framework, I get the "macro names must be identifiers" build issue. When I double click on it in Qt Creator, it just says "<command line> 7".

Please see compile output below:


Running build steps for project composition...
Creating gdb macros library...
Starting: C:/Qt/2009.01/qt/bin/qmake.exe C:/Qt/qtstatemachine-1.0/examples/composition/composition.pro -spec win32-g++ -r CONFIG+=debug_and_release
Exited with code 0.
Starting: C:/Qt/2009.01/mingw/bin/mingw32-make.exe debug -w
mingw32-make: Entering directory `C:/Qt/qtstatemachine-1.0/examples/composition'
C:/Qt/2009.01/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Qt/qtstatemachine-1.0/examples/composition'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_STATEMACHINE_SOLUTION -DQT_NO_ANIMATION -DDEFINES -D+= -DQ_STATEMACHINE_CORE_EXPORT=__declspec(dllimport) -DQ_STATEMACHINE_GUI_EXPORT=__declspec(dllimport) -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\2009.01\qt\include\QtCore" -I"..\..\..\2009.01\qt\include\QtGui" -I"..\..\..\2009.01\qt\include" -I"." -I"..\..\src" -I"..\..\..\2009.01\qt\include\ActiveQt" -I"debug" -I"." -I"..\..\..\2009.01\qt\mkspecs\win32-g++" -o debug\main.o main.cpp
<command line>:7:1: macro names must be identifiers
mingw32-make[1]: Leaving directory `C:/Qt/qtstatemachine-1.0/examples/composition'
mingw32-make: Leaving directory `C:/Qt/qtstatemachine-1.0/examples/composition'
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project composition
When executing build step 'Make'

P.S.

I installed Qt State Machine Framework on Windows by running the "configure.bat" script with the "-library" parameter (I use Qt SDK v2009.01 Open Source), then successfully built the "buildlib.pro" project (inside the "buildlib" folder) in both release and debug configurations.
Also, animation framework 2.2 and examples that come with it work just fine. Except the "subattaq" one, as it depends on Qt State Machine.