BlindMindStudios / StarRuler2-Source

4X Space Strategy game Star Ruler 2's open source distribution.
http://starruler2.com
Other
1.45k stars 244 forks source link

Can't build on Ubuntu 16.04 (libangelscript) #19

Closed Vthyarilops closed 5 years ago

Vthyarilops commented 5 years ago

It seems I can't build under Ubuntu 16.04, as far as I can tell I have all the required dependencies. error log here : https://pastebin.com/Fmy6kuaf

lucyllewy commented 5 years ago

you need to set CC=g++ in your environment when executing make, OR change references to $(CC) to $(CXX) in the Makefile.

Vthyarilops commented 5 years ago

thanks for the reply, I've tried both and it gives the same error.

rl-michels commented 5 years ago

Try finding the makefile in ./source/angelscript/projects/gnuc and add the option "-std=c++11" to CXXFLAGS there. That seemed to fix the problem for me.

Vthyarilops commented 5 years ago

Thank you, that worked great, unfortunately I'm stuck on another error (I get the same error in an Ubuntu 18.04 VM) https://pastebin.com/UGkP48tn

rl-michels commented 5 years ago

That seems to be the same issue as #24 To fix it you could try and follow the solution proposed by compenguy in #5

Vthyarilops commented 5 years ago

Thanks for the suggestion, I've already tried and end up with the same results (I assume the fix in issue #9 is the same as #24 and #5

edit. confirmed that the solution in #9 fixes building on Ubuntu 18.04, but not under 16.04

Vthyarilops commented 5 years ago

Just want to thank BlindMindStudios, rl-michels, and diddledan, plays totally fine on Ubuntu 16.04 if libpng16-16 is installed and you copy libGLEW.so.2.0 to the main directory, it spits out some libpng errors but doesn't seem to affect gameplay, anyways thanks everyone.

edit. Since someone asked where I got libGLEW.so.2.0, extract it from the Ubuntu 18.04 package https://packages.ubuntu.com/bionic/libglew2.0