<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 5, 2013 at 12:22 AM, Jacky Alciné <span dir="ltr"><<a href="mailto:jackyalcine@gmail.com" target="_blank">jackyalcine@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed September 4 2013 1.14.17 PM Tanweer Rashid wrote:<br>
> Hi,<br>
><br>
> I am trying to build CMake 2.8.11 on my 64 bit Ubuntu 12.04. I am trying to<br>
> use QT5.1, but CMake is saying that Qt is not correctly installed.<br>
><br>
> I am wondering whether Qt5 is compatible with CMake and if I should revert<br>
> to Qt4.8.<br>
><br>
> The errors that I got are as follows:<br>
> ******************************<br>
> make: `cmake' is up to date.<br>
> loading initial cache file<br>
> /home/trash001/Downloads/cmake-2.8.11.2/Bootstrap.cmk/InitialCacheFlags.cmak<br>
</div>> e Curses libraries were not found. Curses GUI for CMake will not be built.<br>
<div class="im">> CMake Warning at Modules/FindQt4.cmake:657 (message):<br>
> /home/trash001/ProgramFiles/Qt5.1.1/5.1.1/gcc_64/bin/qmake reported<br>
> QT_INSTALL_LIBS as "/home/trash001/ProgramFiles/Qt5.1.1/5.1.1/gcc_64/lib"<br>
> but QtCore could not be found there. Qt is NOT installed correctly for<br>
> the<br>
> target build environment.<br>
> Call Stack (most recent call first):<br>
> Source/QtDialog/CMakeLists.txt:34 (find_package)<br>
><br>
><br>
> CMake Error at Modules/FindQt4.cmake:661 (message):<br>
> Could NOT find QtCore. Check<br>
> /home/trash001/Downloads/cmake-2.8.11.2/CMakeFiles/CMakeError.log for more<br>
> details.<br>
> Call Stack (most recent call first):<br>
> Source/QtDialog/CMakeLists.txt:34 (find_package)<br>
><br>
><br>
> -- Configuring incomplete, errors occurred!<br>
> ---------------------------------------------<br>
> Error when bootstrapping CMake:<br>
> Problem while running initial CMake<br>
> ---------------------------------------------<br>
> trash001@MSVEDE09:~/Downloads/cmake-2.8.11.2$<br>
><br>
> ******************************<br>
><br>
> Thanks,<br>
</div>AFAIK, Qt5 hasn’t been configured officially with Cmake. The KDE guys probably<br>
have a fix though.<br></blockquote><div><br></div><div>Actually Qt5 ships with CMake modules itself already, i.e. you can do a find_package(Qt5) and all the fancy stuff as well.</div><div><br></div><div>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.</div>
<div><br></div><div>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.</div><div><br></div><div>Andreas</div></div></div></div>