M
M
Mamol272020-07-09 11:56:49
linux
Mamol27, 2020-07-09 11:56:49

How to install osgqtquick?

Hello.
Trying to set up a system to use OSG along with QML.
The most popular option is to install OsgQtQuick https://github.com/podsvirov/osgqtquick
For it you need to install OSG and osgQt https://github.com/openscenegraph/osgQt
OSG assembled and installed without problems, when installing osgQt it gave a message

The build system is configured to install libraries to /usr/local/lib64
Your applications may not be able to find your installed libraries unless you:
    set your LD_LIBRARY_PATH (user specific) or
    update your ld.so configuration (system wide)
You have an ld.so.conf file in /etc, if you wish to ensure 
that applications find the installed osg libraries, system wide, you
could add /usr/local/lib64 to it.

Contributed to ld.so.conf /usr/local/lib64
cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/local/lib64

In the IDE, osgQt finds and connects.
But when I try to build osgqtquick I get the following message
cmake .
-- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found osg: /usr/local/lib/libosg.so  
-- Found osgDB: /usr/local/lib/libosgDB.so  
-- Found osgGA: /usr/local/lib/libosgGA.so  
-- Found osgManipulator: /usr/local/lib/libosgManipulator.so  
-- Found osgUtil: /usr/local/lib/libosgUtil.so  
-- Found osgViewer: /usr/local/lib/libosgViewer.so  
-- Found osgText: /usr/local/lib/libosgText.so  
-- Found OpenThreads: /usr/local/lib/libOpenThreads.so  
-- Found OpenSceneGraph: /usr/local/lib/libosg.so;/usr/local/lib/libosgDB.so;/usr/local/lib/libosgGA.so;/usr/local/lib/libosgManipulator.so;/usr/local/lib/libosgUtil.so;/usr/local/lib/libosgViewer.so;/usr/local/lib/libosgText.so;/usr/local/lib/libOpenThreads.so (found suitable version "3.6.5", minimum required is "3.0") 
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find osgQt (missing: OSGQT_LIBRARY) (Required is at least version
  "3.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindosgQt.cmake:44 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/CMakeLists.txt:22 (find_package)

That is, it does not find osgQt. Can't figure out what I'm doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-07-09
@SaNNy32

Obviously, you need to limit the OSGQT_LIBRARY environment variable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question