Open iamdrfly opened 2 years ago
Hi, I'm not sure how the Qt4 support is still working or not. Could you try with Qt5 to see if this help ?
Hi, I have tried with Qt5 and I git this error from the cmake:
-- Package version (ROS package.xml): 4.12.1 -- CMake versions older than 3.12 may warn when looking to Boost components. Custom macros are used to find it. -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) CMake Warning at cmake/doxygen.cmake:496 (MESSAGE): Failed to find Doxygen, documentation will not be generated. Call Stack (most recent call first): cmake/post-project.cmake:59 (_SETUP_PROJECT_DOCUMENTATION) CMakeLists.txt:41 (PROJECT)
-- Default C++ standard: 201402 -- C++ standard sufficient: Minimal required 11, currently defined: 14 -- openscenegraph >= 3.2 is required. -- Checking for module 'openscenegraph>=3.2' -- Found openscenegraph, version 3.2.3 -- Pkg-config module openscenegraph v3.2.3 has been detected with success. -- openthreads >= 2.6 is required. -- Checking for module 'openthreads>=2.6' -- Found openthreads, version 3.3.1 -- Pkg-config module openthreads v3.3.1 has been detected with success. -- openscenegraph-osgQt is required. -- Checking for module 'openscenegraph-osgQt' -- Found openscenegraph-osgQt, version 3.2.3 -- Pkg-config module openscenegraph-osgQt v3.2.3 has been detected with success. CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message): Found unsuitable Qt version "5.9.5" from /usr/bin/qmake, this code requires Qt 4.x Call Stack (most recent call first): cmake/package-config.cmake:97 (find_package) cmake-module/qt.cmake:3 (ADD_PROJECT_DEPENDENCY) CMakeLists.txt:123 (ADD_QT_DEPENDENCY)
-- Configuring incomplete, errors occurred! See also "/home/amosca/gepetto-viewer/build/CMakeFiles/CMakeOutput.log".
Your osg version is rather old. You must first check what Qt version this OSG version supports. If it supports Qt5, make sure it was compiled with Qt5. Then, force usage of Qt5 by switching CMake option PROJECT_USE_QT4
to FALSE
. For old OSG version, this variable is true by default.
Have a look at the files in cmake-modules
directory to see the logic. The files are no so numerous and they are short.
Hi guys, many thanks for your help. @jmirabel I followed your suggestion and it worked. Many thanks.
I can not figure out why I am not able to compile the package. I got the following error:
The output of the cmake is the following:
what am i doing wrong?