Your message dated Tue, 24 Feb 2009 01:05:58 +0200 with message-id <[email protected]> and subject line Re: [cmake] Certain characters in the binary path cause failure of generating a Makefile has caused the Debian Bug report #513934, regarding [cmake] Certain characters in the binary path cause failure of generating a Makefile to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 513934: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513934 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: cmake Version: 2.6.0-6 Severity: normal Hello, I've just tried to compile a program with find_package(Qt4 REQUIRED) in the CMakeLists.txt and the binary path containing two plus signs (+) which leads to the following error: > RegularExpression::compile(): Nested *?+. > RegularExpression::compile(): Error in compile. > CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF): > if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES > "${_checkinfile}" (Regular expression > "~/workspace/c++Spielwiese/src/zz_Qt_S" cannot compile). > Call Stack (most recent call first): > /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE) > CMakeLists.txt:11 (QT4_WRAP_CPP) The CMakeLists.txt looks like this: > cmake_minimum_required(VERSION 2.6) > project(QtSuStest) > set(CMAKE_INCLUDE_CURRENT_DIR ON) > set(CMAKE_COLOR_MAKEFILE ON) > find_package( Qt4 REQUIRED ) > include(${QT_USE_FILE}) > set(QtSuStest_SRCS > counter.cpp > main.cpp) > set(QtSuStest_MOC_HDRS counter.h) > QT4_WRAP_CPP(QtSuStest_MOC_SRCS ${QtSuStest_MOC_HDRS}) > add_executable(QtSuStest ${QtSuStest_SRCS} ${QtSuStest_MOC_SRCS}) > #include_directories(${CMAKE_BINARY_DIR}) > target_link_libraries(QtSuStest ${QT_LIBRARIES}) Compiling the very same program in any other directory (that is, any other directory not containing a plus in its path) works like a charm. If you need further information/tests, I'm more than happy to provide them. Just ask. Kind regards, Kai -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.28.2-cabal Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cmake depends on: ii libc6 2.7-18 GNU C Library: Shared libraries ii libcurl3-gnutls 7.18.2-8 Multi-protocol file transfer libra ii libexpat1 2.0.1-4 XML parsing C library - runtime li ii libgcc1 1:4.3.2-1.1 GCC support library ii libncurses5 5.7+20081213-1 shared libraries for terminal hand ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3 ii libxmlrpc-c3 1.06.27-1 A lightweight RPC library based on ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime cmake recommends no packages. cmake suggests no packages. -- no debconf information -- Kai Wasserbäch (Kai Wasserbaech) E-Mail: [email protected] Jabber (debianforum.de): Drizzt URL: http://wiki.debianforum.de/Drizzt_Do%27Urden GnuPG: 0xE1DE59D2 0600 96CE F3C8 E733 E5B6 1587 A309 D76C E1DE 59D2 (http://pgpkeys.pca.dfn.de/pks/lookup?search=0xE1DE59D2&fingerprint=on&hash=on&op=vindex)
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---Version: 2.6.3-1 Hello, 2009 m. February 2 d., Monday, jūs rašėte: > Hello, > I've just tried to compile a program with find_package(Qt4 REQUIRED) in the > CMakeLists.txt and the binary path containing two plus signs (+) which > leads to > > the following error: > > RegularExpression::compile(): Nested *?+. > > RegularExpression::compile(): Error in compile. > > CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF): > > if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES > > "${_checkinfile}" (Regular expression > > "~/workspace/c++Spielwiese/src/zz_Qt_S" cannot compile). > > Call Stack (most recent call first): > > /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE) > > CMakeLists.txt:11 (QT4_WRAP_CPP) Apparently this has been be fixed upstream in 2.6.3: @@ -1027,12 +910,14 @@ IF (QT4_QMAKE_FOUND) SET(_checkinfile ${CMAKE_CURRENT_SOURCE_DIR}) IF(_infileLength GREATER _binlength) STRING(SUBSTRING "${infile}" 0 ${_binlength} _checkinfile) - ENDIF(_infileLength GREATER _binlength) - IF(CMAKE_CURRENT_BINARY_DIR MATCHES "${_checkinfile}") - FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_BINARY_DIR} ${infile}) - ELSE(CMAKE_CURRENT_BINARY_DIR MATCHES "${_checkinfile}") + IF(_checkinfile STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") + FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_BINARY_DIR} ${infile}) + ELSE(_checkinfile STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") + FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile}) + ENDIF(_checkinfile STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") + ELSE(_infileLength GREATER _binlength) FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile}) - ENDIF(CMAKE_CURRENT_BINARY_DIR MATCHES "${_checkinfile}") + ENDIF(_infileLength GREATER _binlength) -- Modestas Vainius <[email protected]>
signature.asc
Description: This is a digitally signed message part.
--- End Message ---

