fabiensanglard / Shmup

3D Shoot'em Up written with OpenGL ES 1.1/2.0 running on iOS, Android, Windows and MacOS X.
http://fabiensanglard.net/shmup/
GNU General Public License v3.0
263 stars 61 forks source link

unable to build under linux #2

Closed ghost closed 10 years ago

ghost commented 11 years ago

I tried to compile on linux (Ubuntu 12.04 LTS), but I got a lot compilation error, mostly about the png code and openal link error.

Maybe the makefile only work on specific debian version?

coderofsalvation commented 10 years ago

had the same

CAUSE: some compilers are picky about having the libraries in the end of the compilecall

the solution lies in engine/linux/Makefile:

- shmup: $(OBJECTS)
-   gcc -o $@ $(LDFLAGS) $^ 

+ shmup: $(OBJECTS)
+   gcc -o $@ $^ $(LDFLAGS) 
fabiensanglard commented 10 years ago

Also make sure libopenal is installed. The engine source code ships with libpng but you need that audio lib. If that solved the issue, please send a pull request.

fabiensanglard commented 10 years ago

Fix verified on Ubuntu and commited to the source code. Closing this issue.