[osg-users] osgQt include files

Michael W. Hall hallmw at att.net
Tue Sep 25 16:08:12 PDT 2018


Well when I try to configure osgQt here is what I am getting:
CMake Error at
 /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
 (message):
   Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
   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 cleared the other packages it was not finding, but still cannot
find the osg library.  The configure is showing that it is looking in
/usr/local/lib64 so not sure why it cannot find the library.  Any help
appreciated.
On Tue, 2018-09-25 at 17:31 +0200, Mathieu MARACHE wrote:
> osgEarth provides it's own set of FindOSG macros that correct the
> vanilla CMake ones...
> --
> nǝıɥʇɐƜ
> 
> 
> On Mon, 24 Sep 2018 at 03:49, Michael W. Hall <hallmw at att.net> wrote:
> > Well I built OSG and did not install from a package.  I made the
> > change in Option two.  I changed the two lines to add lib64.  I
> > also had to add /usr/local to the PATHS section.  That got rid of
> > some of the error.  It now finds all but osg.  Not sure what it
> > up.  I see the libosg library in the /usr/local/lib64 directory. 
> > Still working on it.
> > 
> > Thanks,
> > Michael
> > 
> > On Sat, 2018-09-22 at 00:04 -0500, Michael W. Hall wrote:
> > > My osg libraries are in /usr/local/lib64.  I built osgEarth and
> > > it found the osg libs, but the osgQt does not find the libs.  Not
> > > sure what is up with the osgQt.  I run ccmake to do the configure
> > > and it does not find the libraries.  Has anyone else had this
> > > issue?
> > > 
> > > Thanks,
> > > Michael
> > > 
> > > On Wed, 2018-09-19 at 11:13 +0200, Mathieu MARACHE wrote:
> > > > 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 
> > > > > @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 
> > > > > lmw 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.cg
> > > > > i/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-use
> > > > > rs-opensce
> > > > > > > > > > negr
> > > > > > > > > > aph.org
> > > > > > > > > > 
> > > > > > > > > _______________________________________________
> > > > > > > > > osg-users mailing list
> > > > > > > > > osg-users at lists.openscenegraph.org
> > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-user
> > > > > s-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.openscenegraphorg/listinfo.cgi/osg-users-opensce
> > > > > negraph.org
> > > > > 
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > osg-users at lists.openscenegraph.org
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscen
> > > > egraph.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.openscenegraphorg/listinfo.cgi/osg-users-openscenegrap
> > h.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/20180925/97cabfd5/attachment.html>


More information about the osg-users mailing list