I'm trying to build Oolite from source on macOS Catalina, in Xcode 11.4. I cloned the git repository, and following the instructions in readme.md I would only have to open the .Xcode project, and hit the run button to compile. What happens is that I get an error messages stating, correctly, that "Build input file cannot be found: '/Users/maik/Projects/oolite/oolite/deps/mozilla/nsprpub/pr/src/md/unix/uxproces.c' and so on. The directory ~/Projects/oolite/oolite/deps/mozilla/ does not contain anything indeed.
Am I missing some step?
Thank you, kind regards,
-Maik
Build fails, nsprpub is missing
Moderators: winston, another_commander
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: Build fails, nsprpub is missing
It's very likely you forgot to run "git submodule update --init" after your cloning command.
You can quickly check this if any of the "deps" folders are populated.The Oolite source is available from github.
Use `git clone https://github.com/OoliteProject/oolite`
to retrieve. Then `git submodule update --init`
to fetch the various submodules.
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Re: Build fails, nsprpub is missing
Thank you, that helped, I did not look further down in the readme.md after the "Building" headline
Now I am running into an error with libstdc++ being deprecated though, in the build target jsoplengen, project libjs:
Now I am running into an error with libstdc++ being deprecated though, in the build target jsoplengen, project libjs:
I guess this is due to using the latest Xcode, does someone know how to work around this without going back to an earlier version?clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: Build fails, nsprpub is missing
Yea, that sounds familiar.
My last OS X incursion (one and a half or two years ago) required some ... merciless adjustments, as far as I remember (and I don't remember what they were )
My last OS X incursion (one and a half or two years ago) required some ... merciless adjustments, as far as I remember (and I don't remember what they were )