I tried compiling this on my Intel NUC6i3SYH running Debian Unstable, but I got the following error with both RetroPie/EmulationStation
and Aloshi/EmulationStation
:
[ 2%] Built target nanosvg
[ 4%] Built target pugixml
[ 5%] Building CXX object es-core/CMakeFiles/es-core.dir/src/Renderer_draw_gl.cpp.o
In file included from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:9:0:
/home/wb9688/projects/EmulationStation/es-core/src/Util.h:18:22: error: ‘float round(float)’ conflicts with a previous declaration
float round(float num);
^
In file included from /usr/include/c++/6/complex:44:0,
from /usr/include/eigen3/Eigen/Core:73,
from /usr/include/eigen3/Eigen/Dense:1,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer.h:7,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:2:
/usr/include/c++/6/cmath:1708:3: note: previous declaration ‘constexpr float std::round(float)’
round(float __x)
^~~~~
/home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp: In function ‘void Renderer::drawRect(float, float, float, float, unsigned int, GLenum, GLenum)’:
/home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:90:24: error: call of overloaded ‘round(float&)’ is ambiguous
drawRect((int)round(x), (int)round(y), (int)round(w), (int)round(h), color, blend_sfactor, blend_dfactor);
^
In file included from /usr/include/features.h:364:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:495,
from /usr/include/c++/6/string:38,
from /home/wb9688/projects/EmulationStation/es-core/src/platform.h:18,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double)
__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
^
In file included from /usr/include/c++/6/complex:44:0,
from /usr/include/eigen3/Eigen/Core:73,
from /usr/include/eigen3/Eigen/Dense:1,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer.h:7,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:2:
/usr/include/c++/6/cmath:1712:3: note: candidate: constexpr long double std::round(long double)
round(long double __x)
^~~~~
/usr/include/c++/6/cmath:1708:3: note: candidate: constexpr float std::round(float)
round(float __x)
^~~~~
In file included from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:9:0:
/home/wb9688/projects/EmulationStation/es-core/src/Util.h:18:7: note: candidate: float round(float)
float round(float num);
^~~~~
/home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:90:39: error: call of overloaded ‘round(float&)’ is ambiguous
drawRect((int)round(x), (int)round(y), (int)round(w), (int)round(h), color, blend_sfactor, blend_dfactor);
^
In file included from /usr/include/features.h:364:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:495,
from /usr/include/c++/6/string:38,
from /home/wb9688/projects/EmulationStation/es-core/src/platform.h:18,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double)
__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
^
In file included from /usr/include/c++/6/complex:44:0,
from /usr/include/eigen3/Eigen/Core:73,
from /usr/include/eigen3/Eigen/Dense:1,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer.h:7,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:2:
/usr/include/c++/6/cmath:1712:3: note: candidate: constexpr long double std::round(long double)
round(long double __x)
^~~~~
/usr/include/c++/6/cmath:1708:3: note: candidate: constexpr float std::round(float)
round(float __x)
^~~~~
In file included from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:9:0:
/home/wb9688/projects/EmulationStation/es-core/src/Util.h:18:7: note: candidate: float round(float)
float round(float num);
^~~~~
/home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:90:54: error: call of overloaded ‘round(float&)’ is ambiguous
drawRect((int)round(x), (int)round(y), (int)round(w), (int)round(h), color, blend_sfactor, blend_dfactor);
^
In file included from /usr/include/features.h:364:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:495,
from /usr/include/c++/6/string:38,
from /home/wb9688/projects/EmulationStation/es-core/src/platform.h:18,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double)
__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
^
In file included from /usr/include/c++/6/complex:44:0,
from /usr/include/eigen3/Eigen/Core:73,
from /usr/include/eigen3/Eigen/Dense:1,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer.h:7,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:2:
/usr/include/c++/6/cmath:1712:3: note: candidate: constexpr long double std::round(long double)
round(long double __x)
^~~~~
/usr/include/c++/6/cmath:1708:3: note: candidate: constexpr float std::round(float)
round(float __x)
^~~~~
In file included from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:9:0:
/home/wb9688/projects/EmulationStation/es-core/src/Util.h:18:7: note: candidate: float round(float)
float round(float num);
^~~~~
/home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:90:69: error: call of overloaded ‘round(float&)’ is ambiguous
drawRect((int)round(x), (int)round(y), (int)round(w), (int)round(h), color, blend_sfactor, blend_dfactor);
^
In file included from /usr/include/features.h:364:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:495,
from /usr/include/c++/6/string:38,
from /home/wb9688/projects/EmulationStation/es-core/src/platform.h:18,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double)
__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
^
In file included from /usr/include/c++/6/complex:44:0,
from /usr/include/eigen3/Eigen/Core:73,
from /usr/include/eigen3/Eigen/Dense:1,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer.h:7,
from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:2:
/usr/include/c++/6/cmath:1712:3: note: candidate: constexpr long double std::round(long double)
round(long double __x)
^~~~~
/usr/include/c++/6/cmath:1708:3: note: candidate: constexpr float std::round(float)
round(float __x)
^~~~~
In file included from /home/wb9688/projects/EmulationStation/es-core/src/Renderer_draw_gl.cpp:9:0:
/home/wb9688/projects/EmulationStation/es-core/src/Util.h:18:7: note: candidate: float round(float)
float round(float num);
^~~~~
es-core/CMakeFiles/es-core.dir/build.make:278: recipe for target 'es-core/CMakeFiles/es-core.dir/src/Renderer_draw_gl.cpp.o' failed
make[2]: *** [es-core/CMakeFiles/es-core.dir/src/Renderer_draw_gl.cpp.o] Error 1
CMakeFiles/Makefile2:217: recipe for target 'es-core/CMakeFiles/es-core.dir/all' failed
make[1]: *** [es-core/CMakeFiles/es-core.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2