Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

Qt compile errors using Cmake
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=248
Page 1 of 1

Author:  yosuppy [ Sat Jul 23, 2011 4:17 pm ]
Post subject:  Qt compile errors using Cmake

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.

Author:  beyzend [ Sat Jul 23, 2011 6:02 pm ]
Post subject:  Re: Qt compile errors using Cmake

Do you have QT on your path? On my system is in: E:\Qt\4.6.3\bin

Author:  David Williams [ Sun Jul 24, 2011 8:19 am ]
Post subject:  Re: Qt compile errors using Cmake

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/