If you are using prebuilt Qt binaries from Nokia there are two flavors, 1 built with mingw and the other built with VS 2008. Try the one built with VS 2008.<div><br></div><div><a href="http://qt.nokia.com/downloads/windows-cpp-vs2008">http://qt.nokia.com/downloads/windows-cpp-vs2008</a><br>
<br><div class="gmail_quote">On Wed, Mar 17, 2010 at 10:57 PM, Mike Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Did you compile Qt with Visual Studio? That is what the error is<br>
saying. You are trying to configure your project using the visual<br>
studion generator against a Qt built with MinGW. You can not do this.<br>
<br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer Dayton, Ohio<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Wed, Mar 17, 2010 at 10:54 PM, Oli Glaser <<a href="mailto:oli@glasers.org">oli@glasers.org</a>> wrote:<br>
> Hi all,<br>
><br>
><br>
><br>
> I have managed to get it as far as this error now, but no further. It does<br>
> work when set to mingw however. The error message is not too helpful - does<br>
> anyone have any idea how I go about getting it to work with visual studio?<br>
> Is it something to do with the open source app I am trying to compile? i.e<br>
> although on the info for it, it said it could be compiled easily using cmake<br>
> for any platform, do I have to change settings in the makefiles or code to<br>
> get it to work?<br>
><br>
> Does anyone use visual studio with cmake out there?<br>
><br>
><br>
><br>
> It appears you're trying to use Visual Studio with Qt built by mingw<br>
><br>
><br>
><br>
> Full error:<br>
><br>
><br>
> Check for working C compiler: cl<br>
><br>
> Check for working C compiler: cl -- works<br>
><br>
> Detecting C compiler ABI info<br>
><br>
> Detecting C compiler ABI info - done<br>
><br>
> Check for working CXX compiler: cl<br>
><br>
> Check for working CXX compiler: cl -- works<br>
><br>
> Detecting CXX compiler ABI info<br>
><br>
> Detecting CXX compiler ABI info - done<br>
><br>
> Looking for Q_WS_X11<br>
><br>
> Looking for Q_WS_X11 - not found.<br>
><br>
> Looking for Q_WS_WIN<br>
><br>
> Looking for Q_WS_WIN - found<br>
><br>
> Looking for Q_WS_QWS<br>
><br>
> Looking for Q_WS_QWS - not found.<br>
><br>
> Looking for Q_WS_MAC<br>
><br>
> Looking for Q_WS_MAC - not found.<br>
><br>
> CMake Error at C:/Program Files/CMake<br>
> 2.8/share/cmake-2.8/Modules/FindQt4.cmake:775 (MESSAGE):<br>
><br>
> It appears you're trying to use Visual Studio with Qt built by mingw<br>
><br>
> Call Stack (most recent call first):<br>
><br>
> CMakeLists.txt:7 (find_package)<br>
><br>
> Configuring incomplete, errors occurred!<br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
</div>> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<div class="im">><br>
> Follow this link to subscribe/unsubscribe:<br>
</div>> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<div class="im">><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
</div>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<div class="im"><br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>