OpenSceneGraph: Difference between revisions

Jump to navigation Jump to search
m
Line 71: Line 71:
If you use --prefix to choose were to install FlightGear and do not want to install OSG globally on the system this can be done with the following method:
If you use --prefix to choose were to install FlightGear and do not want to install OSG globally on the system this can be done with the following method:


OpenSceneGraph uses cmake so it should be possible to do
OpenSceneGraph uses cmake so to build it do


   mkdir build.osg
   mkdir build.osg
   cd build.osg
   cd build.osg
   cmake -D CMAKE_BUILD_TYPE="Release" -D CMAKE_INSTALL_PREFIX:PATH="$(MY_PREFIX)" ../path/to/osg/source
   cmake -D CMAKE_BUILD_TYPE="Release" -D CMAKE_CXX_FLAGS="-O3" -D CMAKE_C_FLAGS="-O3" \
        -D CMAKE_INSTALL_PREFIX:PATH="$(MY_PREFIX)" ../path/to/osg/source
   make
   make
   make install
   make install


or possibly to avoid needing to set LD_LIBRARY_PATH
or if you want to avoid needing to set LD_LIBRARY_PATH


   mkdir build.osg
   mkdir build.osg
   cd build.osg
   cd build.osg
   cmake -D CMAKE_BUILD_TYPE="Release" -D CMAKE_INSTALL_PREFIX:PATH="$(MY_PREFIX)" -D CMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOLEAN="true" ../path/to/osg/source
   cmake -D CMAKE_BUILD_TYPE="Release" -D CMAKE_CXX_FLAGS="-O3" -D CMAKE_C_FLAGS="-O3" \
        -D CMAKE_INSTALL_PREFIX:PATH="$(MY_PREFIX)" -D CMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOLEAN="true" ../path/to/osg/source
   make
   make
   make install
   make install
827

edits

Navigation menu