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