Auterion / px4-jsbsim-bridge

JSBSim bridge for PX4 SITL/HITL simulations
BSD 3-Clause "New" or "Revised" License
24 stars 39 forks source link

Error compiling PX4 sitl with JSBsim #63

Closed nicobatta closed 1 year ago

nicobatta commented 1 year ago

Hi,

I’m compiling PX4 (v 1.12.3) for sitl with JSBsim on macOS 13.0.1 but I got the following error:

fatal error: variable ‘stat_thread’ set but not used [-Wunused-but-set-variable]

at step 343/815; I attach the complete terminal output to help in the solution of the issue.

PX4-SITL-error.pdf

Looking on the internet its seems a problem like this; this and this issues of other projects suggest that the solution is to suppress the warning; however, I don't know where I have to modify the code.

I opened a question on PX4 forum but still no solution. Can anyone help me?

My setup is:

px4 1.12.3 macOS 13.0.1 cmake 3.25.0 python 3.9.6 C and CXX compiler AppleClang 14.0.0.14000029 JSBsim 1.1.12

Many thanks

Nicolò

nicobatta commented 1 year ago

I removed the -Werror flag in the cmake folder as suggested in the PX4 forum and now it compiles.