<div dir="ltr">Rename your directory to get rid of the &quot;++&quot; in the name...<div><br></div><div>It&#39;s confusing some regular expression matching rules in the CMake scripts.</div><div><br><div><br><br><div class="gmail_quote">
On Fri, Aug 1, 2008 at 11:43 AM, Jan Dinger <span dir="ltr">&lt;<a href="mailto:dinger.jan@googlemail.com">dinger.jan@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hello folks,<br><br>I&#39;ve wrote a test program for testing cmake in Qt4. Iam using cmake-2.6 Debian-sid.<br><br>In the first time cmake crashs with some errors. <br><br>RegularExpression::compile(): Nested *?+.<br>

RegularExpression::compile(): Error in compile.<br>CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):<br>&nbsp; if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES<br>&nbsp; &quot;${_checkinfile}&quot; (Regular expression &quot;/home/jan/workspace/c++/dummy/src/l&quot;<br>

&nbsp; cannot compile).<br>Call Stack (most recent call first):<br>&nbsp; /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)<br>&nbsp; CMakeLists.txt:47 (QT4_WRAP_CPP)<br><br><br>RegularExpression::compile(): Nested *?+.<br>

RegularExpression::compile(): Error in compile.<br>CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):<br>&nbsp; if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES<br>&nbsp; &quot;${_checkinfile}&quot; (Regular expression &quot;/home/jan/workspace/c++/dummy/src/m&quot;<br>

&nbsp; cannot compile).<br>Call Stack (most recent call first):<br>&nbsp; /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)<br>&nbsp; CMakeLists.txt:47 (QT4_WRAP_CPP)<br><br><br>CMake Error: Attempt to add a custom rule to output &quot;/home/jan/workspace/c++/dummy/build/ui_mainwindow.h.rule&quot; which already has a custom rule.<br>

-- Configuring done<br><br>I don&#39;t know what I can do. I&#39;vre read some tutorials and howtos, but no way. <br><br>Here is my CMakelists.txt.<br><br>###snip###<br>PROJECT( dummy )<br><br>cmake_minimum_required(VERSION 2.6)<br>

<br>FIND_PACKAGE( Qt4 REQUIRED )<br>IF(QT_FOUND)<br>&nbsp;&nbsp;&nbsp; INCLUDE(${QT_USE_FILE})<br>&nbsp;&nbsp;&nbsp; IF(QT_QTSQL_FOUND)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INCLUDE_DIRECTORIES(${QT_QTSQL_INCLUDE_DIR})<br>&nbsp;&nbsp;&nbsp; ELSE(QT_QTSQL_FOUND)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MESSAGE(FATAL ERROR &quot;Qt SQL libraries missing.&quot;)<br>

&nbsp;&nbsp;&nbsp; ENDIF(QT_QTSQL_FOUND)<br>&nbsp;&nbsp;&nbsp; ELSE(QT_FOUND)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MESSAGE(FATAL ERROR &quot;Qt4 not found.&quot;)<br>ENDIF(QT_FOUND)<br><br><br>SET( DUMMY_SRCS<br>&nbsp;&nbsp;&nbsp; ./src/main.cpp<br>&nbsp;&nbsp;&nbsp; ./src/logindialog/logindialog.cpp<br>&nbsp;&nbsp;&nbsp; ./src/mainwindow/mainwindow.cpp<br>

)<br><br>SET( DUMMY_MOC_HDRS<br>&nbsp;&nbsp;&nbsp; ./src/logindialog/logindialog.h<br>&nbsp;&nbsp;&nbsp; ./src/mainwindow/mainwindow.h<br>)<br><br>SET( DUMMY_UIS<br>&nbsp;&nbsp;&nbsp; ./ui/logindialog.ui<br>&nbsp;&nbsp;&nbsp; ./ui/mainwindow.ui<br>)<br><br>SET( DUMMY_RCS<br>&nbsp;&nbsp;&nbsp; ./images/dummy.qrc<br>

)<br><br>ADD_DEFINITIONS( -Wall )<br><br>SET( QT_USE_QTSQL TRUE )<br><br>QT4_ADD_RESOURCES( DUMMY_RC_SRCS ${DUMMY_RCS} )<br><br>QT4_WRAP_UI( DUMMY_UIS_HDRS ${DUMMY_UIS} )<br><br>IF(QT_WRAP_CPP)<br>&nbsp;&nbsp;&nbsp; QT4_WRAP_CPP( DUMMY_MOC_SRCS ${DUMMY_MOC_HDRS} )<br>

ENDIF(QT_WRAP_CPP)<br><br>INCLUDE_DIRECTORIES( ${CCMAKE_BINARY_DIR} )<br><br>ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} ${DUMMY_RC_SRCS} ${DUMMY_UI_HDRS} )<br><br>TARGET_LINK_LIBRARIES( dummy ${QT_LIBRARIES} ${QT_QTSQL_LIBRARIES} )<br>

###snap###<br><br>I hope someone can help me. <br><br>so long<br>jd<br></div>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div></div>