View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014445 | CMake | CMake | public | 2013-09-27 04:27 | 2015-07-08 08:57 | ||||
Reporter | Zachary Deretsky | ||||||||
Assigned To | Clinton Stimpson | ||||||||
Priority | immediate | Severity | crash | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 | ||||
Product Version | CMake 2.8.11.2 | ||||||||
Target Version | Fixed in Version | CMake 2.8.12 | |||||||
Summary | 0014445: Does not build with Qt 5.1.0, same as issue 0014142 | ||||||||
Description | CMake Warning at Modules/FindQt4.cmake:657 (message): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake reported QT_INSTALL_LIBS as "/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/qt-everywhere-opensource-src-5.1.0/lib" but QtCore could not be found there. Qt is NOT installed correctly for the target build environment. Call Stack (most recent call first): Tests/RunCMake/CMakeLists.txt:79 (find_package) -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found CMake Error at Modules/FindQt4.cmake:1032 (set_property): set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet been created. Call Stack (most recent call first): Tests/RunCMake/CMakeLists.txt:79 (find_package) CMake Error at Modules/FindQt4.cmake:1037 (set_property): set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet been created. Call Stack (most recent call first): Tests/RunCMake/CMakeLists.txt:79 (find_package) CMake Error at Modules/FindQt4.cmake:1040 (set_property): set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet been created. Call Stack (most recent call first): Tests/RunCMake/CMakeLists.txt:79 (find_package) CMake Warning at Modules/FindQt4.cmake:657 (message): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake reported QT_INSTALL_LIBS as "/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/qt-everywhere-opensource-src-5.1.0/lib" but QtCore could not be found there. Qt is NOT installed correctly for the target build environment. Call Stack (most recent call first): Tests/CMakeLists.txt:263 (find_package) CMake Error at Modules/FindQt4.cmake:1032 (set_property): set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet been created. Call Stack (most recent call first): Tests/CMakeLists.txt:263 (find_package) CMake Error at Modules/FindQt4.cmake:1037 (set_property): set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet been created. Call Stack (most recent call first): Tests/CMakeLists.txt:263 (find_package) CMake Error at Modules/FindQt4.cmake:1040 (set_property): set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet been created. Call Stack (most recent call first): Tests/CMakeLists.txt:263 (find_package) -- Found unsuitable Qt version "5.1.0" from /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake -- Performing Test run_pic_test -- Performing Test run_pic_test - Success -- Configuring incomplete, errors occurred! --------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake --------------------------------------------- ./bootstrap --prefix=/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/cmake-2.8.11.2 returned exit status 11 | ||||||||
Steps To Reproduce | to reproduce: standard build: ./bootstrap --prefix=your_prefix_path Issue 0014142 recommends: Until then, the workarounds are: * Cause cmake to not find Qt 5 development files (either by uninstalling, or adjusting CMAKE_PREFIX_PATH) * Cause cmake to find Qt 4 development files (either by installing it, or adjusting CMAKE_PREFIX_PATH) * Configure CMake with -DBUILD_TESTING=FALSE Please give more detailed and specific instructions. The first two suggestions are not suitable for me. I don't understand how to apply the third one. Cmake configure just calls bootstrap, which does not accept the flag -DBUILD_TESTING=FALSE. Please let me know if there is a way to download Cmake source with this bug fixed. Thank you, Zach. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |||||||||||
|
Relationships |
Notes | |
(0033907) Brad King (manager) 2013-09-27 08:42 |
Issue 0014142 was fixed by this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f84dfec [^] which is not in 2.8.11.2. Try 2.8.12-rc3: http://www.cmake.org/files/v2.8/?C=M;O=D [^] |
(0033908) Brad King (manager) 2013-09-27 08:43 |
Alternatively, bootstrap does accept -DBUILD_TESTING=FALSE, but you need to put it after --: $ ./bootstrap --help Usage: ./bootstrap [<options>...] [-- <cmake-options>...] So: $ ./bootstrap ... -- -DBUILD_TESTING=FALSE |
(0033911) Zachary Deretsky (reporter) 2013-09-27 14:12 |
Thank you for fast response. 2.8.12-rc3 does not build either, see below. All the libraries for qt5 have names starting with "libQt5", i.e. there is library libQt5Core but no libQtCore. I will try the bootstrap suggestion. CMake Warning at Modules/FindQt4.cmake:659 (message): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake reported QT_INSTALL_LIBS as "/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/qt-everywhere-opensource-src-5.1.0/lib" but QtCore could not be found there. Qt is NOT installed correctly for the target build environment. Call Stack (most recent call first): Tests/RunCMake/CMakeLists.txt:104 (find_package) CMake Warning at Modules/FindQt4.cmake:659 (message): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake reported QT_INSTALL_LIBS as "/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/qt-everywhere-opensource-src-5.1.0/lib" but QtCore could not be found there. Qt is NOT installed correctly for the target build environment. Call Stack (most recent call first): Tests/CMakeLists.txt:266 (find_package) -- Performing Test run_pic_test -- Performing Test run_pic_test - Success CMake Error at /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message): Failed to find "GL" in "". Call Stack (most recent call first): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:48 (_qt5gui_find_extra_libs) /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:118 (include) /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:77 (find_package) Tests/CMakeLists.txt:1016 (find_package) -- Configuring incomplete, errors occurred! See also "/home/zach/ZZ/cmake-2.8.12-rc3/CMakeFiles/CMakeOutput.log". See also "/home/zach/ZZ/cmake-2.8.12-rc3/CMakeFiles/CMakeError.log". --------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake |
(0033912) Brad King (manager) 2013-09-27 15:37 |
For Qt5 it shouldn't be running FindQt4. In CMakeCache.txt, is Qt5Widgets_DIR set to anything? That is needed for Qt5 to be considered found before falling back to searching for Qt4. |
(0033913) Zachary Deretsky (reporter) 2013-09-27 16:04 |
I built cmake-2.8.12-rc3 with bootstrap -- -DBUILD_TESTING=FALSE and I encounter further problems. Let me explain, bear with me. We have been building a fairly large package continuously and successfully for a couple of years with Cmake 2.8.8 and Qt 4. My task is to port it to Qt 5. We are using our own tool chain including binutils 2.23.2 and gcc 4.6.3. The reason is that our code has to be built and run on the Amazon cloud computers and on the local PCs, so we need very tight control on both the tools and the libraries we link with. Now with the cmake-2.8.12-rc3 I just built I get a cmake error below. I repeat, our code builds perfectly well with Cmake 2.8.8 and Qt 4. zach@cloud1-12:~/p5/arptop/arp/build$ cmake .. -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/cmake-2.8.12-rc3/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/zach/p5/arptop/arp/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec2304154031/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2304154031.dir/build.make CMakeFiles/cmTryCompileExec2304154031.dir/build make[1]: Entering directory `/home/zach/p5/arptop/arp/build/CMakeFiles/CMakeTmp' /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/cmake-2.8.12-rc3/bin/cmake -E cmake_progress_report /home/zach/p5/arptop/arp/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2304154031.dir/testCCompiler.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec2304154031.dir/testCCompiler.c.o -c /home/zach/p5/arptop/arp/build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTryCompileExec2304154031 /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/stow/cmake-2.8.12-rc3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2304154031.dir/link.txt --verbose=1 /usr/bin/cc -L/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib64 -L/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib CMakeFiles/cmTryCompileExec2304154031.dir/testCCompiler.c.o -o cmTryCompileExec2304154031 -rdynamic /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/ld: this linker was not configured to use sysroots collect2: ld returned 1 exit status make[1]: Leaving directory `/home/zach/p5/arptop/arp/build/CMakeFiles/CMakeTmp' make[1]: *** [cmTryCompileExec2304154031] Error 1 make: *** [cmTryCompileExec2304154031/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): -- Configuring incomplete, errors occurred! See also "/home/zach/p5/arptop/arp/build/CMakeFiles/CMakeOutput.log". See also "/home/zach/p5/arptop/arp/build/CMakeFiles/CMakeError.log". |
(0033914) Brad King (manager) 2013-09-27 16:19 |
Re 0014445:0033913: The key error seems to be: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/ld: this linker was not configured to use sysroots This seems orthogonal to the Qt4 v. Qt5 problem. Please also answer my question from 0014445:0033912. That is about finding Qt5. |
(0033915) Zachary Deretsky (reporter) 2013-09-27 16:30 edited on: 2013-09-27 16:41 |
Brad, Qt5Widgets_DIR is not there. Neither in building Cmake, nor in running it. I include the CMakeCache.txt for building Cmake below: //Build Qt dialog for CMake BUILD_QtDialog:BOOL=OFF |
(0033916) Brad King (manager) 2013-09-27 16:43 |
Re 0014445:0033915: Thanks. Such large information is better provided as an attachment. I edited the comment to quote only the key part. Without BUILD_QtDialog=ON, set during bootstrap with --qt-gui, of course it is not searching for Qt. It shouldn't be running FindQt4 either, except perhaps during tests. |
(0033917) Brad King (manager) 2013-09-27 16:53 |
Re 0014445:0033916: Oops, this has nothing to do with BUILD_QtDialog or Qt5Widgets_DIR. The FindQt4 module is getting loaded in Tests/CMakeLists.txt by a find_package(Qt4) call: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/CMakeLists.txt;hb=v2.8.11.2#l262 [^] That's why building with BUILD_TESTING=OFF avoids the problem. |
(0033918) Brad King (manager) 2013-09-27 16:55 |
This change appears relevant: FindQt4: Do not use qmake from Qt5 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=21123416 [^] but it is already in 2.8.11. |
(0033919) Brad King (manager) 2013-09-27 16:59 |
Steve, the question here is why does FindQt4 barf on a qmake from Qt5 instead of ignoring it as supposedly accomplished by the change linked in 0014445:0033918? Zachary, the error from "ld" reported in 0014445:0033913 when running the built CMake is a separate issue. Please check that your binutils is configured properly and if so file a separate report for the issue. |
(0033922) Stephen Kelly (developer) 2013-09-28 10:38 |
Just to confirm, can the error case be reduced to: cmake_minimum_required(VERSION 2.8) find_package(Qt4 REQUIRED) ? And that fails with 2.8.11, and works with 2.8.10? |
(0033923) Stephen Kelly (developer) 2013-09-28 10:48 edited on: 2013-09-28 10:49 |
Zachary, please post the output of running cmake on the following CMakeLists file: cmake_minimum_required(VERSION 2.8) function(TEST_QT4_QUERY_QMAKE VAR RESULT) execute_process(COMMAND "${QT_QMAKE_EXECUTABLE}" -query ${VAR} RESULT_VARIABLE return_code OUTPUT_VARIABLE output OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE) if(NOT return_code) file(TO_CMAKE_PATH "${output}" output) set(${RESULT} ${output} PARENT_SCOPE) endif() endfunction() function(TEST_QT4_GET_VERSION_COMPONENTS VERSION RESULT_MAJOR RESULT_MINOR RESULT_PATCH) string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" QT_VERSION_MAJOR "${QTVERSION}") string(REGEX REPLACE "^[0-9]+\\.([0-9]+)\\.[0-9]+.*" "\\1" QT_VERSION_MINOR "${QTVERSION}") string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" QT_VERSION_PATCH "${QTVERSION}") set(${RESULT_MAJOR} ${QT_VERSION_MAJOR} PARENT_SCOPE) set(${RESULT_MINOR} ${QT_VERSION_MINOR} PARENT_SCOPE) set(${RESULT_PATCH} ${QT_VERSION_PATCH} PARENT_SCOPE) endfunction() function(TEST_QT4_FIND_QMAKE QMAKE_NAMES QMAKE_RESULT VERSION_RESULT) list(LENGTH QMAKE_NAMES QMAKE_NAMES_LEN) if(${QMAKE_NAMES_LEN} EQUAL 0) return() endif() list(GET QMAKE_NAMES 0 QMAKE_NAME) get_filename_component(qt_install_version "[HKEY_CURRENT_USER\\Software\\trolltech\\Versions;DefaultQtVersion]" NAME) find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME} PATHS ENV QTDIR "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]" PATH_SUFFIXES bin DOC "The qmake executable for the Qt installation to use" ) message("Test ${QMAKE_NAME} QT_QMAKE_EXECUTABLE : ${QT_QMAKE_EXECUTABLE}") set(major 0) if (QT_QMAKE_EXECUTABLE) test_qt4_query_qmake(QT_VERSION QTVERSION) test_qt4_get_version_components("${QTVERSION}" major minor patch) endif() message("major: ${major}") if (NOT QT_QMAKE_EXECUTABLE OR NOT "${major}" EQUAL 4) set(curr_qmake "${QT_QMAKE_EXECUTABLE}") set(curr_qt_version "${QTVERSION}") set(QT_QMAKE_EXECUTABLE NOTFOUND CACHE FILEPATH "" FORCE) list(REMOVE_AT QMAKE_NAMES 0) test_qt4_find_qmake("${QMAKE_NAMES}" QMAKE QTVERSION) test_qt4_get_version_components("${QTVERSION}" major minor patch) if (NOT ${major} EQUAL 4) # Restore possibly found qmake and it's version; these are used later # in error message if incorrect version is found set(QT_QMAKE_EXECUTABLE "${curr_qmake}" CACHE FILEPATH "" FORCE) set(QTVERSION "${curr_qt_version}") endif() endif() set(${QMAKE_RESULT} "${QT_QMAKE_EXECUTABLE}" PARENT_SCOPE) set(${VERSION_RESULT} "${QTVERSION}" PARENT_SCOPE) endfunction() set(_QT4_QMAKE_NAMES qmake qmake4 qmake-qt4 qmake-mac) test_qt4_find_qmake("${_QT4_QMAKE_NAMES}" QT_QMAKE_EXECUTABLE QTVERSION) message("QT_QMAKE_EXECUTABLE : ${QT_QMAKE_EXECUTABLE}") message("QTVERSION : ${QTVERSION}") |
(0033924) Zachary Deretsky (reporter) 2013-09-28 16:33 |
Stephen, I could not run cmake-2.8.12-rc3 successfully because of the issue I reported in 0014448. I can run cmake 2.8.8 against our toolchain with QT4. Are you interested in the output from your file in that environment? Regards, Zach. |
(0033926) Stephen Kelly (developer) 2013-09-29 14:02 |
Zachary, yes, it might be useful. Please test with any versions you can. You can test with 2.8.11, right? |
(0033928) Zachary Deretsky (reporter) 2013-09-29 14:43 |
I managed to run cmake by setting CC to the correct compiler. Here is STDERR output: zach@cloud1-12:~/CMAKE$ cmake . > output.txt Test qmake QT_QMAKE_EXECUTABLE : /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake major: 5 Test qmake4 QT_QMAKE_EXECUTABLE : QT_QMAKE_EXECUTABLE-NOTFOUND major: 0 Test qmake-qt4 QT_QMAKE_EXECUTABLE : QT_QMAKE_EXECUTABLE-NOTFOUND major: 0 Test qmake-mac QT_QMAKE_EXECUTABLE : QT_QMAKE_EXECUTABLE-NOTFOUND major: 0 QT_QMAKE_EXECUTABLE : /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake QTVERSION : 5.1.0 and STDOUT output: zach@cloud1-12:~/CMAKE$ cat output.txt -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/zach/CMAKE Here is output from cmake 2.8.8 and toolchain with QT4: zach@cloud1-12:~/CMAKE$ cmake . > out8.txt Test qmake QT_QMAKE_EXECUTABLE : /AZ/x86_64/kernel-3.2.0-23-virtual/glibc-2.15/2012-06-03-17.47.29/bin/qmake major: 4 QT_QMAKE_EXECUTABLE : /AZ/x86_64/kernel-3.2.0-23-virtual/glibc-2.15/2012-06-03-17.47.29/bin/qmake QTVERSION : 4.7.4 zach@cloud1-12:~/CMAKE$ cat out8.txt -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-23-virtual/glibc-2.15/2012-06-03-17.47.29/bin/gcc -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-23-virtual/glibc-2.15/2012-06-03-17.47.29/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-23-virtual/glibc-2.15/2012-06-03-17.47.29/bin/c++ -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-23-virtual/glibc-2.15/2012-06-03-17.47.29/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/zach/CMAKE Stephen, is this you were asking for? Do you still want me to test with 2.8.11? |
(0033929) Zachary Deretsky (reporter) 2013-09-29 14:49 |
Now, that I can run cmake-2.8.12-rc3 by exporting CC it fails in find_package(Qt5Widgets): zach@cloud1-12:~/p5/arptop/arp/build$ cmake .. -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.51.0 -- Found the following Boost libraries: -- system -- filesystem -- program_options CMake Error at /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message): Failed to find "GL" in "". Call Stack (most recent call first): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:48 (_qt5gui_find_extra_libs) /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:118 (include) /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:77 (find_package) CMakeLists.txt:176 (find_package) -- Configuring incomplete, errors occurred! See also "/home/zach/p5/arptop/arp/build/CMakeFiles/CMakeOutput.log". |
(0033939) Stephen Kelly (developer) 2013-09-30 11:11 |
The result in 0014445:0033929 might be a Qt bug if it is reproducible with a clean build. Please file a bug in Qt for that. |
(0033940) Stephen Kelly (developer) 2013-09-30 11:15 |
Zachary, please apply this patch to your FindQt.cmake and re-test: diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 1d17ba3..eed512e 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -525,6 +525,9 @@ endfunction() function(_QT4_FIND_QMAKE QMAKE_NAMES QMAKE_RESULT VERSION_RESULT) list(LENGTH QMAKE_NAMES QMAKE_NAMES_LEN) if(${QMAKE_NAMES_LEN} EQUAL 0) + if (NOT QT_QMAKE_EXECUTABLE OR NOT "${major}" EQUAL 4) + set(QT_QMAKE_EXECUTABLE NOTFOUND CACHE FILEPATH "" FORCE) + endif() return() endif() list(GET QMAKE_NAMES 0 QMAKE_NAME) |
(0033942) Brad King (manager) 2013-09-30 11:20 |
Re 0014445:0033940: Steve, don't you mean set(QT_QMAKE_EXECUTABLE QT_QMAKE_EXECUTABLE-NOTFOUND CACHE FILEPATH "" FORCE) ? |
(0033944) Stephen Kelly (developer) 2013-09-30 11:33 |
Yes, that's better, but both should work, I think. |
(0033947) Zachary Deretsky (reporter) 2013-09-30 14:59 |
Steve, this is result of cmake-2.8.12-rc3 after applying your patch Do you need more data? Thanks, Zach. zach@cloud1-12:~/CMAKE/build5$ cmake .. > out5.txt Test qmake QT_QMAKE_EXECUTABLE : /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake major: 5 Test qmake4 QT_QMAKE_EXECUTABLE : QT_QMAKE_EXECUTABLE-NOTFOUND major: 0 Test qmake-qt4 QT_QMAKE_EXECUTABLE : QT_QMAKE_EXECUTABLE-NOTFOUND major: 0 Test qmake-mac QT_QMAKE_EXECUTABLE : QT_QMAKE_EXECUTABLE-NOTFOUND major: 0 QT_QMAKE_EXECUTABLE : /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/qmake QTVERSION : 5.1.0 zach@cloud1-12:~/CMAKE/build5$ cat out5.txt -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/zach/CMAKE/build5 |
(0033954) Stephen Kelly (developer) 2013-09-30 17:30 |
Yes, please try your original project with it. The patch I posted it a proposed fix to the issue. |
(0033955) Zachary Deretsky (reporter) 2013-09-30 17:47 |
I still get this: zach@cloud1-12:~/p5/arptop/arp/build$ cmake .. -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- Check for working C compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- Check for working CXX compiler: /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.51.0 -- Found the following Boost libraries: -- system -- filesystem -- program_options CMake Error at /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message): Failed to find "GL" in "". Call Stack (most recent call first): /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:48 (_qt5gui_find_extra_libs) /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:118 (include) /AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:77 (find_package) CMakeLists.txt:176 (find_package) -- Configuring incomplete, errors occurred! See also "/home/zach/p5/arptop/arp/build/CMakeFiles/CMakeOutput.log". |
(0033956) Stephen Kelly (developer) 2013-09-30 17:58 |
See 0014445:0033939 It looks like the original issue has been resolved by the patch. I'll push a branch to next with it. |
(0033957) Stephen Kelly (developer) 2013-10-01 09:34 |
My patch is not the correct fix, and it is not clear to me what the problem is. |
(0035570) Clinton Stimpson (developer) 2014-03-31 09:21 |
I was able to reproduce the original problem on Windows with only a Qt5 available in my PATH environment variable when using CMake 2.8.11. But when I upgraded to 2.8.12, the errors went away. There was one warning that still leaked out when calling find_package(Qt4 QUIET) from Tests/CMakeLists.txt. That has been fixed here. http://cmake.org/gitweb?p=cmake.git;a=commit;h=83934757 [^] Is there anything else to do for this bug? Can it be resolved now? Or are we leaving it open because of the error coming out of the Qt5 config cmake files? |
(0039082) Robert Maynard (manager) 2015-07-08 08:57 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-09-27 04:27 | Zachary Deretsky | New Issue | |
2013-09-27 08:38 | Brad King | Relationship added | related to 0014142 |
2013-09-27 08:42 | Brad King | Note Added: 0033907 | |
2013-09-27 08:43 | Brad King | Note Added: 0033908 | |
2013-09-27 14:12 | Zachary Deretsky | Note Added: 0033911 | |
2013-09-27 15:35 | Brad King | Assigned To | => Stephen Kelly |
2013-09-27 15:35 | Brad King | Status | new => assigned |
2013-09-27 15:37 | Brad King | Note Added: 0033912 | |
2013-09-27 16:04 | Zachary Deretsky | Note Added: 0033913 | |
2013-09-27 16:19 | Brad King | Note Added: 0033914 | |
2013-09-27 16:30 | Zachary Deretsky | Note Added: 0033915 | |
2013-09-27 16:41 | Brad King | Note Edited: 0033915 | |
2013-09-27 16:43 | Brad King | Note Added: 0033916 | |
2013-09-27 16:53 | Brad King | Note Added: 0033917 | |
2013-09-27 16:55 | Brad King | Note Added: 0033918 | |
2013-09-27 16:59 | Brad King | Note Added: 0033919 | |
2013-09-28 10:38 | Stephen Kelly | Note Added: 0033922 | |
2013-09-28 10:48 | Stephen Kelly | Note Added: 0033923 | |
2013-09-28 10:49 | Stephen Kelly | Note Edited: 0033923 | |
2013-09-28 16:33 | Zachary Deretsky | Note Added: 0033924 | |
2013-09-29 14:02 | Stephen Kelly | Note Added: 0033926 | |
2013-09-29 14:43 | Zachary Deretsky | Note Added: 0033928 | |
2013-09-29 14:49 | Zachary Deretsky | Note Added: 0033929 | |
2013-09-30 08:31 | Brad King | Relationship added | related to 0014448 |
2013-09-30 11:11 | Stephen Kelly | Note Added: 0033939 | |
2013-09-30 11:15 | Stephen Kelly | Note Added: 0033940 | |
2013-09-30 11:20 | Brad King | Note Added: 0033942 | |
2013-09-30 11:33 | Stephen Kelly | Note Added: 0033944 | |
2013-09-30 14:59 | Zachary Deretsky | Note Added: 0033947 | |
2013-09-30 17:30 | Stephen Kelly | Note Added: 0033954 | |
2013-09-30 17:47 | Zachary Deretsky | Note Added: 0033955 | |
2013-09-30 17:58 | Stephen Kelly | Note Added: 0033956 | |
2013-09-30 18:04 | Stephen Kelly | Status | assigned => resolved |
2013-09-30 18:04 | Stephen Kelly | Resolution | open => fixed |
2013-10-01 09:34 | Stephen Kelly | Assigned To | Stephen Kelly => Clinton Stimpson |
2013-10-01 09:34 | Stephen Kelly | Note Added: 0033957 | |
2013-10-01 09:34 | Stephen Kelly | Status | resolved => feedback |
2013-10-01 09:34 | Stephen Kelly | Resolution | fixed => reopened |
2014-03-31 09:21 | Clinton Stimpson | Note Added: 0035570 | |
2015-02-26 16:24 | Stephen Kelly | Status | feedback => resolved |
2015-02-26 16:24 | Stephen Kelly | Fixed in Version | => CMake 2.8.12 |
2015-02-26 16:24 | Stephen Kelly | Resolution | reopened => fixed |
2015-07-08 08:57 | Robert Maynard | Note Added: 0039082 | |
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |