<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">&lt;<a href="mailto:jackyalcine@gmail.com" target="_blank">jackyalcine@gmail.com</a>&gt;</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>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to build CMake 2.8.11 on my 64 bit Ubuntu 12.04. I am trying to<br>
&gt; use QT5.1, but CMake is saying that Qt is not correctly installed.<br>
&gt;<br>
&gt; I am wondering whether Qt5 is compatible with CMake and if I should revert<br>
&gt; to Qt4.8.<br>
&gt;<br>
&gt; The errors that I got are as follows:<br>
&gt; ******************************<br>
&gt; make: `cmake&#39; is up to date.<br>
&gt; loading initial cache file<br>
&gt; /home/trash001/Downloads/cmake-2.8.11.2/Bootstrap.cmk/InitialCacheFlags.cmak<br>
</div>&gt; e Curses libraries were not found. Curses GUI for CMake will not be built.<br>
<div class="im">&gt; CMake Warning at Modules/FindQt4.cmake:657 (message):<br>
&gt;   /home/trash001/ProgramFiles/Qt5.1.1/5.1.1/gcc_64/bin/qmake reported<br>
&gt;   QT_INSTALL_LIBS as &quot;/home/trash001/ProgramFiles/Qt5.1.1/5.1.1/gcc_64/lib&quot;<br>
&gt;   but QtCore could not be found there.  Qt is NOT installed correctly for<br>
&gt; the<br>
&gt;   target build environment.<br>
&gt; Call Stack (most recent call first):<br>
&gt;   Source/QtDialog/CMakeLists.txt:34 (find_package)<br>
&gt;<br>
&gt;<br>
&gt; CMake Error at Modules/FindQt4.cmake:661 (message):<br>
&gt;   Could NOT find QtCore.  Check<br>
&gt;   /home/trash001/Downloads/cmake-2.8.11.2/CMakeFiles/CMakeError.log for more<br>
&gt; details.<br>
&gt; Call Stack (most recent call first):<br>
&gt;   Source/QtDialog/CMakeLists.txt:34 (find_package)<br>
&gt;<br>
&gt;<br>
&gt; -- Configuring incomplete, errors occurred!<br>
&gt; ---------------------------------------------<br>
&gt; Error when bootstrapping CMake:<br>
&gt; Problem while running initial CMake<br>
&gt; ---------------------------------------------<br>
&gt; trash001@MSVEDE09:~/Downloads/cmake-2.8.11.2$<br>
&gt;<br>
&gt; ******************************<br>
&gt;<br>
&gt; 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&#39;s Qt-based GUI with Qt5 does not work at the moment. At a minimum the find_package inside CMake&#39;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&#39;s Qt-based UI is officially supporting to be built against Qt5 I&#39;d build CMake without Qt support or against Qt4.</div><div><br></div><div>Andreas</div></div></div></div>