azteroids
azteroids copied to clipboard
Build failed on Ubuntu
I tried to build it on Ubuntu Desktop 15.10 Git submodule update succeed CMake succeed But make failed Gnu compiler version is 5.2.1
[ 71%] Building CXX object CMakeFiles/Azteroids.dir/src/app.cpp.o
c++: error: unrecognized command line option ‘-stdlib=libc++’
CMakeFiles/Azteroids.dir/build.make:54: recipe for target 'CMakeFiles/Azteroids.dir/src/app.cpp.o' failed
make[2]: *** [CMakeFiles/Azteroids.dir/src/app.cpp.o] Error 1
CMakeFiles/Makefile2:61: recipe for target 'CMakeFiles/Azteroids.dir/all' failed
make[1]: *** [CMakeFiles/Azteroids.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
Thanks for trying to compile in Ubuntu. I don't have a Linux installation readily available right now... can you please remove the "-stdlib=libc++" part from CMakeLists.txt line 49 and try again?
I was hoping to solve this issue myself, alas I may not have time today.
In any case removing the "-stdlib=c++" does proceed with compilation, but I myself cannot seem configure my OpenGL correctly such that app.cpp can compile. It complains to miss the "OpenGL/gl.h" file upon building.
About the "-stdlib=c++", it should be noted, this is a Linux centered issue. It also is in the "entityx" dependency ( :cry: ). The stack overflow article below discusses the compilation necessities with these command line arguments for gcc.
https://stackoverflow.com/questions/19774778/when-is-it-necessary-to-use-use-the-flag-stdlib-libstdc