Results 1 to 3 of 3

Thread: cmake error

  1. #1
    Join Date
    Feb 2008
    Posts
    21
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default cmake error

    Hi folks,

    I'll compiling my application with cmake. I've read some tutorials and the wiki article:
    http://wiki.qtcentre.org/index.php?t...pps_with_CMake

    If I tested cmake it brokes down with some errors:
    Qt Code:
    1. RegularExpression::compile(): Nested *?+.
    2. RegularExpression::compile(): Error in compile.
    3. CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):
    4. if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES
    5. "${_checkinfile}" (Regular expression "/home/jan/workspace/c++/dummy/src/l"
    6. cannot compile).
    7. Call Stack (most recent call first):
    8. /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)
    9. CMakeLists.txt:37 (QT4_WRAP_CPP)
    10.  
    11.  
    12. RegularExpression::compile(): Nested *?+.
    13. RegularExpression::compile(): Error in compile.
    14. CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):
    15. if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES
    16. "${_checkinfile}" (Regular expression "/home/jan/workspace/c++/dummy/src/m"
    17. cannot compile).
    18. Call Stack (most recent call first):
    19. /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)
    20. CMakeLists.txt:37 (QT4_WRAP_CPP)
    21.  
    22.  
    23. CMake Error: Attempt to add a custom rule to output "/home/jan/workspace/c++/dummy/build/ui_mainwindow.h.rule" which already has a custom rule.
    24. -- Configuring done
    To copy to clipboard, switch view to plain text mode 

    My theorie is, the path is too long...

    here is my CMakeLists.txt:
    Qt Code:
    1. SET( DUMMY_SRCS
    2. ./src/main.cpp
    3. ./src/logindialog/logindialog.cpp
    4. ./src/mainwindow/mainwindow.cpp
    5. )
    6.  
    7. SET( DUMMY_MOC_HDRS
    8. ./src/logindialog/logindialog.h
    9. ./src/mainwindow/mainwindow.h
    10. )
    11.  
    12. SET( DUMMY_UIS
    13. ./ui/logindialog.ui
    14. ./ui/mainwindow.ui
    15. )
    16.  
    17. SET( DUMMY_RCS
    18. ./images/dummy.qrc
    19. )
    20.  
    21. ADD_DEFINITIONS( -Wall )
    22.  
    23. SET( QT_USE_QTSQL TRUE )
    24.  
    25. FIND_PACKAGE( Qt4 REQUIRED )
    26.  
    27. INCLUDE( ${QT_USE_FILE} )
    28.  
    29. QT4_ADD_RESOURCES( DUMMY_RC_SRCS ${DUMMY_RCS} )
    30.  
    31. QT4_WRAP_UI( DUMMY_UI_HDRS ${DUMMY_UIS} )
    32.  
    33. QT4_WRAP_CPP( DUMMY_MOC_SRCS ${DUMMY_MOC_HDRS} )
    To copy to clipboard, switch view to plain text mode 

    Can someone help me to fix my proplem?
    The most difficult in the world is to live in it

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: cmake error

    What happens when you rename that c++ directory to cxx?

  3. #3
    Join Date
    Feb 2008
    Posts
    21
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: cmake error

    It works finde, thanks.
    The most difficult in the world is to live in it

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

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.