Thanks everyone for the help, I was able to get Qt recompiled and working with Visual Studio and am happily building the cmake Qt gui. If anyone else found these posts helpful, you will also need to know that you need to compile Qt with static libraries enabled otherwise the CMake build will not install the cmake-gui binary.<br>
<br>Steve<br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 10:57 AM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Nov 12, 2009 at 12:51 PM, Steven Wilson<br>
<<a href="mailto:steven.wesley.wilson@gmail.com">steven.wesley.wilson@gmail.com</a>> wrote:<br>
> Caveat: I am a complete Qt novice.<br>
><br>
> I'm trying to build the 2.8 CVS branch of CMake on Windows and would like to<br>
> build the Qt GUI. I downloaded and installed the LGPL/Free Windows Qt SDK<br>
> from the Nokia website. When I use the CMake 2.6.4 or CMake 2.8.0 RC 7 GUI<br>
> to configure the build for Visual Studio(2008) (with the Qt GUI enabled) I<br>
> get the following error from CMake:<br>
><br>
> CMake Error at C:/Program Files (x86)/CMake<br>
> 2.8/share/cmake-2.8/Modules/FindQt4.cmake:771 (MESSAGE):<br>
> It appears you're trying to use Visual Studio with Qt built by mingw<br>
> Call Stack (most recent call first):<br>
> Source/QtDialog/CMakeLists.txt:14 (FIND_PACKAGE)<br>
><br>
> The FindQT4.cmake package indicates that it is looking for a qmake.exe<br>
> binary to run to configure the rest of the Qt CMake variables. I set my<br>
> PATH environment variable to point to C:\Qt\2009.4\qt\bin so that the<br>
> FindQT4.cmake package can find the qmake binary, but it seems to think that<br>
> qmake is for mingw.<br>
><br>
> I have also tried setting my PATH variable to point to C:\Qt\2009.4\qt\qmake<br>
> so that it can find the qmake in that directory, but using that one gives<br>
> errors about temporary library versions of the Qt library not being<br>
> installed. The FindQT4.cmake file tries to query the qmake binary for<br>
> QT_INSTALL_LIBS and qt\qmake\qmake.exe from the SDK I installed returns the<br>
> following:<br>
><br>
> C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more<br>
> /Troll/4.5.0/qt/lib<br>
><br>
> This path of course does not exist on my system and appears to be an<br>
> artifact of the Qt build process from Nokia.<br>
><br>
> I can not find any other qmake.exe binaries on the system and at this point<br>
> I do not understand why the configuration does not work.<br>
><br>
> If you have any advice that you can offer, I will greatly appreciate the<br>
> help.<br>
><br>
<br>
</div></div>You need to rebuild Qt using visual studio.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br>