btaggart {l Wrote}:I just found this project and am very interested in trying it out. I'm running into some build problems, I'm hoping someone can help me with. Linux is not my primary OS, so I apologize if the answers seem obvious to others.
I'm running Ubuntu 15.04 inside VirtualBox on Mac OS X Yosemite. I installed all the dependencies. When I run 'make', it starts with this warning twice:
"Package sdl was not found in the pkg-config search path. Perhaps you should add the directory containing 'sdl.pc' to the PKG_CONFIG_PATH environment variable. No package 'sdl' found"
Then it builds for a while and ends up failing, not able to find 'SDL/SDL.h'.
I think you need sdl-dev. e.g:
apt-cache search sdl-dev
libsdl1.2-dev - Simple DirectMedia Layer development files
Then "apt-get install libsdl1.2-dev".
Well, the above is for ubuntu 14.04 (actually Mint 17 -- derived from ubuntu 14.04) which is different than what you're running, so, it might be different.
Try "apt-cache search sdl-dev", and it will tell you which sdl-dev you need.
In any case, I think sdl is only used by mesh_viewer, which is a tool for viewing models, but which is not actually used in the game. So you may be able to get by without sdl if you can get the build to proceed without mesh_viewer.
As long as it builds snis_client and snis_server, and all the openscad models, if mesh_viewer isn't built, it won't stop the game from running.
I've previously tried both Raspbian and Ubuntu Mate on my Raspberry Pi 2, but could not find SDL2 in the former and OpenSCAD in the latter case, though I have not tried building them locally yet. If anyone has overcome these issues, I would love to know.
You're not going to have a good time on the raspberry pi. The little machine just doesn't have enough oomph.
Also, does anyone have build instructions for Mac OS X?
I haven't built it myself on Mac, though I know it has been done by at least one other person, although I am not sure it has been done recently (within the last year or so.)
In general, I think this project would benefit from some build instructions, as it is not as simple as 'git clone, then make'.
True. Send me a patch? There are some build instructions here: https://smcameron.github.io/space-nerds-in-space/
although they are in the context of creating a bootable image. If you're not creating a bootable image, then the parts you're interested in begin after you're in the chrooted environment. Granted, those instructions don't mention libsdl-dev. It is hard to fighure out all the build dependencies when, as in my case, you already had most of them installed before you began. And it is even harder to track them across multiple linux distros. My strategy is to try to make the game good enough that I just keep the source on github and hope that other people will find it worthwhile to package it up for all their various distros. Not entirely successful so far, but that's ok too.