osgEarth provides it's own set of FindOSG macros that correct the vanilla
CMake ones...
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
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
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).
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")
$> 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ÇıɥÊÉÆ
Hope this is correct.
Post by Mathieu MARACHEHi 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.
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
.../osgQt
.../osgQt-build
cmake --debug-output --trace-expand -DOpenSceneGraph_DEBUG=On ../osgQt
&> output.log
or
.../osgQt
.../osgQt/build
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
Post by Michael W. HallJust wondering the if anyone has noticed anything in the log files.
Still have not had any luck.
Thanks,
Michael
Post by Michael W. HallHere is the output you requested.
Thanks,
Michael
Post by Mathieu MARACHEHi Michael,
cmake -DOpenSceneGraph_DEBUG=On ./
Regards
--
nÇıɥÊÉÆ
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.
Post by Mathieu MARACHEHi 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ÇıɥÊÉÆ
t>
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
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")
/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
Post by Michael W. HallThanks,
On Sun, 2018-08-12 at 08:36 +0300, Konstantin Podsvirov
Hello Michael!
0:13, 12 August 2018 г., "Michael W. Hall"
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
In file included from
/home/hallmw/Projects/osgMap/applications/osgmap/osgm
ap.c
/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
http://lists.openscenegraph.org/listinfo.cgi/osg-user
s-op
enscenegraph.org <http://enscenegraphorg>
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-
open
scenegraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraphorg/listinfo.cgi/osg-users-ope
nsce
negraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-open
scen
egraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraphorg/listinfo.cgi/osg-users-opensce
<http://lists.openscenegraphorg/listinfocgi/osg-users-opensce>
Post by Mathieu MARACHEPost by Michael W. HallPost by Michael W. HallPost by Mathieu MARACHEnegr
aph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscen
egra
ph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensceneg
raph
.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraphorg/listinfo.cgi/osg-users-openscenegraph.org
<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org>
_______________________________________________
_______________________________________________
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org