827
edits
m (→Installing OpenSceneGraph and FlightGear with --prefix: Improved settings to cmake.) |
|||
| 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 | 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 | 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 | ||
edits