Cinder on "Rpi3b+ / Alpine Linux" is compiling


#1

Hi,

I have been trying to compile libcinder on rpi3b+ with Alpine Linux (meaning musl libc).
I get an error on compiling Cinder/include/asio/error_code.hpp (see below)
but simply commenting out line 185
//# include “asio/impl/error_code.ipp”
allows libcinder to be compiled on an armhf running Alpine Linux.

did not test anything other than that yet…

/usr/bin/c++ -DCINDER_GL_CORE -DFT2_BUILD_LIBRARY -DFT_DEBUG_LEVEL_TRACE -D_GLFW_X11 -D_GLIBCXX_USE_CXX11_ABI=0 -D_UNIX -I/data/Cinder/include/jsoncpp -I/data/Cinder/include/tinyexr -I/data/Cinder/src/linebreak -I/data/Cinder/src/oggvorbis/vorbis -I/data/Cinder/src/r8brain -I/data/Cinder/include/glfw -isystem /data/Cinder/include -isystem /data/Cinder/include/oggvorbis -isystem /data/Cinder/src/AntTweakBar -isystem /data/Cinder/include/freetype -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/gstreamer-1.0 -isystem /usr/include/orc-0.4 -isystem /usr/lib/gstreamer-1.0/include -isystem /usr/include/libdrm -std=c++14 -g -Wfatal-errors -o CMakeFiles/cinder.dir/src/cinder/app/Window.cpp.o -c /data/Cinder/src/cinder/app/Window.cpp
In file included from /data/Cinder/include/asio/error_code.hpp:185,
from /data/Cinder/include/asio/detail/scheduler.hpp:20,
from /data/Cinder/include/asio/system_executor.hpp:19,
from /data/Cinder/include/asio/associated_executor.hpp:21,
from /data/Cinder/include/asio/asio.hpp:19,
from /data/Cinder/src/cinder/app/AppBase.cpp:67:
/data/Cinder/include/asio/impl/error_code.ipp: In member function ‘virtual std::string asio::detail::system_category::message(int) const’:
/data/Cinder/include/asio/impl/error_code.ipp:110:22: error: could not convert ‘strerror_r(value, ((char*)(& buf)), sizeof (buf))’ from ‘int’ to ‘std::string’ {aka ‘std::basic_string’}
return strerror_r(value, buf, sizeof(buf));
^~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.