It is currently Sat Aug 22, 2020 2:04 pm


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Qt compile errors using Cmake
PostPosted: Sat Jul 23, 2011 4:17 pm 

Joined: Sat Jul 23, 2011 3:54 pm
Posts: 1
Hi there! I'm quite new to the forums here, but have been trying to get PolyVox compiled for a while now. The issue I'm running into is that CMake can't seem to find Qt no matter how I point to it. I do have the latest versions of all of the installs necessary to compile, but I'm a little new to C++ coding and CMake in general (Java Fan) so please look past the naivety.

Here's a CMake output:
Code:
Could NOT find Qt4 (missing:  QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_INCLUDE_DIR QT_QTCORE_LIBRARY QT_QTGUI_INCLUDE_DIR QT_QTGUI_LIBRARY QT_QTOPENGL_INCLUDE_DIR QT_QTOPENGL_LIBRARY QT_QTTEST_INCLUDE_DIR QT_QTTEST_LIBRARY QT_UIC_EXECUTABLE)
Qt QTOPENGL library not found.
Qt QTGUI library not found.
Qt QTTEST library not found.
Qt QTCORE library not found.
QtTest not found. Either install it or disable tests by setting BUILD_TESTING to OFF
CMake Error at tests/CMakeLists.txt:7 (QT4_WRAP_CPP):
  Unknown CMake command "QT4_WRAP_CPP".
Call Stack (most recent call first):
  tests/CMakeLists.txt:33 (CREATE_TEST)


Configuring incomplete, errors occurred!


Any help would be greatly appreciated! I'm looking forward to using this great looking engine.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Qt compile errors using Cmake
PostPosted: Sat Jul 23, 2011 6:02 pm 

Joined: Sat Sep 18, 2010 9:45 pm
Posts: 189
Do you have QT on your path? On my system is in: E:\Qt\4.6.3\bin


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Qt compile errors using Cmake
PostPosted: Sun Jul 24, 2011 8:19 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Yes, the first thing to check is that Qt is in your system PATH variable (assuming you are on Windows). If you open a dos box and type 'qmake' does it autmatically find the QMake executable (not to be confused with CMake, which is not part of Qt)? If not then you need to modify your path so that Windows can find Qt before CMake will be able to find it.

The other thing to note is that you don't actually need Qt to buld PolyVox - Qt is only need for the examples. I think you can tell CMake not to build the examples via a command line switch (or through the CMake GUI) but I'm not sure if it automatically skips searching for Qt in this case. Or whether the lack of Qt can be made a non-fatal error, so that it automatically skips building the examples if Qt is not found. It might be that we should adjust the CMake scripts in this case.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net