deb0ch / R-Type

A remake of the famous game R-Type. It is coded using the Entity-Component-System pattern, can be played up to 4 players through network and is cross-platform Linux/Windows.
Do What The F*ck You Want To Public License
5 stars 2 forks source link

build problem on debian unstable #2

Open alexmyczko opened 5 years ago

alexmyczko commented 5 years ago
[ 30%] Building CXX object CMakeFiles/RType_Server.dir/systems/Friction2DSystem.cpp.o
/var/www/debian/r-type/R-Type-master/systems/Friction2DSystem.cpp: In member function ‘float Friction2DSystem::applyFriction(float, float, float)’:
/var/www/debian/r-type/R-Type-master/systems/Friction2DSystem.cpp:37:22: error: ‘expf’ was not declared in this scope
   return (oldSpeed * expf(-friction * delta));
                      ^~~~
/var/www/debian/r-type/R-Type-master/systems/Friction2DSystem.cpp:37:22: note: suggested alternative: ‘exit’
   return (oldSpeed * expf(-friction * delta));
                      ^~~~
                      exit
make[2]: *** [CMakeFiles/RType_Server.dir/build.make:609: CMakeFiles/RType_Server.dir/systems/Friction2DSystem.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:75: CMakeFiles/RType_Server.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
deb0ch commented 5 years ago

I haven't built the project in a hundred years, but since my vacation begins tonight I will take a look into it soon 😸

We should definitely have written a decent README for this project

alexmyczko commented 5 years ago

if you manage it to get it built, i will manage to get it in debian and ubuntu :)

deb0ch commented 5 years ago

Will get to it ASAP 👌✨

deb0ch commented 5 years ago

Btw, against which version of which OS do you recommend that I test the build ? I'm thinking Ubuntu 18.04, but since you are the one packaging it you are the best placed to know that

alexmyczko commented 5 years ago

whatever recent you have is fine, if you have ubuntu 18.04, that's fine. if it builds there for you, i can also test it on that, and debian sid and report back problems...

deb0ch commented 5 years ago

I will make a VM in any case, so it could really be anything

alexmyczko commented 5 years ago

go for ubuntu 18.04 thats is the easiest, after that you could run

sed -i s,bionic,disco,g /etc/apt/sources.list apt-get update; apt-get dist-upgrade

and retry

alexmyczko commented 5 years ago

#include <math.h> fixes it! but not all... next problem: http://sid.ethz.ch/debian/r-type/r-type_20181220-1_amd64.build