Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

EmulationStation Compile fails at [100%] Linking CXX executable ../emulationstation



  • GCC used v 6.3.0
    Swapfile set to 2048
    Split RAM set to 16
    Standalone Compiling From Source

    [100%] Linking CXX executable ../emulationstation
    CMakeFiles/emulationstation.dir/src/main.cpp.o: In function main': main.cpp:(.text.startup+0x1b0): undefined reference to glGetString'
    CMakeFiles/emulationstation.dir/src/components/RatingComponent.cpp.o: In function RatingComponent::render(Eigen::Transform<float, 3, 2, 0> const&)': RatingComponent.cpp:(.text+0x210): undefined reference to glEnable'
    RatingComponent.cpp:(.text+0x218): undefined reference to glEnable' RatingComponent.cpp:(.text+0x224): undefined reference to glBlendFunc'
    RatingComponent.cpp:(.text+0x248): undefined reference to glColor4ub' RatingComponent.cpp:(.text+0x250): undefined reference to glEnableClientState'
    RatingComponent.cpp:(.text+0x258): undefined reference to glEnableClientState' RatingComponent.cpp:(.text+0x26c): undefined reference to glVertexPointer'
    RatingComponent.cpp:(.text+0x280): undefined reference to glTexCoordPointer' RatingComponent.cpp:(.text+0x298): undefined reference to glDrawArrays'
    RatingComponent.cpp:(.text+0x2b0): undefined reference to glDrawArrays' RatingComponent.cpp:(.text+0x2b8): undefined reference to glDisableClientState'
    RatingComponent.cpp:(.text+0x2c0): undefined reference to glDisableClientState' RatingComponent.cpp:(.text+0x2c8): undefined reference to glDisable'
    RatingComponent.cpp:(.text+0x2d0): undefined reference to glDisable' RatingComponent.cpp:(.text+0x2e4): undefined reference to glColor4ub'
    ../libes-core.a(Renderer_draw_gl.cpp.o): In function Renderer::popClipRect()': Renderer_draw_gl.cpp:(.text+0xb4): undefined reference to glScissor'
    Renderer_draw_gl.cpp:(.text+0x1f0): undefined reference to glDisable' ../libes-core.a(Renderer_draw_gl.cpp.o): In function Renderer::drawRect(int, int, int, int, unsigned int, unsigned int, unsigned int)':
    Renderer_draw_gl.cpp:(.text+0x30c): undefined reference to glEnable' Renderer_draw_gl.cpp:(.text+0x318): undefined reference to glBlendFunc'
    Renderer_draw_gl.cpp:(.text+0x320): undefined reference to glEnableClientState' Renderer_draw_gl.cpp:(.text+0x328): undefined reference to glEnableClientState'
    Renderer_draw_gl.cpp:(.text+0x33c): undefined reference to glVertexPointer' Renderer_draw_gl.cpp:(.text+0x350): undefined reference to glColorPointer'
    Renderer_draw_gl.cpp:(.text+0x360): undefined reference to glDrawArrays' Renderer_draw_gl.cpp:(.text+0x368): undefined reference to glDisable'
    Renderer_draw_gl.cpp:(.text+0x370): undefined reference to glDisableClientState' Renderer_draw_gl.cpp:(.text+0x378): undefined reference to glDisableClientState'
    ../libes-core.a(Renderer_draw_gl.cpp.o): In function Renderer::setMatrix(float*)': Renderer_draw_gl.cpp:(.text+0x418): undefined reference to glLoadMatrixf'
    ../libes-core.a(Renderer_draw_gl.cpp.o): In function Renderer::setMatrix(Eigen::Transform<float, 3, 2, 0> const&)': Renderer_draw_gl.cpp:(.text+0x41c): undefined reference to glLoadMatrixf'
    ../libes-core.a(Renderer_draw_gl.cpp.o): In function Renderer::pushClipRect(Eigen::Matrix<int, 2, 1, 0, 2, 1>, Eigen::Matrix<int, 2, 1, 0, 2, 1>)': Renderer_draw_gl.cpp:(.text+0x500): undefined reference to glScissor'
    Renderer_draw_gl.cpp:(.text+0x508): undefined reference to glEnable' ../libes-core.a(Renderer_init_sdlgl.cpp.o): In function Renderer::swapBuffers()':
    Renderer_init_sdlgl.cpp:(.text+0x38): undefined reference to glClear' ../libes-core.a(Renderer_init_sdlgl.cpp.o): In function Renderer::init(int, int)':
    Renderer_init_sdlgl.cpp:(.text+0xa70): undefined reference to glViewport' Renderer_init_sdlgl.cpp:(.text+0xa78): undefined reference to glMatrixMode'
    Renderer_init_sdlgl.cpp:(.text+0xa9c): undefined reference to glOrthof' Renderer_init_sdlgl.cpp:(.text+0xaa4): undefined reference to glMatrixMode'
    Renderer_init_sdlgl.cpp:(.text+0xab8): undefined reference to glClearColor' ../libes-core.a(ComponentGrid.cpp.o): In function ComponentGrid::render(Eigen::Transform<float, 3, 2, 0> const&)':
    ComponentGrid.cpp:(.text+0x35c): undefined reference to glEnable' ComponentGrid.cpp:(.text+0x368): undefined reference to glBlendFunc'
    ComponentGrid.cpp:(.text+0x370): undefined reference to glEnableClientState' ComponentGrid.cpp:(.text+0x378): undefined reference to glEnableClientState'
    ComponentGrid.cpp:(.text+0x38c): undefined reference to glVertexPointer' ComponentGrid.cpp:(.text+0x3a0): undefined reference to glColorPointer'
    ComponentGrid.cpp:(.text+0x3bc): undefined reference to glDrawArrays' ComponentGrid.cpp:(.text+0x3c4): undefined reference to glDisable'
    ComponentGrid.cpp:(.text+0x3cc): undefined reference to glDisableClientState' ComponentGrid.cpp:(.text+0x3d4): undefined reference to glDisableClientState'
    ../libes-core.a(ImageComponent.cpp.o): In function ImageComponent::render(Eigen::Transform<float, 3, 2, 0> const&)': ImageComponent.cpp:(.text+0x88c): undefined reference to glEnable'
    ImageComponent.cpp:(.text+0x894): undefined reference to glEnable' ImageComponent.cpp:(.text+0x8a0): undefined reference to glBlendFunc'
    ImageComponent.cpp:(.text+0x8a8): undefined reference to glEnableClientState' ImageComponent.cpp:(.text+0x8b0): undefined reference to glEnableClientState'
    ImageComponent.cpp:(.text+0x8b8): undefined reference to glEnableClientState' ImageComponent.cpp:(.text+0x8cc): undefined reference to glVertexPointer'
    ImageComponent.cpp:(.text+0x8e0): undefined reference to glTexCoordPointer' ImageComponent.cpp:(.text+0x8f4): undefined reference to glColorPointer'
    ImageComponent.cpp:(.text+0x904): undefined reference to glDrawArrays' ImageComponent.cpp:(.text+0x90c): undefined reference to glDisableClientState'
    ImageComponent.cpp:(.text+0x914): undefined reference to glDisableClientState' ImageComponent.cpp:(.text+0x91c): undefined reference to glDisableClientState'
    ImageComponent.cpp:(.text+0x924): undefined reference to glDisable' ImageComponent.cpp:(.text+0x92c): undefined reference to glDisable'
    ../libes-core.a(NinePatchComponent.cpp.o): In function NinePatchComponent::render(Eigen::Transform<float, 3, 2, 0> const&)': NinePatchComponent.cpp:(.text+0x2fc): undefined reference to glEnable'
    NinePatchComponent.cpp:(.text+0x304): undefined reference to glEnable' NinePatchComponent.cpp:(.text+0x310): undefined reference to glBlendFunc'
    NinePatchComponent.cpp:(.text+0x318): undefined reference to glEnableClientState' NinePatchComponent.cpp:(.text+0x320): undefined reference to glEnableClientState'
    NinePatchComponent.cpp:(.text+0x328): undefined reference to glEnableClientState' NinePatchComponent.cpp:(.text+0x33c): undefined reference to glVertexPointer'
    NinePatchComponent.cpp:(.text+0x354): undefined reference to glTexCoordPointer' NinePatchComponent.cpp:(.text+0x368): undefined reference to glColorPointer'
    NinePatchComponent.cpp:(.text+0x378): undefined reference to glDrawArrays' NinePatchComponent.cpp:(.text+0x380): undefined reference to glDisableClientState'
    NinePatchComponent.cpp:(.text+0x388): undefined reference to glDisableClientState' NinePatchComponent.cpp:(.text+0x390): undefined reference to glDisableClientState'
    NinePatchComponent.cpp:(.text+0x398): undefined reference to glDisable' NinePatchComponent.cpp:(.text+0x3a0): undefined reference to glDisable'
    ../libes-core.a(Font.cpp.o): In function Font::unload(std::shared_ptr<ResourceManager>&)': Font.cpp:(.text+0x4c): undefined reference to glDeleteTextures'
    ../libes-core.a(Font.cpp.o): In function Font::unloadTextures()': Font.cpp:(.text+0x9b0): undefined reference to glDeleteTextures'
    ../libes-core.a(Font.cpp.o): In function Font::FontTexture::~FontTexture()': Font.cpp:(.text+0xa10): undefined reference to glDeleteTextures'
    ../libes-core.a(Font.cpp.o): In function Font::FontTexture::initTexture()': Font.cpp:(.text+0xb0c): undefined reference to glGenTextures'
    Font.cpp:(.text+0xb18): undefined reference to glBindTexture' Font.cpp:(.text+0xb28): undefined reference to glTexParameterf'
    Font.cpp:(.text+0xb38): undefined reference to glTexParameterf' Font.cpp:(.text+0xb48): undefined reference to glTexParameterf'
    Font.cpp:(.text+0xb58): undefined reference to glTexParameterf' Font.cpp:(.text+0xb64): undefined reference to glPixelStorei'
    Font.cpp:(.text+0xb70): undefined reference to glPixelStorei' Font.cpp:(.text+0xb9c): undefined reference to glTexImage2D'
    ../libes-core.a(Font.cpp.o): In function Font::FontTexture::deinitTexture()': Font.cpp:(.text+0xc10): undefined reference to glDeleteTextures'
    ../libes-core.a(Font.cpp.o): In function Font::renderTextCache(TextCache*)': Font.cpp:(.text+0xef8): undefined reference to glBindTexture'
    Font.cpp:(.text+0xf00): undefined reference to glEnable' Font.cpp:(.text+0xf08): undefined reference to glEnable'
    Font.cpp:(.text+0xf14): undefined reference to glBlendFunc' Font.cpp:(.text+0xf1c): undefined reference to glEnableClientState'
    Font.cpp:(.text+0xf24): undefined reference to glEnableClientState' Font.cpp:(.text+0xf2c): undefined reference to glEnableClientState'
    Font.cpp:(.text+0xf40): undefined reference to glVertexPointer' Font.cpp:(.text+0xf58): undefined reference to glTexCoordPointer'
    Font.cpp:(.text+0xf6c): undefined reference to glColorPointer' Font.cpp:(.text+0xf88): undefined reference to glDrawArrays'
    Font.cpp:(.text+0xf90): undefined reference to glDisableClientState' Font.cpp:(.text+0xf98): undefined reference to glDisableClientState'
    Font.cpp:(.text+0xfa0): undefined reference to glDisableClientState' Font.cpp:(.text+0xfa8): undefined reference to glDisable'
    Font.cpp:(.text+0xfb0): undefined reference to glDisable' ../libes-core.a(Font.cpp.o): In function Font::~Font()':
    Font.cpp:(.text+0x1358): undefined reference to glDeleteTextures' Font.cpp:(.text+0x13d4): undefined reference to glDeleteTextures'
    ../libes-core.a(Font.cpp.o): In function Font::~Font()': Font.cpp:(.text+0x1458): undefined reference to glDeleteTextures'
    Font.cpp:(.text+0x14d4): undefined reference to glDeleteTextures' ../libes-core.a(Font.cpp.o): In function Font::getTextureForNewGlyph(Eigen::Matrix<int, 2, 1, 0, 2, 1> const&, Font::FontTexture*&, Eigen::Matrix<int, 2, 1, 0, 2, 1>&)':
    Font.cpp:(.text+0x17e8): undefined reference to glDeleteTextures' ../libes-core.a(Font.cpp.o):Font.cpp:(.text+0x1850): more undefined references to glDeleteTextures' follow
    ../libes-core.a(Font.cpp.o): In function Font::rebuildTextures()': Font.cpp:(.text+0x2478): undefined reference to glBindTexture'
    Font.cpp:(.text+0x24a4): undefined reference to glTexSubImage2D' Font.cpp:(.text+0x24d0): undefined reference to glBindTexture'
    ../libes-core.a(Font.cpp.o): In function Font::getGlyph(unsigned long)': Font.cpp:(.text+0x28ac): undefined reference to glBindTexture'
    Font.cpp:(.text+0x28e0): undefined reference to glTexSubImage2D' Font.cpp:(.text+0x28ec): undefined reference to glBindTexture'
    ../libes-core.a(Font.cpp.o): In function Font::Font(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': Font.cpp:(.text+0x2e9c): undefined reference to glDeleteTextures'
    ../libes-core.a(Font.cpp.o): In function std::_Sp_counted_ptr<Font*, (__gnu_cxx::_Lock_policy)1>::_M_dispose()': Font.cpp:(.text._ZNSt15_Sp_counted_ptrIP4FontLN9__gnu_cxx12_Lock_policyE1EE10_M_disposeEv[_ZNSt15_Sp_counted_ptrIP4FontLN9__gnu_cxx12_Lock_policyE1EE10_M_disposeEv]+0x74): undefined reference to glDeleteTextures'
    Font.cpp:(.text._ZNSt15_Sp_counted_ptrIP4FontLN9__gnu_cxx12_Lock_policyE1EE10_M_disposeEv[_ZNSt15_Sp_counted_ptrIP4FontLN9__gnu_cxx12_Lock_policyE1EE10_M_disposeEv]+0xf0): undefined reference to glDeleteTextures' ../libes-core.a(Font.cpp.o): In function void std::vector<Font::FontTexture, std::allocatorFont::FontTexture >::_M_emplace_back_auxFont::FontTexture(Font::FontTexture&&)':
    Font.cpp:(.text.ZNSt6vectorIN4Font11FontTextureESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT[ZNSt6vectorIN4Font11FontTextureESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT]+0x128): undefined reference to glDeleteTextures' ../libes-core.a(TextureResource.cpp.o): In function TextureResource::unload(std::shared_ptr<ResourceManager>&)':
    TextureResource.cpp:(.text+0x1c): undefined reference to glDeleteTextures' ../libes-core.a(TextureResource.cpp.o):TextureResource.cpp:(.text+0x6c): more undefined references to glDeleteTextures' follow
    ../libes-core.a(TextureResource.cpp.o): In function TextureResource::initFromPixels(unsigned char const*, unsigned int, unsigned int)': TextureResource.cpp:(.text+0x1f8): undefined reference to glGenTextures'
    TextureResource.cpp:(.text+0x204): undefined reference to glBindTexture' TextureResource.cpp:(.text+0x228): undefined reference to glTexImage2D'
    TextureResource.cpp:(.text+0x238): undefined reference to glTexParameteri' TextureResource.cpp:(.text+0x248): undefined reference to glTexParameteri'
    TextureResource.cpp:(.text+0x26c): undefined reference to glTexParameteri' TextureResource.cpp:(.text+0x27c): undefined reference to glTexParameteri'
    TextureResource.cpp:(.text+0x298): undefined reference to glDeleteTextures' ../libes-core.a(TextureResource.cpp.o): In function TextureResource::deinit()':
    TextureResource.cpp:(.text+0x308): undefined reference to glDeleteTextures' ../libes-core.a(TextureResource.cpp.o): In function TextureResource::bind() const':
    TextureResource.cpp:(.text+0x948): undefined reference to `glBindTexture'
    collect2: error: ld returned 1 exit status
    es-app/CMakeFiles/emulationstation.dir/build.make:1133: recipe for target 'emulationstation' failed
    make[2]: *** [emulationstation] Error 1
    CMakeFiles/Makefile2:274: recipe for target 'es-app/CMakeFiles/emulationstation.dir/all' failed
    make[1]: *** [es-app/CMakeFiles/emulationstation.dir/all] Error 2
    Makefile:149: recipe for target 'all' failed
    make: *** [all] Error 2


  • Global Moderator

    @2play said in EmulationStation Compile fails at [100%] Linking CXX executable ../emulationstation:

    GCC used v 6.3.0
    Swapfile set to 2048
    Split RAM set to 16
    Standalone Compiling From Source

    Where did you get the source and which version of Emulationstation ? ES comes already bundled with RetroPie and you can install it from source if you want from the RetroPie-Setup script. Please provide more information about your environment.



  • @mitu hi!

    Im doing it on a Rpi3B with Stretch OS, Kernel 4.14.62-v7+
    I tried and installed gcc v5 still no go.
    made certain I have SDL 2.0.8 and all SDL and ES prerequisites as per https://emulationstation.org/gettingstarted.html#install_rpi_standalone of course with updated commands
    Source from: https://github.com/Aloshi/EmulationStation


  • administrators

    @2play That code is unmaintained and nothing to do with us - nor is that website and instructions.

    We have a custom fork of ES here https://github.com/RetroPie/EmulationStation but why don't you just use the RetroPie script to install it as it handles all the dependencies etc. Can't guarantee that the stretch SDL2 is any good either - we use our own SDL build.



  • @buzz t x for the swift reply!
    I have run the source update from the script and completed just fine.
    I guess the instruction i was following were too old and the source also :-)

    I ll use the one you provided from the fork Retropie!
    Kind of you guys taking the time!

    I ll revert with my findings.

    the es dev in experimental what version would compile?


  • administrators

    @2play It depends if you want the bleeding edge code. RetroPie ships with the stable branch - but you can build from master for the latest code. Ignore the other branches.



  • @buzz again thank you very much!



  • @buzz All good!
    With the official script I can compile fine what I
    needed!



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.