during Flightgear compilation if you have this error:
Scanning dependencies of target fgjs
[ 2%] Building CXX object src/Input/CMakeFiles/fgjs.dir/fgjs.cxx.o
[ 2%] Building CXX object src/Input/CMakeFiles/fgjs.dir/jsinput.cxx.o
[ 2%] Building CXX object src/Input/CMakeFiles/fgjs.dir/jssuper.cxx.o
make[2]: *** No rules to build « /usr/local/lib/x86_64-linux-gnu/libSimGearCore.so », needed for « src/Input/fgjs ». stopping.
make[1]: *** [src/Input/CMakeFiles/fgjs.dir/all] error 2
you will need to install libexpat librairy (usually libexpat1-dev)
and too compile Simgear with the "SYSTEM_EXPAT" option to "ON"
after this just recompile FlightGear with cmake -DSIMGEAR_SHARED=1 and you will not have errors.
for guys who use cmake GUI(graphical interface users) there is not SIMGEAR_SHARED option you will need to patch the FlightGear CMakeLists.txt file with this:
--- 2.txt 2012-10-01 05:51:16.000000000 +0200
+++ 1.txt 2012-10-01 16:55:59.000000000 +0200
@@ -95,6 +95,7 @@
endif()
# FlightGear build options
+option(SIMGEAR_SHARED "Set to ON if Simgear is under shared library form" OFF)
option(LOGGING "Set to ON to build FlightGear with logging support (default)" ON)
option(SP_FDMS "Set to ON to build FlightGear with special-purpose FDMs" OFF)
option(ENABLE_UIUC_MODEL "Set to ON to build FlightGear with UIUCModel FDM" OFF)
a patch file available here: http://code.google.com/p/flightgear-bug ... ail?id=893
don't forget to add "/usr/local/lib/x86_64-linux-gnu" path to /etc/ld.so.conf file.
all should work after this
PS:if you have not libexpat-dev in your repository you can download it here: http://expat.sourceforge.net/
edit: problem fixed: http://code.google.com/p/flightgear-bug ... ail?id=893