[osg-users] Up to date tutorials for linux

Rodrigo Dias rodrigo1406 at gmail.com
Thu Mar 2 05:47:50 PST 2017


Hi Robert,

> Building under linux/unix is explained in the OpenSceneGraph/README 

Right. But you also has a link at Documentation | Platform Specific | Linux. I thought everything platform specific would be there, but it wasn't, so I went to other sources (before remembering the README), and did the apt-get install, which scrambled my installation. Maybe you could add that part to that menu?

> Linux is most straight forward of all platforms to build upon

It is, but not necessarily for us who have always used Windows, and only now are learning Linux.

So what I did was to install OSG in a fresh Debian install in VirtualBox (at least to learn how it's done -- should have done that before). I've had a few problems:

1. As I told above, the Linux Platform Specifics menu could include the cmake commands from the README.
2. I needed to do make install_ld_conf after cmake . and before make. This could be in the manual as well, because I wasn't sure if it was the moment to do it. Luckily, it was.
3. After I built everything, I came to "Running the examples", and only then I've been told to use -DBUILD_OSG_EXAMPLES=1 with cmake. I tried running cmake again, and got the following results:


Code:
rods at debianVB:~/Downloads/OSG-3.4.0$ cmake . -DBUILD_OSG_EXAMPLES=1
-- checking for module 'gta'
--   package 'gta' not found
-- Could NOT find GStreamer (missing:  GSTREAMER_INCLUDE_DIRS GSTREAMER_LIBRARIES GSTREAMER_VERSION GSTREAMER_BASE_INCLUDE_DIRS GSTREAMER_BASE_LIBRARIES GSTREAMER_APP_INCLUDE_DIRS GSTREAMER_APP_LIBRARIES GSTREAMER_PBUTILS_INCLUDE_DIRS GSTREAMER_PBUTILS_LIBRARIES) 
-- Could NOT find SDL2 (missing:  SDL2_LIBRARY SDL2_INCLUDE_DIR) 
-- Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR) 
-- checking for module 'gtk+-2.0'
--   package 'gtk+-2.0' not found
-- checking for module 'gtkglext-x11-1.0'
--   package 'gtkglext-x11-1.0' not found
-- Could NOT find FLTK (missing:  FLTK_LIBRARIES FLTK_FLUID_EXECUTABLE) 
-- Found GLUT: /usr/lib/i386-linux-gnu/libglut.so  
-- Could NOT find wxWidgets (missing:  wxWidgets_FOUND) 
-- checking for module 'xrandr'
--   package 'xrandr' not found
CMake Error at /usr/share/cmake-3.0/Modules/Qt4Macros.cmake:138 (file):
  file Internal CMake error when trying to open file:
  /home/rods/Downloads/OSG-3.4.0/src/osgQt/__/__/include/osgQt/moc_QGraphicsViewAdapter.cxx_parameters
  for writing.
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/Qt4Macros.cmake:177 (QT4_CREATE_MOC_COMMAND)
  src/osgQt/CMakeLists.txt:20 (QT4_WRAP_CPP)

-- Configuring incomplete, errors occurred!
See also "/home/rods/Downloads/OSG-3.4.0/CMakeFiles/CMakeOutput.log".
See also "/home/rods/Downloads/OSG-3.4.0/CMakeFiles/CMakeError.log".
CMake Error: Unable to open check cache file for write. /home/rods/Downloads/OSG-3.4.0/CMakeFiles/cmake.check_cache




I don't know if it's only here, or only in Debian, but probably some other advices could be included in the installation guide to avoid all this.

Other thing, the lines below are wrong. You cannot have a space between the variable name, the equal sign and the variable value.

export PATH = ${PATH}:/home/myaccount/OpenSceneGraph/bin
export LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}:/home/myaccount/OpenSceneGraph/lib
export OSG_FILE_PATH = /home/myaccount/OpenSceneGraph-Data:/home/myaccount/OpenSceneGraph-Data/Images

They should be

export PATH=${PATH}:/home/myaccount/OpenSceneGraph/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myaccount/OpenSceneGraph/lib
export OSG_FILE_PATH=/home/myaccount/OpenSceneGraph-Data:/home/myaccount/OpenSceneGraph-Data/Images

Still another thing, the menu Documentation | Tutorials show only one tutorial "Analysing a Scenegraph". I think that 20 tutorials 8-years-old are not so bad to be thrown away like that, are they?


Thank you!

Cheers,
Rodrigo

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








More information about the osg-users mailing list