Results 1 to 1 of 1

Thread: Qt State Machine Examples don't compile

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt State Machine Examples don't compile

    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:

    Qt Code:
    1. Running build steps for project composition...
    2. Creating gdb macros library...
    3. 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
    4. Exited with code 0.
    5. Starting: C:/Qt/2009.01/mingw/bin/mingw32-make.exe debug -w
    6. mingw32-make: Entering directory `C:/Qt/qtstatemachine-1.0/examples/composition'
    7. C:/Qt/2009.01/mingw/bin/mingw32-make -f Makefile.Debug
    8. mingw32-make[1]: Entering directory `C:/Qt/qtstatemachine-1.0/examples/composition'
    9. 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
    10. <command line>:7:1: macro names must be identifiers
    11. mingw32-make[1]: Leaving directory `C:/Qt/qtstatemachine-1.0/examples/composition'
    12. mingw32-make: Leaving directory `C:/Qt/qtstatemachine-1.0/examples/composition'
    13. mingw32-make[1]: *** [debug/main.o] Error 1
    14. mingw32-make: *** [debug] Error 2
    15. Exited with code 2.
    16. Error while building project composition
    17. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

    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.
    Last edited by vitalyx; 4th April 2009 at 15:25.

Similar Threads

  1. compile opengl examples
    By balinsky in forum Qt Programming
    Replies: 5
    Last Post: 16th February 2009, 01:33
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 08:18
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 10:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.