-
Notifications
You must be signed in to change notification settings - Fork 59
Compiling
sudo apt-get install build-essential libopenscenegraph-dev libqt4-dev libboost-dev
mkdir -P ~/home/Projects && cd ~/home/Projects
git clone git://github.com/jgoppert/jsbsim.git
cd jsbsim
mkdir -P build-linux
cd build-linux && cmake ..
This step will create a binary debian package that you can install on your system. cd ~/src/Projects/jsbsim/build-linux && cpack
##Cross-compiling for windows:
This will take around 10 hours to complete so do it overnight. mkdir -P ~/home/Projects && cd ~/home/Projects http://mingw-cross-env.nongnu.org/ hg clone http://hg.savannah.nongnu.org/hgweb/mingw-cross-env cd mingw-cross-env && make install
Some libraries may fail to link correctly. To prevent this rerun ranlib over all the static libraries. #!/bin/bash for file in $(find ./usr/i686-pc-mingw32/lib -regex ".+.a") do echo fixing $file ./user/bin/i686-pc-ming32-ranlib $file done
In the file /.profile you should create an alias for cmake-mingw
alias cmake-mingw=cmake -DCMAKE_TOOLCHAIN_FILE=/home/Projects/mingw-cross-env/usr/i686-pc-mingw32/share/cmake/mingw-cross-env-conf.cmake
mkdir -P ~/home/Projects && cd ~/home/Projects
git clone git://github.com/jgoppert/jsbsim.git
cd jsbsim
mkdir -P build-mingw
cd build && cmake ..
This step will create a nullsoft installer that you can use to install jsbsim on your system. cd ~/src/Projects/jsbsim/build-mingw && cpack