Difference between revisions of "JSBSim"

From PaparazziUAV
Jump to: navigation, search
(added osx instrucions)
(simulation category)
Line 1: Line 1:
 +
<categorytree style="float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;" mode=pages>Simulation</categorytree>
 +
__TOC__
 +
 
[http://jsbsim.org Jsbsim]
 
[http://jsbsim.org Jsbsim]
  
Line 31: Line 34:
 
It uses code from the cvs repo, so it should be the most up-to-date source.
 
It uses code from the cvs repo, so it should be the most up-to-date source.
  
[[Category:Software]] [[Category:User_Documentation]]
+
[[Category:Simulation]] [[Category:Software]] [[Category:User_Documentation]]

Revision as of 07:26, 22 January 2013

Jsbsim

Installation

Debian Package

On Debian/Ubuntu you can install the paparazzi-jsbsim package.

sudo apt-get install paparazzi-jsbsim

If you don't have that in your sources, see Installation/Linux#Adding_the_APT_repository

From Source

Compile JSBSIM from source (with specified date to make sure it works and API hasn't changed)

 cvs -z3 -d:pserver:anonymous@jsbsim.cvs.sourceforge.net:/cvsroot/jsbsim co -D "12 Jun 2012" -P JSBSim 
 cd JSBSim
 ./autogen.sh
 ./configure --enable-libraries --enable-shared --prefix=/opt/jsbsim
 make
 sudo make install

If you want to install to a different location, change the prefix to your linking. And you need to add a <makefile> section to your airframe file and add the correct flags to point to the include files and libraries, depending on where it is installed.

With the default installation to /usr/local/, this would look like

 <makefile location="after">
   jsbsim.CFLAGS += -I/usr/local/include/JSBSim
   jsbsim.LDFLAGS += -L/usr/local/lib
 </makefile>

On OSX

  • Install the JSBSim libraries onto your system. This should already be installed with paparazzi-tools, but if it isn't:
 $ sudo port install jsbsim

It uses code from the cvs repo, so it should be the most up-to-date source.