Paparazzi - JSBSim

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Paparazzi - JSBSim

Xavier Claude
Hi all,

I would like to do a NPS simulation with JSBSim as FDM. For some reasons, I dont want to use the paparazzi-jsbsim package. I precisely followed the steps 
 cvs -z3 -d:pserver:[hidden email]:/cvsroot/jsbsim co -D "23 Feb 2015" -P JSBSim 
 cd JSBSim
 ./autogen.sh
 ./configure --enable-libraries --enable-shared --prefix=/opt/jsbsim
 make
 sudo make install

Then I added, the following lines to bixler_lisa_m_2.xml file (I wanted to try that one):
<makefile location="after"> nps.CFLAGS += -I/usr/local/include/JSBSim nps.LDFLAGS += -L/usr/local/lib </makefile>

In the Paparazzi Center, I build the target without problem, but when I try to execute, I systematically get the following error:

/home/xavier/paparazzi/var/aircrafts/Bixler/nps/simsitl: error while loading shared libraries: libJSBSim.so.0: cannot open shared object file: No such file or directory

Could someone help me about it? For people who are not using paparazzi-jsbsim package, how did you make it work exactly? An example of nps simulation configuration without using paparazzi-jsbsim package would be perfect. (makefile in airframe, paths to includes/libs,...)
Thank you!

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: Paparazzi - JSBSim

Gautier Hattenberger-3

Hello,

You have installed the jsbsim library in the directory /opt/jsbsim (see prefix option), but you are passing compilation flag to link other /usr/local/lib.

You should try change CFLAGS and LDFLAGS for the correct path.

Gautier

Le 01/07/2019 à 02:12, Xavier Claude a écrit :
Hi all,

I would like to do a NPS simulation with JSBSim as FDM. For some reasons, I dont want to use the paparazzi-jsbsim package. I precisely followed the steps 
 cvs -z3 -d:pserver:[hidden email]:/cvsroot/jsbsim co -D "23 Feb 2015" -P JSBSim 
 cd JSBSim
 ./autogen.sh
 ./configure --enable-libraries --enable-shared --prefix=/opt/jsbsim
 make
 sudo make install

Then I added, the following lines to bixler_lisa_m_2.xml file (I wanted to try that one):
 <makefile location="after">
   nps.CFLAGS += -I/usr/local/include/JSBSim
   nps.LDFLAGS += -L/usr/local/lib
 </makefile>

In the Paparazzi Center, I build the target without problem, but when I try to execute, I systematically get the following error:

/home/xavier/paparazzi/var/aircrafts/Bixler/nps/simsitl: error while loading shared libraries: libJSBSim.so.0: cannot open shared object file: No such file or directory

Could someone help me about it? For people who are not using paparazzi-jsbsim package, how did you make it work exactly? An example of nps simulation configuration without using paparazzi-jsbsim package would be perfect. (makefile in airframe, paths to includes/libs,...)
Thank you!

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: Paparazzi - JSBSim

Xavier Claude
Hello Gautier,

It seems that the program had some issues recognizing/accessing the path defined by flags, maybe because of permissions (I dont know). Instead I decided to install jsbsim (sudo make install) in the default location used by paparazzi-jsbsim (using --prefix=/usr). paparazzi-jsbsim package was of course removed beforehand. This seems to work well without the need of flags. => Problem solved!

Thank you for your help!

Xavier



On Mon, Jul 1, 2019 at 9:56 AM Gautier Hattenberger <[hidden email]> wrote:

Hello,

You have installed the jsbsim library in the directory /opt/jsbsim (see prefix option), but you are passing compilation flag to link other /usr/local/lib.

You should try change CFLAGS and LDFLAGS for the correct path.

Gautier

Le 01/07/2019 à 02:12, Xavier Claude a écrit :
Hi all,

I would like to do a NPS simulation with JSBSim as FDM. For some reasons, I dont want to use the paparazzi-jsbsim package. I precisely followed the steps 
 cvs -z3 -d:pserver:[hidden email]:/cvsroot/jsbsim co -D "23 Feb 2015" -P JSBSim 
 cd JSBSim
 ./autogen.sh
 ./configure --enable-libraries --enable-shared --prefix=/opt/jsbsim
 make
 sudo make install

Then I added, the following lines to bixler_lisa_m_2.xml file (I wanted to try that one):
 <makefile location="after">
   nps.CFLAGS += -I/usr/local/include/JSBSim
   nps.LDFLAGS += -L/usr/local/lib
 </makefile>

In the Paparazzi Center, I build the target without problem, but when I try to execute, I systematically get the following error:

/home/xavier/paparazzi/var/aircrafts/Bixler/nps/simsitl: error while loading shared libraries: libJSBSim.so.0: cannot open shared object file: No such file or directory

Could someone help me about it? For people who are not using paparazzi-jsbsim package, how did you make it work exactly? An example of nps simulation configuration without using paparazzi-jsbsim package would be perfect. (makefile in airframe, paths to includes/libs,...)
Thank you!

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel