WilstonOreo / omnidome

Dome Mapping Projection Software
GNU Affero General Public License v3.0
205 stars 43 forks source link

Unknown CMake command "QT5_WRAP_CPP" #36

Closed kr15h closed 5 years ago

kr15h commented 7 years ago

Running ./bootstrap.sh under Mac OS X El Capitan Version 10.11.6. Using Qt 5.9. More output below.

...

-- C++ compiler is /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Setup build directories...
Adding submodule omnicalib
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.13")
-- Doxygen is setup. Use 'make doc' to generate documentation.
-- Omnidome 1.0.1
CMake Error at cmake-scripts/base/build_target.cmake:111 (QT5_WRAP_CPP):
  Unknown CMake command "QT5_WRAP_CPP".
Call Stack (most recent call first):
  cmake-scripts/base/build_target.cmake:127 (omni_setup_build_target)
  CMakeLists.txt:36 (omni_add_shared_library)

-- Configuring incomplete, errors occurred!
See also "/Volumes/CHAPPIE/omnidome/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
kr15h commented 7 years ago

It seems that QT5_WRAP_CPP is no longer a part of Qt 5.9

kr15h commented 7 years ago

Installed Qt 5.8 as the latest commit is with a description "Qt 5.8". Tried to compile with Qt being in my home directory and omnidome repo as well. This is where the ./bootstrap.sh script stopped.

-- Plugin plugin_mapping_CubeMap in /Users/kris/omnidome/src/plugins/mapping/CubeMap
-- Plugin plugin_mapping_Cylindrical in /Users/kris/omnidome/src/plugins/mapping/Cylindrical
-- Plugin plugin_mapping_Equirectangular in /Users/kris/omnidome/src/plugins/mapping/Equirectangular
-- Plugin plugin_mapping_Fisheye in /Users/kris/omnidome/src/plugins/mapping/Fisheye
-- Plugin plugin_mapping_TexCoords in /Users/kris/omnidome/src/plugins/mapping/TexCoords
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kris/omnidome
Scanning dependencies of target omni
[  1%] Building CXX object CMakeFiles/omni.dir/src/lib/BlendMask.cpp.o
In file included from /Users/kris/omnidome/src/lib/BlendMask.cpp:23:
In file included from /Users/kris/omnidome/include/omni/proj/Tuning.h:29:
/Users/kris/omnidome/include/omni/proj/ColorCorrection.h:24:10: fatal error:
      'omnic/ColorCorrectionLOT.h' file not found
#include <omnic/ColorCorrectionLOT.h>
         ^
1 error generated.
make[2]: *** [CMakeFiles/omni.dir/src/lib/BlendMask.cpp.o] Error 1
make[1]: *** [CMakeFiles/omni.dir/all] Error 2
make: *** [all] Error 2
rnkn commented 7 years ago

I have the same issue with Qt 5.9 installed via Homebrew.

$ cmake . -DQT_PATH=/usr/local/opt/qt/
...
-- Omnidome 1.0.1
CMake Error at cmake-scripts/base/build_target.cmake:111 (QT5_WRAP_CPP):
  Unknown CMake command "QT5_WRAP_CPP".
Call Stack (most recent call first):
  cmake-scripts/base/build_target.cmake:127 (omni_setup_build_target)
  CMakeLists.txt:36 (omni_add_shared_library)

-- Configuring incomplete, errors occurred!
See also "/Users/Paul/Developer/omnidome/CMakeFiles/CMakeOutput.log".
rnkn commented 7 years ago

I also changed the Qt minor version to 9 as per https://github.com/WilstonOreo/omnidome/issues/33#issuecomment-291828483 but no dice....

@@ -34,7 +34,7 @@ include(CMakeParseArguments)
 omni_option(QT_MAJOR_VERSION "Qt Major Version" 5 )

 # Qt Minor version, default is 6
-omni_option(QT_MINOR_VERSION "Qt Minor Version" 8 )
+omni_option(QT_MINOR_VERSION "Qt Minor Version" 9 )
 omni_option(QT_PATH "Qt Path" "$ENV{HOME}/Qt" )

 MACRO(find_qt5_component COMPONENT_NAME)
brocro commented 7 years ago

so here is how to fix this issue (assuming you are on mac osx and have the latest version of Qt - 5.9.2)

in the file qt.cmake - line 37

omni_option(QT_MINOR_VERSION "Qt Minor Version" 9.2 )

then run the bootstrap.sh file (you need a github account with a valid ssh key)