ChriD / RaumkernelLib

C/C++ library to control the Raumfeld Multiroom System
3 stars 0 forks source link

Problem during compile #13

Open m4men opened 7 years ago

m4men commented 7 years ago

Hi, i hope its ok to post a compile problem here. i have a debian 9 x64 Linux System and would compile RaumkernelLib with ./buildX64.sh but also with ./build.sh This error is coming:

In file included from includes/raumkernel/device/deviceMediaServer.h:33:0, from device/deviceMediaServer.cpp:1: includes/raumkernel/tools/uriUtil.h: In static member function ‘static std::cxx11::string Raumkernel::Tools::UriUtil::encodeUri(std::cxx11::string, bool, std::__cxx11::string)’: includes/raumkernel/tools/uriUtil.h:104:96: error: ‘floor’ was not declared in this scope std::uint8_t level = (std::uint8_t)floor((charValue - 128) / 64); ^ makefile:96: recipe for target 'build/obj-dyn/device/deviceMediaServer.o' failed make: *** [build/obj-dyn/device/deviceMediaServer.o] Error 1

This required lib (https://github.com/ChriD/RaumserverLib but RaumkernelLib) for https://github.com/ChriD/Raumserver/ i have compiled successfull i do not know where the problem is.

Can you advise me please

br Michael

ChriD commented 7 years ago

It seems that the compiler doesnt understand the "floor" command. Which compiler do you use?

m4men commented 7 years ago

On Debian 9.1 i only have this choice gcc-4.9-base:amd64 4.9.3-14 gcc-6-base:amd64 6.3.0-18 because the g++ is only availaible for version 4 or 6 not for the gcc-5-base:amd64 package. Great for me if you have any ideas. br Michael