[osg-users] osgQt include files

Mathieu MARACHE mathieu.marache at gmail.com
Wed Sep 19 02:13:59 PDT 2018


Hi Michael,

Thanks that help understanding the issue. CMake finds the include file
named 'osg/Version' in /usr/local/include but fails to find any library for
the following components 'osgDB', 'osgGA', 'osgUtil',  'osgText',
'osgViewer', 'osgWidget ' and lastly ''osg' not 'OpenThreads' itself.

For example it looks for osgDB for optimized libraries and osgDBd for debug
libraries. Could you verify that your /usr/local/lib folder contains such
libraries ?

I recall that on linux 64bits libraries may be installed in
/usr/local/lib64 and not in /usr/local/lib (without the 64 appended).

If this is the case, you are then left with two options :

Option 1 you are the one building osg and installing it so you can modify
osg's CMake install path for libraries.

You can call CMake to set LIB_POSTFIX to an empty string when configuring
osg on your system
it is set by default to 64 when building on unix 64bits architectures
      SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")

that would mean configuring like this :

$> cmake -DLIB_POSTFIX="" .....

Option 2 if you get osg from a package you need to modify your local copy
of CMake's module to add the lib64 to the PATH_SUFFIXES. On your system
that would be /usr/share/cmake-3.5/Modules/Findosg_functions.cmake . You
need to modify two lines to replace

'PATH_SUFFIXES lib'

by

'PATH_SUFFIXES lib lib64'



HTH
--
nǝıɥʇɐƜ


On Wed, 19 Sep 2018 at 03:54, Michael W. Hall <hallmw at att.net> wrote:

> Hope this is correct.
>
> On Tue, 2018-09-18 at 08:39 +0200, Mathieu MARACHE wrote:
> > Hi Micheal,
> >
> > This is not the output of cmake but the output of cmake determining
> > your compiler capabilities. I should have been more clear last time.
> > Please run:
> >
> > cmake --debug-output --trace-expand -DOpenSceneGraph_DEBUG=On . &>
> > output.log
> >
> > and send back this output.log file that will contain everything cmake
> > has run through
> >
> > As a last note. It is always better to do out of source or below
> > source cmake like this :
> >
> > .../osgQt
> > .../osgQt-build
> >
> > the run cmake from osgQt-build like this :
> >
> > cmake --debug-output --trace-expand -DOpenSceneGraph_DEBUG=On
> > ../osgQt
> > &> output.log
> >
> > or
> >
> > .../osgQt
> > .../osgQt/build
> >
> > and run cmake from osgQt/build like this :
> >
> > cmake --debug-output --trace-expand -DOpenSceneGraph_DEBUG=On .. &>
> > output.log
> >
> > I prefer the later and either way generated files won't lie with
> > original source code
> >
> > Regards,
> > Mathieu
> >
> >
> > On 18/09/2018, Michael W. Hall <hallmw at att.net> wrote:
> > >
> > > Just wondering the if anyone has noticed anything in the log files.
> > >  Still have not had any luck.
> > > Thanks,
> > > Michael
> > > On Sat, 2018-09-15 at 01:22 -0500, Michael W. Hall wrote:
> > > >
> > > > Here is the output you requested.
> > > >
> > > > Thanks,
> > > > Michael
> > > >
> > > > On Fri, 2018-09-14 at 17:18 +0200, Mathieu MARACHE wrote:
> > > > >
> > > > > Hi Michael,
> > > > >
> > > > > I'd like the output of the command :
> > > > >
> > > > > cmake -DOpenSceneGraph_DEBUG=On ./
> > > > >
> > > > > Regards
> > > > > --
> > > > > nǝıɥʇɐƜ
> > > > >
> > > > >
> > > > > On Wed, 12 Sep 2018 at 02:56, Michael W. Hall <hallmw at att.net>
> > > > > wrote:
> > > > > >
> > > > > > I attached the log file.  When I do cmake, I am just doing
> > > > > > cmake
> > > > > > ./  I am not really sure what you are asking for in your
> > > > > > second
> > > > > > question.
> > > > > >
> > > > > > On Mon, 2018-09-10 at 18:12 +0200, Mathieu MARACHE wrote:
> > > > > > >
> > > > > > > Hi Michael,
> > > > > > >
> > > > > > > It's difficult to tell what went wrong, could you try to
> > > > > > > add
> > > > > > > the 'OpenSceneGraph_DEBUG' variable when running cmake ?
> > > > > > > And
> > > > > > > also include the parameters you set to your cmake call for
> > > > > > > osgQt ?
> > > > > > >
> > > > > > > >
> > > > > > > > cmake -DOpenSceneGraph_DEBUG=True ...
> > > > > > > Regards
> > > > > > > --
> > > > > > > nǝıɥʇɐƜ
> > > > > > >
> > > > > > >
> > > > > > > On Sun, 9 Sep 2018 at 08:04, Michael W. Hall <hallmw at att.ne
> > > > > > > t>
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > Got the osgQt from github.  When I try to configure I am
> > > > > > > > getting the following error.
> > > > > > > >
> > > > > > > >  CMake Error at
> > > > > > > >  /usr/share/cmake-
> > > > > > > > 3.5/Modules/FindPackageHandleStandardArgs.cmake:148
> > > > > > > >  (message):
> > > > > > > >    Could NOT find OpenSceneGraph (missing:
> > > > > > > > OPENSCENEGRAPH_LIBRARIES
> > > > > > > >    OSGDB_FOUND OSGGA_FOUND OSGUTIL_FOUND OSGTEXT_FOUND
> > > > > > > > OSGVIEWER_FOUND
> > > > > > > >    OSGWIDGET_FOUND OPENTHREADS_FOUND) (found suitable
> > > > > > > > version
> > > > > > > > "3.7.0", minimum
> > > > > > > >    required is "3.0.0")
> > > > > > > >  Call Stack (most recent call first):
> > > > > > > >    /usr/share/cmake-
> > > > > > > > 3.5/Modules/FindPackageHandleStandardArgs.cmake:388
> > > > > > > >  (_FPHSA_FAILURE_MESSAGE)
> > > > > > > >    /usr/share/cmake-
> > > > > > > > 3.5/Modules/FindOpenSceneGraph.cmake:234
> > > > > > > >  (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> > > > > > > >    CMakeLists.txt:130 (FIND_PACKAGE)
> > > > > > > >
> > > > > > > > I have osg 3.7.0 installed.  Any idea why it is not
> > > > > > > > finding
> > > > > > > > it?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Michael
> > > > > > > >
> > > > > > > > On Sun, 2018-08-12 at 08:09 -0500, Michael W. Hall wrote:
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > On Sun, 2018-08-12 at 08:36 +0300, Konstantin Podsvirov
> > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > Hello Michael!
> > > > > > > > > >
> > > > > > > > > > 0:13, 12 August 2018 г., "Michael W. Hall"
> > > > > > > > > > t>:
> > > > > > > > > > This may have been answered.  I got the latest
> > > > > > > > > > version of
> > > > > > > > > > OpenSceneGraph from github.  It is version 3.7.  I
> > > > > > > > > > built
> > > > > > > > > > and installed.
> > > > > > > > > > When I try to compile my program I am getting the
> > > > > > > > > > following error:
> > > > > > > > > >
> > > > > > > > > > In file included from
> > > > > > > > > > /home/hallmw/Projects/osgMap/applications/osgmap/osgm
> > > > > > > > > > ap.c
> > > > > > > > > > pp:12:0:
> > > > > > > > > > /home/hallmw/Projects/osgMap/include/osgmap/MainWindo
> > > > > > > > > > w:31
> > > > > > > > > > :34: fatal
> > > > > > > > > > error: osgQt/GraphicsWindowQt: No such file or
> > > > > > > > > > directory
> > > > > > > > > >
> > > > > > > > > > I can check that directory and there are no header
> > > > > > > > > > files
> > > > > > > > > > in it.  Any
> > > > > > > > > > idea whey they are missing?
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > > Michael
> > > > > > > > > >
> > > > > > > > > > The osgQt now is a separate project.
> > > > > > > > > > You should build and install osgQt too.
> > > > > > > > > >
> > > > > > > > > > https://github.com/openscenegraph/osgQt
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Regards,
> > > > > > > > > > Konstantin Podsvirov
> > > > > > > > > > _______________________________________________
> > > > > > > > > > osg-users mailing list
> > > > > > > > > > osg-users at lists.openscenegraph.org
> > > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-user
> > > > > > > > > > s-op
> > > > > > > > > > enscenegraph.org
> > > > > > > > > _______________________________________________
> > > > > > > > > osg-users mailing list
> > > > > > > > > osg-users at lists.openscenegraph.org
> > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> > > > > > > > > open
> > > > > > > > > scenegraph.org
> > > > > > > > _______________________________________________
> > > > > > > > osg-users mailing list
> > > > > > > > osg-users at lists.openscenegraph.org
> > > > > > > > http://lists.openscenegraphorg/listinfo.cgi/osg-users-ope
> > > > > > > > nsce
> > > > > > > > negraph.org
> > > > > > > >
> > > > > > > _______________________________________________
> > > > > > > osg-users mailing list
> > > > > > > osg-users at lists.openscenegraph.org
> > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-open
> > > > > > > scen
> > > > > > > egraph.org
> > > > > > _______________________________________________
> > > > > > osg-users mailing list
> > > > > > osg-users at lists.openscenegraph.org
> > > > > > http://lists.openscenegraphorg/listinfo.cgi/osg-users-opensce
> > > > > > negr
> > > > > > aph.org
> > > > > >
> > > > > _______________________________________________
> > > > > osg-users mailing list
> > > > > osg-users at lists.openscenegraph.org
> > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscen
> > > > > egra
> > > > > ph.org
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > osg-users at lists.openscenegraph.org
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensceneg
> > > > raph
> > > > .org
> > _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180919/d6e7b944/attachment.html>


More information about the osg-users mailing list