Hi, On Thu, Sep 5, 2013 at 12:22 AM, Jacky Alciné <jackyalc...@gmail.com> wrote:
> On Wed September 4 2013 1.14.17 PM Tanweer Rashid wrote: > > Hi, > > > > I am trying to build CMake 2.8.11 on my 64 bit Ubuntu 12.04. I am trying > to > > use QT5.1, but CMake is saying that Qt is not correctly installed. > > > > I am wondering whether Qt5 is compatible with CMake and if I should > revert > > to Qt4.8. > > > > The errors that I got are as follows: > > ****************************** > > make: `cmake' is up to date. > > loading initial cache file > > > /home/trash001/Downloads/cmake-2.8.11.2/Bootstrap.cmk/InitialCacheFlags.cmak > > e Curses libraries were not found. Curses GUI for CMake will not be > built. > > CMake Warning at Modules/FindQt4.cmake:657 (message): > > /home/trash001/ProgramFiles/Qt5.1.1/5.1.1/gcc_64/bin/qmake reported > > QT_INSTALL_LIBS as > "/home/trash001/ProgramFiles/Qt5.1.1/5.1.1/gcc_64/lib" > > but QtCore could not be found there. Qt is NOT installed correctly for > > the > > target build environment. > > Call Stack (most recent call first): > > Source/QtDialog/CMakeLists.txt:34 (find_package) > > > > > > CMake Error at Modules/FindQt4.cmake:661 (message): > > Could NOT find QtCore. Check > > /home/trash001/Downloads/cmake-2.8.11.2/CMakeFiles/CMakeError.log for > more > > details. > > Call Stack (most recent call first): > > Source/QtDialog/CMakeLists.txt:34 (find_package) > > > > > > -- Configuring incomplete, errors occurred! > > --------------------------------------------- > > Error when bootstrapping CMake: > > Problem while running initial CMake > > --------------------------------------------- > > trash001@MSVEDE09:~/Downloads/cmake-2.8.11.2$ > > > > ****************************** > > > > Thanks, > AFAIK, Qt5 hasn’t been configured officially with Cmake. The KDE guys > probably > have a fix though. > Actually Qt5 ships with CMake modules itself already, i.e. you can do a find_package(Qt5) and all the fancy stuff as well. However as you can already see from the module name, they do not (and intentionally so) provide a drop-in replacement for Qt4. Thats why building CMake's Qt-based GUI with Qt5 does not work at the moment. At a minimum the find_package inside CMake's code would need to be changed to search for Qt5, but there might be more pitfalls. So until CMake's Qt-based UI is officially supporting to be built against Qt5 I'd build CMake without Qt support or against Qt4. Andreas
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake