OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

[SOLVED] Building Virtual Planet Builder in Linux


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb]
View previous topic :: View next topic  
Author Message
Nav
User


Joined: 09 Apr 2012
Posts: 40

PostPosted: Tue Sep 11, 2012 9:21 am    Post subject:
[SOLVED] Building Virtual Planet Builder in Linux
Reply with quote

I saw that installing OSG on Linux would be easy, so gave it a shot on RHEL6.x.
OSG built without any problems, and I set the paths mentioned in this page.

But when I created a git clone of virtualplanetbuilder and typed the ./configure of VPB, it gave me this error:
Code:
[root@static-104 vpb]# ./configure
-- Could NOT find osgDB (missing:  OSGDB_LIBRARY OSGDB_INCLUDE_DIR)
-- Could NOT find osgFX (missing:  OSGFX_LIBRARY OSGFX_INCLUDE_DIR)
-- Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
-- Could NOT find osgSim (missing:  OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR)
-- Could NOT find osgTerrain (missing:  OSGTERRAIN_LIBRARY OSGTERRAIN_INCLUDE_DIR)
-- Could NOT find osgViewer (missing:  OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
-- Could NOT find osgGA (missing:  OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
-- Could NOT find osgText (missing:  OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
-- Could NOT find osg (missing:  OSG_LIBRARY OSG_INCLUDE_DIR)
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
CMake Error at /usr/local/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:226 (message):
  ERROR: Missing the following osg libraries: osgDB osgFX osgUtil osgSim
  osgTerrain osgViewer osgGA osgText osg OpenThreads.

  Consider using CMAKE_PREFIX_PATH or the OSG_DIR environment variable.  See
  the /usr/local/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake for more
  details.
Call Stack (most recent call first):
  CMakeLists.txt:174 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!


My main question is what can I do to solve this kind of error. I looked at the CMake lists but that does not seem to be the problem.

Additional info:
Although osg had built without any problems, I'm not able to render anything with the viewer.
Code:
[root@static-104 osg]# export PATH={$PATH}:/home/nav/osg/osg/bin
[root@static-104 osg]# export OSG_FILE_PATH=/home/nav/osg/osgdata
[root@static-104 osg]# osgviewer cow.osg
Warning: Could not find plugin to read objects from file "cow.osg".
osgviewer: No data loaded

Did I miss something?


Last edited by Nav on Wed Sep 12, 2012 8:45 am; edited 1 time in total
Back to top
View user's profile Send private message
tassilo.glander
User


Joined: 16 Aug 2010
Posts: 27

PostPosted: Tue Sep 11, 2012 9:33 am    Post subject:
Building Virtual Planet Builder in Linux
Reply with quote

Hi Nav,

sounds like the libraries are not found at the usual places, both for the plugins (that is why the cow is not loading) and for the configuration of VPB. Did you do the "sudo make install"?
Also sometimes I had to do "ldconfig" when I installed new libraries for the first time.

I am not too familiar with linux, these are just ideas until the experts join :)

Thank you!

Cheers,
Tassilo
Back to top
View user's profile Send private message
Jordi Torres
Guest





PostPosted: Tue Sep 11, 2012 9:35 am    Post subject:
Building Virtual Planet Builder in Linux
Reply with quote

Hi Nav,



2012/9/11 Nav Joseph < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
I saw that installing OSG on Linux would be easy, so gave it a shot on RHEL6.x.
OSG built without any problems, and I set the paths mentioned in this page (http://www.openscenegraph.org/projects/osg/wiki/Support/GettingStarted).

But when I created a git clone of virtualplanetbuilder and typed the ./configure of VPB, it gave me this error:

Code:
[root@static-104 vpb]# ./configure
-- Could NOT find osgDB (missing:  OSGDB_LIBRARY OSGDB_INCLUDE_DIR)
-- Could NOT find osgFX (missing:  OSGFX_LIBRARY OSGFX_INCLUDE_DIR)
-- Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
-- Could NOT find osgSim (missing:  OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR)
-- Could NOT find osgTerrain (missing:  OSGTERRAIN_LIBRARY OSGTERRAIN_INCLUDE_DIR)
-- Could NOT find osgViewer (missing:  OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
-- Could NOT find osgGA (missing:  OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
-- Could NOT find osgText (missing:  OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
-- Could NOT find osg (missing:  OSG_LIBRARY OSG_INCLUDE_DIR)
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
CMake Error at /usr/local/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:226 (message):
  ERROR: Missing the following osg libraries: osgDB osgFX osgUtil osgSim
  osgTerrain osgViewer osgGA osgText osg OpenThreads.

  Consider using CMAKE_PREFIX_PATH or the OSG_DIR environment variable.  See
  the /usr/local/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake for more
  details.
Call Stack (most recent call first):
  CMakeLists.txt:174 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!



Use the environment variable OSG_DIR before configuring (export OSG_DIR=/path_to_osg_install_dir/). If you have compiled and installed osg without problems you should have the subfolders include/ lib/ share/ bin/ in your installation folder. 

 
Quote:


My main question is what can I do to solve this kind of error. I looked at the CMake lists but that does not seem to be the problem.

Additional info:
Although osg had built without any problems, I'm not able to render anything with the viewer.

Code:
[root@static-104 osg]# export PATH={$PATH}:/home/nav/osg/osg/bin
[root@static-104 osg]# export OSG_FILE_PATH=/home/nav/osg/osgdata
[root@static-104 osg]# osgviewer cow.osg
Warning: Could not find plugin to read objects from file "cow.osg".
osgviewer: No data loaded


In linux you must export LD_LIBRARY_PATH to the osg/lib/ dir to make visible this dynamic libraries to the osgviewer application. Search the archives for similar topics (Could not find plugin to read objetcs ....).

Cheers.
 
Quote:

Did I miss something?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49915#49915





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es

------------------
Post generated by Mail2Forum
Back to top
Jordi Torres
Guest





PostPosted: Tue Sep 11, 2012 9:38 am    Post subject:
Building Virtual Planet Builder in Linux
Reply with quote

2012/9/11 Jordi Torres < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
Hi Nav,



2012/9/11 Nav Joseph < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
I saw that installing OSG on Linux would be easy, so gave it a shot on RHEL6.x.
OSG built without any problems, and I set the paths mentioned in this page (http://www.openscenegraph.org/projects/osg/wiki/Support/GettingStarted).

But when I created a git clone of virtualplanetbuilder and typed the ./configure of VPB, it gave me this error:

Code:
[root@static-104 vpb]# ./configure
-- Could NOT find osgDB (missing:  OSGDB_LIBRARY OSGDB_INCLUDE_DIR)
-- Could NOT find osgFX (missing:  OSGFX_LIBRARY OSGFX_INCLUDE_DIR)
-- Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
-- Could NOT find osgSim (missing:  OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR)
-- Could NOT find osgTerrain (missing:  OSGTERRAIN_LIBRARY OSGTERRAIN_INCLUDE_DIR)
-- Could NOT find osgViewer (missing:  OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
-- Could NOT find osgGA (missing:  OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
-- Could NOT find osgText (missing:  OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
-- Could NOT find osg (missing:  OSG_LIBRARY OSG_INCLUDE_DIR)
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
CMake Error at /usr/local/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:226 (message):
  ERROR: Missing the following osg libraries: osgDB osgFX osgUtil osgSim
  osgTerrain osgViewer osgGA osgText osg OpenThreads.

  Consider using CMAKE_PREFIX_PATH or the OSG_DIR environment variable.  See
  the /usr/local/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake for more
  details.
Call Stack (most recent call first):
  CMakeLists.txt:174 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!





Use the environment variable OSG_DIR before configuring (export OSG_DIR=/path_to_osg_install_dir/). If you have compiled and installed osg without problems you should have the subfolders include/ lib/ share/ bin/ in your installation folder. 

 
Quote:


My main question is what can I do to solve this kind of error. I looked at the CMake lists but that does not seem to be the problem.

Additional info:
Although osg had built without any problems, I'm not able to render anything with the viewer.

Code:
[root@static-104 osg]# export PATH={$PATH}:/home/nav/osg/osg/bin
[root@static-104 osg]# export OSG_FILE_PATH=/home/nav/osg/osgdata
[root@static-104 osg]# osgviewer cow.osg
Warning: Could not find plugin to read objects from file "cow.osg".
osgviewer: No data loaded



In linux you must export LD_LIBRARY_PATH to the osg/lib/ dir to make visible this dynamic libraries to the osgviewer application. Search the archives for similar topics (Could not find plugin to read objetcs ....).
 




Missed to say this is in case you are installing OSG in a custom directory.
 
Quote:
Cheers.
 
Quote:

Did I miss something?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49915#49915





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es



--
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es

------------------
Post generated by Mail2Forum
Back to top
Nav
User


Joined: 09 Apr 2012
Posts: 40

PostPosted: Tue Sep 11, 2012 10:41 am    Post subject:
Reply with quote

Thanks Jordi;
I have 'lib', 'bin' and 'include' in my osg folder, but no 'share' directory.
Viewer is working now! Smile
I had to type
Code:
./osgviewer "cow.osg"


I was getting an error of a cannot open display and the viewer not being able to create a window, but that was because I was the root user. Running viewer as an ordinary user made it work.

Framerate is surprisingly low, at just 6.1fps.

VPB found all the plugins it was earlier unable to find (except gdal, which I'll be installing now). Thanks so much! Smile
Back to top
View user's profile Send private message
Jordi Torres
Guest





PostPosted: Tue Sep 11, 2012 10:45 am    Post subject:
Building Virtual Planet Builder in Linux
Reply with quote

2012/9/11 Nav Joseph < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
Thanks Jordi;
I have 'lib', 'bin' and 'include' in my osg folder, but no 'share' directory.

Yes, the 'share' directory appears when you compile and install the osg examples.
 
Quote:
Viewer is working now! Smile
I had to type

Code:
./osgviewer "cow.osg"
 


I was getting an error of a cannot open display and the viewer not being able to create a window, but that was because I was the root user. Running viewer as an ordinary user made it work.

Framerate is surprisingly low, at just 6.1fps.

Maybe you didn't install your graphic card drivers OK. Check if you have direct rendering  and your drivers are ok with the command glxinfo.
 
Quote:

VPB found all the plugins it was earlier unable to find (except gdal, which I'll be installing now). Thanks so much! Smile



You might need to recompile osg with Gdal library.

Cheers.
 
Quote:
------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=49920#49920





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





--
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es

------------------
Post generated by Mail2Forum
Back to top
Nav
User


Joined: 09 Apr 2012
Posts: 40

PostPosted: Wed Sep 12, 2012 6:16 am    Post subject:
Reply with quote

@Jordi: Thanks for the timely reply. It helped me get things done fast. I see why a mailing list is beneficial.
Checked with glxinfo, and I do have direct rendering. Don't know what info indicates that my drivers are ok though. But I guess that doesn't matter because I haven't installed the linux drivers for the graphics card. The driver software tells me that I need to remove Nouveau first. Will be doing that soon.

How to compile osg with gdal? I had a look at the CMake files, but there didn't seem to be any option for gdal. Do I have to run cmake with a command like
Code:
cmake ../osg -DGDAL_INCLUDE_DIR=../gdal/include
make
make install

How do I find out whether GDAL_INCLUDE_DIR is the correct macro to use or not? I'm guessing from what I remember from the Windows CMake GUI.
Back to top
View user's profile Send private message
Jordi Torres
Guest





PostPosted: Wed Sep 12, 2012 7:00 am    Post subject:
Building Virtual Planet Builder in Linux
Reply with quote

Hi Nav,

If you have installed gdal in your system, probably it will be autodetected. If you use a custom directory you will need to pass this information to cmake. There exists two ways:

Use ccmake (you need to install cmake-curses package) .. instead of cmake .. and search for the entry 

GDAL_INCLUDE_DIR                 /usr/include/gdal        (these are my autodetected values)                   
GDAL_LIBRARY                     /usr/lib/libgdal1.7.0.so     (these are my autodetected values)               

you can make use of cmake-gui if you feel more comfortable (you need to install cmake-qt-gui package)

Use the paremeters as you said

cmake ../osg -DGDAL_INCLUDE_DIR=/pathtogdalincludedir  -DGDAL_LIBRARY=/pathtolib

Cheers 2012/9/12 Nav Joseph < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
@Jordi: Thanks for the timely reply. It helped me get things done fast. I see why a mailing list is beneficial.
Checked with glxinfo, and I do have direct rendering. Don't know what info indicates that my drivers are ok though. But I guess that doesn't matter because I haven't installed the linux drivers for the graphics card. The driver software tells me that I need to remove Nouveau first. Will be doing that soon.

How to compile osg with gdal? I had a look at the CMake files, but there didn't seem to be any option for gdal. Do I have to run cmake with a command like

Code:
cmake ../osg -DGDAL_INCLUDE_DIR=../gdal/include
make
make install


How do I find out whether GDAL_INCLUDE_DIR is the correct macro to use or not? I'm guessing from what I remember from the Windows CMake GUI.

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=49965#49965





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





--
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es

------------------
Post generated by Mail2Forum
Back to top
Nav
User


Joined: 09 Apr 2012
Posts: 40

PostPosted: Thu Sep 13, 2012 3:20 am    Post subject:
Reply with quote

Tried the GDAL macros and osg built successfully. VPB didn't; and it appeared to be because of the osg paths I had set wrongly in bash_profile.
Anyway, I was under a time-crunch, so just rebuilt osg without gdal for the time-being.
Thank you very much for helping out. Hope this thread will be helpful for someone else in future.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Building on macOS 10.14 Ulrich Hertlein General 1 Sun Nov 11, 2018 12:45 pm View latest post
No new posts Virtual Planet Builder: increase reso... moet General 0 Wed Oct 17, 2018 11:34 pm View latest post
No new posts building the fbx plugin Tare Plugins [osgPlugins] 2 Wed Oct 10, 2018 3:04 pm View latest post
No new posts Cross-platform examples for Linux, ma... kornerr Announcement [ANN] 6 Tue Aug 14, 2018 10:51 am View latest post
No new posts Missing OpenThreads PDB when building... guyv Build system [build] 0 Thu Jul 12, 2018 12:39 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP