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

fatal error: jsapi.h: No such file or directory #393

Open
Trotter73 opened this issue Nov 11, 2021 · 3 comments
Open

fatal error: jsapi.h: No such file or directory #393

Trotter73 opened this issue Nov 11, 2021 · 3 comments

Comments

@Trotter73
Copy link

Hi,

I've been trying to build Oolite 1.90 on Raspberry Pi OS 64Bit, Bullseye but have ran into a problem, I think I have all the dependencies and followed the instructions but cant be 100 sure...

This is my working so far...

git clone https://github.com/OoliteProject/oolite
cd oolite
git submodule update --init

sudo apt-get install GNUstep gnustep-core-devel libopenal-dev libmozjs-78-dev

(The rest of the dependencies, SDL and so on are already there)

export GNUSTEP_MAKEFILES=/usr/lib/GNUstep/Makefiles

(Needed this to get the build to start)

make -f Makefile release

This is the error, I am getting...

In file included from src/Core/Debug/OODebugMonitor.m:39:
src/Core/Debug/OOJSConsole.h:33:10: fatal error: jsapi.h: No such file or directory
33 | #include <jsapi.h>
| ^~~~~~~~~
compilation terminated.
make[4]: *** [/usr/share/GNUstep/Makefiles/rules.make:515: obj.spk/oolite.obj/OODebugMonitor.m.o] Error 1
make[3]: *** [/usr/share/GNUstep/Makefiles/Instance/objc.make:64: internal-objc_program-all_] Error 2
make[2]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: oolite.all.objc-program.variables] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/objc.make:36: internal-all] Error 2
make[1]: Leaving directory '/home/pi/oolite'
make: *** [Makefile:115: release] Error 2

The build is looking for jsapi.h in /home/pi/oolite/deps/Linux-deps/include, if I move the file there the build advances to the next missing file, the missing ones all seem to be located here /home/pi/oolite/deps/mozilla/js/src

Any ideas what is wrong? ....

@anonymissimus
Copy link

Using
git checkout 915c78d -- GNUmakefile
works around the issue for me, as in the following commit (d27428d) appears to be some mistake.

@Trotter73
Copy link
Author

@anonymissimus Thanks for the feedback, I'll give that a go next time I get a moment. Appreciated!

@sparr
Copy link
Contributor

sparr commented May 10, 2023

https://github.com/OoliteProject/oolite#troubleshooting

If you get errors like fatal error: jsapi.h: No such file or directory, you probably forgot to first fetch all the git submodules

Note that the submodule fetch instructions are not just git submodule update --init

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

No branches or pull requests

3 participants