|
|
| Line 67: |
Line 67: |
| Do not forget to run autogen.sh when updating sources. | | Do not forget to run autogen.sh when updating sources. |
|
| |
|
| === Installing FlightGear and OSG with --prefix workaround === | | === Installing FlightGear and OSG with --prefix === |
|
| |
|
| 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: |
| (description for Linux):
| |
|
| |
|
| '''NOTE:''' It should be possible to do
| | OpenSceneGraph uses cmake so it should be possible to do |
| gmake INST_LOCATION=<prefix> install
| |
| instead for each of the OSG components. It ought to be a better method.
| |
|
| |
|
| 1. Build OpenScenGraph. I do it directly in the OSG source directory without installing anything (when the next version comes I can just delete the old directory without any worries). Adjust as needed:
| | cmake -D CMAKE_INSTALL_PREFIX:PATH="$(MY_PREFIX)" |
| export OSG_BASE=$HOME/FlightGear/build/OpenSceneGraph/OSG_OP_OT-1.2-Flightgear
| |
| export OPENTHREADS_INC_DIR=$OSG_BASE/OpenThreads/include
| |
| export OPENTHREADS_LIB_DIR=$OSG_BASE/OpenThreads/lib/Linux32
| |
| export PRODUCER_INC_DIR=$OSG_BASE/Producer/include
| |
| export PRODUCER_LIB_DIR=$OSG_BASE/Producer/lib/Linux32
| |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPENTHREADS_LIB_DIR:$PRODUCER_LIB_DIR
| |
|
| |
|
| cd OpenThreads; make
| | or possibly to avoid needing to set LD_LIBRARY_PATH |
| cd ../Producer; make
| |
| cd ../OpenScenGraph; make
| |
|
| |
|
| | cmake -D CMAKE_INSTALL_PREFIX:PATH="$(MY_PREFIX)" -D CMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOLEAN="true" |
|
| |
|
| 2. Copy or (soft)link OpenThreads/include/OpenThreads into your $PREFIX/include/ directory.
| | Configure and build SimGear and FlightGear with --prefix as usual. |
| | |
| 3. Copy or (soft)link Producer/include/Producer into your $PREFIX/include/ directory.
| |
| | |
| 4. Copy or (soft)link OpenSceneGraph/include/osg* into your $PREFIX/include/ directory.
| |
| | |
| 5. Copy or (soft)link OpenThreads/lib/<system>/lib*.so into your $PREFIX/lib/ directory.
| |
| | |
| 6. Copy or (soft)link Producer/lib/<system>/lib*.so into your $PREFIX/lib/ directory.
| |
| | |
| 7. Copy or (soft)link OpenSceneGraph/lib/<system>/lib*.so into your $PREFIX/lib/ directory.
| |
| | |
| 8. Add $PREFIX/lib to LD_LIBRARY_PATH.
| |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib
| |
| | |
| 9. Configure and build SimGear and FlightGear with --prefix as usual.
| |
|
| |
|
| No need to install any quickly changing software globally. | | No need to install any quickly changing software globally. |