[CMake] Building CMake with Qt5

Jacky Alciné jackyalcine at gmail.com
Wed Sep 4 18:22:15 EDT 2013


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 at 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.
-- 
Jacky Alciné - PGP: 201999FC
http://jalcine.me
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 665 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130904/665e8349/attachment.pgp>


More information about the CMake mailing list