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

Christian Schulte christian.schulte at onera.fr
Wed Mar 23 00:54:57 PDT 2016


Hi Marko,
sorry, but I'm not familiar at all with the Macport's portfile system, 
so I may not bee of big help for you...
You say that only Qt4 is installed so what do you mean by Qt5 variant 
works ?
The error excerpt you show is after the build process as he is already 
looking for the built libraries, do you have any excerpt of the build 
process of Openscenegraph ?

Christian

Le 23/03/2016 00:27, Marko Käning a écrit :
> 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
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>


-- 
SCHULTE Christian
Ingénieur Recherche
Responsable du Laboratoire de Simulation
ONERA - DCSD/PSEV
Département Commande des Systèmes et Dynamique du Vol
ONERA - Centre de Salon de Provence
BA 701
13661 SALON AIR Cedex - France
Tel :04.90.17.01.45




More information about the osg-users mailing list