[osg-users] Does OSG still build against Qt 4.8.7?

Marko Käning mk-macports at posteo.net
Tue Mar 22 16:27:44 PDT 2016


Hi,

I tried again.

Here is an excerpt of my MacPorts’ Portfile:
---
configure.args-append   -DOSG_CONFIG_HAS_BEEN_RUN_BEFORE=YES \
                        -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
                        -DOSG_WINDOWING_SYSTEM=Cocoa \
                        -DOSG_USE_QT:BOOL=OFF

# disable unwanted optional dependencies to avoid opportunistic configuration
# before cmake 2.8 this required patching CMakeLists.txt
# TODO: add some of these back either directly or as variants after testing

configure.args-append   -DCMAKE_DISABLE_FIND_PACKAGE_Inventor=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_FBX=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_Xine=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_OpenVRML=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_Performer=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_GTA=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_LibVNCServer=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_OurDCMTK=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_SDL2=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_SDL=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_GtkGl=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_DirectInput=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_NVTT=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_Asio=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_ZeroConf=1 \
                        -DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=1

variant qt4 description "with Qt4 support" {
    configure.args-delete -DOSG_USE_QT:BOOL=OFF
    configure.args-append -DOSG_USE_QT:BOOL=ON -DDESIRED_QT_VERSION=4
}

variant qt5 description "with Qt5 support" {
    configure.args-delete -DOSG_USE_QT:BOOL=OFF
    configure.args-append -DOSG_USE_QT:BOOL=ON -DDESIRED_QT_VERSION=5
}
---






Variant ‘qt5’ works, but variant ‘qt4’ fails to do so:

---
-- Found osgDB: /opt/local/lib/libosgDB.dylib  
-- Found osgGA: /opt/local/lib/libosgGA.dylib  
-- Found osgManipulator: /opt/local/lib/libosgManipulator.dylib  
-- Could NOT find osgQt (missing:  OSGQT_LIBRARY OSGQT_INCLUDE_DIR) 
-- Found osgText: /opt/local/lib/libosgText.dylib  
-- Found osgUtil: /opt/local/lib/libosgUtil.dylib  
-- Found osgViewer: /opt/local/lib/libosgViewer.dylib  
-- Found osgWidget: /opt/local/lib/libosgWidget.dylib  
-- Found osg: /opt/local/lib/libosg.dylib  
-- Found OpenThreads: /opt/local/lib/libOpenThreads.dylib  
CMake Error at /opt/local/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_INCLUDE_DIR
  OSGQT_FOUND) (found suitable version "3.4.0", minimum required is "3.4.0")
Call Stack (most recent call first):
  /opt/local/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /opt/local/share/cmake-3.5/Modules/FindOpenSceneGraph.cmake:234 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:38 (find_package)


-- Configuring incomplete, errors occurred!
---


What am I missing?
Why isn't the libosgQt library built in case of Qt4?

Greets,
Marko




More information about the osg-users mailing list