| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0014142 | CMake | CMake | public | 2013-05-15 09:30 | 2014-03-05 09:58 | ||||
| Reporter | Kurt Hindenburg | ||||||||
| Assigned To | Stephen Kelly | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | VirtualBox Mac Host | OS | Linux ubuntu | OS Version | 3.8 | ||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0014142: cmake-git won't build with Qt5 git | ||||||||
| Description | .. -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian Curses libraries were not found. Curses GUI for CMake will not be built. -- Looking for elf.h -- Looking for elf.h - found -- Looking for a Fortran compiler -- Looking for a Fortran compiler - NOTFOUND CMake Warning at Modules/FindQt4.cmake:657 (message): /home/kurthindenburg/kf5/qt5/bin/qmake reported QT_INSTALL_LIBS as "/home/kurthindenburg/kf5/qt5/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:1028 (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:1033 (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:1036 (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): /home/kurthindenburg/kf5/qt5/bin/qmake reported QT_INSTALL_LIBS as "/home/kurthindenburg/kf5/qt5/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) CMake Error at Modules/FindQt4.cmake:1028 (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:266 (find_package) CMake Error at Modules/FindQt4.cmake:1033 (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:266 (find_package) CMake Error at Modules/FindQt4.cmake:1036 (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:266 (find_package) -- Found unsuitable Qt version "5.1.0" from /home/kurthindenburg/kf5/qt5/bin/qmake -- Performing Test run_pic_test -- Performing Test run_pic_test - Success -- Configuring incomplete, errors occurred! | ||||||||
| Additional Information | suggestion via IRC to enter report - running cmake-git master (updated today) If you need more logs/info let me know Linux qt5kf5 3.8.0-19-generic 0000030-Ubuntu SMP Wed May 1 16:36:13 UTC 2013 i686 i686 i686 GNU/Linux Running in a VM - host Mac | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | ||||||
|
||||||
| Relationships |
| Notes | |
|
(0033040) Clinton Stimpson (developer) 2013-05-15 10:40 |
Using FindQt4 with Qt5 is not right. Newer versions of CMake can catch that. If you want to build cmake-gui with Qt5, make sure Qt5 can be found. You can do that by putting the root to your Qt5 installation in the CMAKE_PREFIX_PATH environment variable. Since its your own build of Qt5, it isn't automatically found without some help. See http://www.kdab.com/using-cmake-with-qt-5./ [^] for some information and if you want to see how the source looks for Qt5, its in CMake/Source/QtDialog/CMakeLists.txt. |
|
(0033041) Stephen Kelly (developer) 2013-05-15 10:42 |
Clinton, please review fix-build-without-qt4-with-qt5, which I've just pushed to next. The reported error happens even when not trying to build cmake-gui at all. It's a bug in FindQt4.cmake. |
|
(0033042) Clinton Stimpson (developer) 2013-05-15 11:01 |
Oh ok... the patch looks fine. But I wonder if the changes to the tests are necessary. |
|
(0033043) Stephen Kelly (developer) 2013-05-15 11:04 |
Ok, I've split that part into a separate patch. I think the first patch needs to go into CMake 2.8.11. |
|
(0033065) Stephen Kelly (developer) 2013-05-16 12:35 edited on: 2013-05-16 12:36 |
As 2.8.11 will be released without my patch, cmake will not build if Qt 5 (any version) is findable but Qt 4 is not (probably on any OS, but I have only tried linux). I recommend adding it to 2.8.11.1 if there is such a version. 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 |
|
(0033127) Stephen Kelly (developer) 2013-05-24 09:49 |
Fixed with 2f84dfec93b6a5d8b4db89bafe09688382b96997 and a97240b969c8ce48f728ee113f47f9c2ba598aeb |
|
(0035271) Robert Maynard (manager) 2014-03-05 09:58 |
Closing resolved issues that have not been updated in more than 4 months |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2013-05-15 09:30 | Kurt Hindenburg | New Issue | |
| 2013-05-15 10:40 | Clinton Stimpson | Note Added: 0033040 | |
| 2013-05-15 10:42 | Stephen Kelly | Note Added: 0033041 | |
| 2013-05-15 11:01 | Clinton Stimpson | Note Added: 0033042 | |
| 2013-05-15 11:04 | Stephen Kelly | Note Added: 0033043 | |
| 2013-05-15 11:25 | Brad King | Assigned To | => Stephen Kelly |
| 2013-05-15 11:25 | Brad King | Status | new => assigned |
| 2013-05-16 12:35 | Stephen Kelly | Note Added: 0033065 | |
| 2013-05-16 12:36 | Stephen Kelly | Note Edited: 0033065 | |
| 2013-05-24 09:49 | Stephen Kelly | Note Added: 0033127 | |
| 2013-05-24 09:49 | Stephen Kelly | Status | assigned => resolved |
| 2013-05-24 09:49 | Stephen Kelly | Resolution | open => fixed |
| 2013-09-27 08:38 | Brad King | Relationship added | related to 0014445 |
| 2014-03-05 09:58 | Robert Maynard | Note Added: 0035271 | |
| 2014-03-05 09:58 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |