Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSBSim failed to open the configuration file #39

Closed
Gor-Ren opened this issue May 30, 2018 · 2 comments
Closed

JSBSim failed to open the configuration file #39

Gor-Ren opened this issue May 30, 2018 · 2 comments
Labels

Comments

@Gor-Ren
Copy link

Gor-Ren commented May 30, 2018

Hello and thanks for the great project. Unfortunately I am falling at the first hurdle: I cannot run any simulations.

$ JSBSim --aircraft=ball --initfile==reset00

JSBSim Flight Dynamics Model v1.0 May 30 2018 09:53:30
            [JSBSim-ML v2.0]

JSBSim startup beginning ...

Could not open file: Path "aircraft/ball/ball.xml"
  JSBSim failed to open the configuration file: Path "aircraft/ball/ball.xml"
  JSBSim could not be started

I have tried sudo privileges and specifying the root dir:

$ JSBSim --aircraft=ball --initfile==reset00 --root=~/Apps/jsbsim-code/
...
JSBSim failed to open the configuration file: Path "~/Apps/jsbsim-code/aircraft/ball/ball.xml"
...

Despite the fact that the files are clearly there in the specified root:

$ ls ~/Apps/jsbsim-code/aircraft/ball/
ball.xml  INSTALL  reset00_v2.xml  reset00.xml  reset01_v2.xml  reset01.xml

Same story for other aircraft (X15, 737). I am running a fresh install of Ubuntu 18.04. JSBSim was built and installed as per the repo instructions from latest commit b4dd258, with the DINSTALL_PYTHON_MODULE=ON flag. All tests run successfully (which means the simulations run perfectly happy from Python, so I am at a bit of a loss). Many thanks in advance for any help!

@bcoconni
Copy link
Member

bcoconni commented May 30, 2018

@Gor-Ren JSBSim does not expand ~ in paths (although shells usually replace ~ by the content of the environment variable $HOME). So you have to specify the root dir either by a relative path

$ JSBSim --root=../../relative/path/to/JSBSim/root/ --initfile=reset00 --aircraft=ball

or by an absolute path

$ JSBSim --root=/home/username/Apps/jsbsim-code --initfile=reset00 --aircraft=ball

@Gor-Ren
Copy link
Author

Gor-Ren commented May 30, 2018

@bcoconni aha, thank you! It is now working with the absolute path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants