Open zor1984qq opened 5 years ago
I am able to reproduce this issue on Ubuntu 18.04.
Reviewing the makefile my assumption is that CC is already set to gcc instead of g++ and this is causing the issue. By temporarily setting the CC environment variable to g++ before running the command I was able to fix the specific errors you are seeing:
CC=g++ make -f source/linux/Makefile compile
Note I have a new set of errors, though. Here is list representative of some of those errors:
/tmp/cc2TUe1c.ltrans0.ltrans.o: In function `Design::save(SaveFile&) const':
I followed the tips that @compenguy suggested in issue #5 and was able to successfully compile and run on Ubuntu 17.10
ccache CC=g++ make -f source/linux/Makefile compile ccache: error: Could not find compiler "CC=g++" in PATH damn ccache, I try to run it just straight forward without it...doesn't know wtf wrong with ccache @_@
Does ubuntu snap has music in its package? I mean how to place music in "sudo snap install starruler2" if its now available from the snap package?
I see no music when running snapped version...how to figure out how I can add it from the GOG.com version to the snap package?
The bad thing I cannot add music to the .snap'ed package ;( its already snapped and mounted onto the file system. But at least it works...anyway I have a gog.com version on the way...
and I have same shit with CC=g++
@zor1984qq I got past the errors in your log vomit by forcing g++ version 8:
CC=g++-8 make -f source/linux/Makefile compile
However this results in new (and maybe improved) log vomit:
-- Generating done
-- Build files have been written to: xxxxxxx blah blah blah
...
[100%] Built target glfw
...
#./source/linux/build.sh 64 release breakpad
lto1: fatal error: bytecode stream in file ‘obj/lin64/libangelscript.a’ generated with LTO version 6.0 instead of the expected 7.0
compilation terminated.
lto-wrapper: fatal error: g++-8 returned 1 exit status
compilation terminated.
/usr/bin/x86_64-linux-gnu-ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
source/linux/Makefile:326: recipe for target 'bin/lin64/StarRuler2.bin' failed
make: *** [bin/lin64/StarRuler2.bin] Error 1
ccache make -f source/linux/Makefile compile then it gives thousands of same type errors
I managed to install all deps, using libcurl4-openssl-dev I don't think these can be an issue but maybe it needs just libcurl-openssl1.0-dev package instead of new openssl? But it just my thoughts.
Using gcc-7/bionic,now 7.3.0-16ubuntu3 amd64 [installed, auto] Should I use an older version or the builds is only availible in MSVC studio?