Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile #61

Closed
ghost opened this issue Aug 16, 2016 · 8 comments
Closed

Can't compile #61

ghost opened this issue Aug 16, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Aug 16, 2016

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
@joolswills
Copy link
Member

Would need a full log including cmake stage.

Try using gcc 4.9 - note this ES is designed and supported for use as part of retropie only.

@joolswills
Copy link
Member

Looks like you are using gcc6 ? not supported or tested so you will need to use an older gcc.

@ghost
Copy link
Author

ghost commented Aug 16, 2016 via email

@joolswills
Copy link
Member

Thanks. Will include the fix.

@robindegen
Copy link

@joolswills Did you perhaps forget to merge the actual PR? The issue is closed but the change is not in master? I had to manually apply the PR and then my issue was fixed.

@hex007
Copy link

hex007 commented Aug 28, 2017

@robindegen It was included in master long ago

cdd819e

@robindegen
Copy link

@hex007 Ah I see where the confusion is now. The emulationstation.org website still points to Aloshi/EmulationStation , which hasn't been updated in 3 years. Maybe someone should fix that link 😉

@hex007
Copy link

hex007 commented Aug 28, 2017

Emulationstation.org is Aloshi's website and not Retropie's

lubosz pushed a commit to lubosz/EmulationStation that referenced this issue Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants