#1 2019-05-14 13:02:29

Russell
Member

Help needed in Compiling

When I compile (in src) I get this error:


/usr/include/x86_64-linux-gnu/bits/math-finite.h:187:21: note: suggested alternative: ‘__gamma_r_finite’
In file included from /usr/include/c++/7/cmath:45:0,
                 from /usr/include/c++/7/math.h:36,
                 from shared/cube.h:13:
/usr/include/x86_64-linux-gnu/bits/math-finite.h: In function ‘_Float64x tgammaf64x(_Float64x)’:
/usr/include/x86_64-linux-gnu/bits/math-finite.h:187:21: error: ‘____gammal_r_finite’ was not declared in this scope
   _Mdouble_ __res = __REDIRTO (gamma, _r) (__d, &__local_signgam);
                     ^
/usr/include/x86_64-linux-gnu/bits/math-finite.h:187:21: note: suggested alternative: ‘__gammal_r_finite’
Makefile:168: recipe for target 'shared/cube.h.gch' failed
make: *** [shared/cube.h.gch] Error 1


I think it has to do with gamma settings; (gamma settings) don't work ingame either.
Specs:
Ubuntu 1804
Intel Celeron N3350 APU
Lenovo Ideapad 120s 141a

Last edited by Russell (2019-05-14 13:04:39)

Offline

#2 2019-05-14 13:52:37

Suiseiseki
Member

Re: Help needed in Compiling

I believe you need to download nightly builds, but last time I checked link for them was dead. Use alternative links above, like PublicSVN and WebSVN ones (I forgot which 1 I used, but it has latest source-code), and then unzip and replace that new "src" folder with the one you tried compiling on.

That was thing that worked for me, since First Edition is outdated or something...

Offline

#3 2019-05-15 11:16:37

Russell
Member

Re: Help needed in Compiling

OK, I've finished compiling but when I run I get the error message "cannot find shader definitions"

Offline

#4 2019-05-15 18:12:50

Suiseiseki
Member

Re: Help needed in Compiling

Reading through "src/engine/shader.cpp" will give you definite answer, I believe in line 36-or-so:

'if(!nullshader || !hudshader || !hudtextshader || !hudnotextureshader || !stdworldshader) fatal("cannot find shader definitions");'

If you want to avoid it, downloading latest "config" folder from site you used will maybe fix it. Source of error is most likely "config/glsl.cfg", but I didn't have that error to be sure...

Offline

Board footer