Closed pjft closed 7 years ago
@pjft can you try make clean before building?
That would have been something a smart person would have indeed tried.
Let me get back to you.
EDIT: just to make it clear, if it wasn't, I had not tried it. :) I'll report back at the end.
On Tue, Aug 22, 2017 at 6:31 PM, Saket Dandawate notifications@github.com wrote:
@pjft https://github.com/pjft can you try make clean before building?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RetroPie/EmulationStation/issues/219#issuecomment-324097111, or mute the thread https://github.com/notifications/unsubscribe-auth/AVAV7clKrotzNtTELrqC5rhvcOB0aF0cks5saxBegaJpZM4O-8Jj .
Yeah, that sorted. Thanks for the help, and sorry for wasting your time.
Actually I spoke too soon.
It happens at the linking stage.
I ran make clean, then cmake ., then make as usual. Ideas?
CMakeFiles/emulationstation.dir/src/components/RatingComponent.cpp.o: In function `RatingComponent::render(Eigen::Transform<float, 3, 2, 0> const&)':
RatingComponent.cpp:(.text+0x8d4): undefined reference to `glEnable'
RatingComponent.cpp:(.text+0x8dc): undefined reference to `glEnable'
RatingComponent.cpp:(.text+0x8e8): undefined reference to `glBlendFunc'
RatingComponent.cpp:(.text+0x8f0): undefined reference to `glEnableClientState'
RatingComponent.cpp:(.text+0x8f8): undefined reference to `glEnableClientState'
RatingComponent.cpp:(.text+0x900): undefined reference to `glEnableClientState'
RatingComponent.cpp:(.text+0x914): undefined reference to `glVertexPointer'
RatingComponent.cpp:(.text+0x928): undefined reference to `glTexCoordPointer'
RatingComponent.cpp:(.text+0x93c): undefined reference to `glColorPointer'
RatingComponent.cpp:(.text+0x954): undefined reference to `glDrawArrays'
RatingComponent.cpp:(.text+0x96c): undefined reference to `glDrawArrays'
RatingComponent.cpp:(.text+0x974): undefined reference to `glDisableClientState'
RatingComponent.cpp:(.text+0x97c): undefined reference to `glDisableClientState'
RatingComponent.cpp:(.text+0x984): undefined reference to `glDisableClientState'
RatingComponent.cpp:(.text+0x98c): undefined reference to `glDisable'
RatingComponent.cpp:(.text+0x994): undefined reference to `glDisable'
../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+0xa94): undefined reference to `glViewport'
Renderer_init_sdlgl.cpp:(.text+0xa9c): undefined reference to `glMatrixMode'
Renderer_init_sdlgl.cpp:(.text+0xac0): undefined reference to `glOrtho'
Renderer_init_sdlgl.cpp:(.text+0xac8): undefined reference to `glMatrixMode'
Renderer_init_sdlgl.cpp:(.text+0xadc): undefined reference to `glClearColor'
../libes-core.a(ComponentGrid.cpp.o): In function `ComponentGrid::render(Eigen::Transform<float, 3, 2, 0> const&)':
ComponentGrid.cpp:(.text+0x14dc): undefined reference to `glEnable'
ComponentGrid.cpp:(.text+0x14e8): undefined reference to `glBlendFunc'
ComponentGrid.cpp:(.text+0x14f0): undefined reference to `glEnableClientState'
ComponentGrid.cpp:(.text+0x14f8): undefined reference to `glEnableClientState'
ComponentGrid.cpp:(.text+0x150c): undefined reference to `glVertexPointer'
ComponentGrid.cpp:(.text+0x1520): undefined reference to `glColorPointer'
ComponentGrid.cpp:(.text+0x153c): undefined reference to `glDrawArrays'
ComponentGrid.cpp:(.text+0x1544): undefined reference to `glDisable'
ComponentGrid.cpp:(.text+0x154c): undefined reference to `glDisableClientState'
ComponentGrid.cpp:(.text+0x1554): undefined reference to `glDisableClientState'
../libes-core.a(ImageComponent.cpp.o): In function `ImageComponent::render(Eigen::Transform<float, 3, 2, 0> const&)':
ImageComponent.cpp:(.text+0x117c): undefined reference to `glEnable'
ImageComponent.cpp:(.text+0x1184): undefined reference to `glEnable'
ImageComponent.cpp:(.text+0x1190): undefined reference to `glBlendFunc'
ImageComponent.cpp:(.text+0x1198): undefined reference to `glEnableClientState'
ImageComponent.cpp:(.text+0x11a0): undefined reference to `glEnableClientState'
ImageComponent.cpp:(.text+0x11a8): undefined reference to `glEnableClientState'
ImageComponent.cpp:(.text+0x11bc): undefined reference to `glVertexPointer'
ImageComponent.cpp:(.text+0x11d0): undefined reference to `glTexCoordPointer'
ImageComponent.cpp:(.text+0x11e4): undefined reference to `glColorPointer'
ImageComponent.cpp:(.text+0x11f4): undefined reference to `glDrawArrays'
ImageComponent.cpp:(.text+0x11fc): undefined reference to `glDisableClientState'
ImageComponent.cpp:(.text+0x1204): undefined reference to `glDisableClientState'
ImageComponent.cpp:(.text+0x120c): undefined reference to `glDisableClientState'
ImageComponent.cpp:(.text+0x1214): undefined reference to `glDisable'
ImageComponent.cpp:(.text+0x121c): undefined reference to `glDisable'
../libes-core.a(NinePatchComponent.cpp.o): In function `NinePatchComponent::render(Eigen::Transform<float, 3, 2, 0> const&)':
NinePatchComponent.cpp:(.text+0xb18): undefined reference to `glEnable'
NinePatchComponent.cpp:(.text+0xb20): undefined reference to `glEnable'
NinePatchComponent.cpp:(.text+0xb2c): undefined reference to `glBlendFunc'
NinePatchComponent.cpp:(.text+0xb34): undefined reference to `glEnableClientState'
NinePatchComponent.cpp:(.text+0xb3c): undefined reference to `glEnableClientState'
NinePatchComponent.cpp:(.text+0xb44): undefined reference to `glEnableClientState'
NinePatchComponent.cpp:(.text+0xb58): undefined reference to `glVertexPointer'
NinePatchComponent.cpp:(.text+0xb70): undefined reference to `glTexCoordPointer'
NinePatchComponent.cpp:(.text+0xb84): undefined reference to `glColorPointer'
NinePatchComponent.cpp:(.text+0xb94): undefined reference to `glDrawArrays'
NinePatchComponent.cpp:(.text+0xb9c): undefined reference to `glDisableClientState'
NinePatchComponent.cpp:(.text+0xba4): undefined reference to `glDisableClientState'
NinePatchComponent.cpp:(.text+0xbac): undefined reference to `glDisableClientState'
NinePatchComponent.cpp:(.text+0xbb4): undefined reference to `glDisable'
NinePatchComponent.cpp:(.text+0xbbc): undefined reference to `glDisable'
../libes-core.a(VideoVlcComponent.cpp.o): In function `VideoVlcComponent::render(Eigen::Transform<float, 3, 2, 0> const&)':
VideoVlcComponent.cpp:(.text+0xda8): undefined reference to `glEnable'
VideoVlcComponent.cpp:(.text+0xdd0): undefined reference to `glEnableClientState'
VideoVlcComponent.cpp:(.text+0xdd8): undefined reference to `glEnableClientState'
VideoVlcComponent.cpp:(.text+0xde0): undefined reference to `glEnableClientState'
VideoVlcComponent.cpp:(.text+0xdf4): undefined reference to `glColorPointer'
VideoVlcComponent.cpp:(.text+0xe08): undefined reference to `glVertexPointer'
VideoVlcComponent.cpp:(.text+0xe1c): undefined reference to `glTexCoordPointer'
VideoVlcComponent.cpp:(.text+0xe2c): undefined reference to `glDrawArrays'
VideoVlcComponent.cpp:(.text+0xe34): undefined reference to `glDisableClientState'
VideoVlcComponent.cpp:(.text+0xe3c): undefined reference to `glDisableClientState'
VideoVlcComponent.cpp:(.text+0xe44): undefined reference to `glDisableClientState'
VideoVlcComponent.cpp:(.text+0xe4c): undefined reference to `glDisable'
../libes-core.a(Font.cpp.o): In function `Font::FontTexture::deinitTexture() [clone .part.17]':
Font.cpp:(.text+0x3c): undefined reference to `glDeleteTextures'
../libes-core.a(Font.cpp.o): In function `Font::FontTexture::initTexture()':
Font.cpp:(.text+0x4c4): undefined reference to `glGenTextures'
Font.cpp:(.text+0x4d0): undefined reference to `glBindTexture'
Font.cpp:(.text+0x4e0): undefined reference to `glTexParameterf'
Font.cpp:(.text+0x4f0): undefined reference to `glTexParameterf'
Font.cpp:(.text+0x500): undefined reference to `glTexParameterf'
Font.cpp:(.text+0x510): undefined reference to `glTexParameterf'
Font.cpp:(.text+0x51c): undefined reference to `glPixelStorei'
Font.cpp:(.text+0x528): undefined reference to `glPixelStorei'
Font.cpp:(.text+0x554): undefined reference to `glTexImage2D'
../libes-core.a(Font.cpp.o): In function `Font::renderTextCache(TextCache*)':
Font.cpp:(.text+0x89c): undefined reference to `glBindTexture'
Font.cpp:(.text+0x8a4): undefined reference to `glEnable'
Font.cpp:(.text+0x8ac): undefined reference to `glEnable'
Font.cpp:(.text+0x8b8): undefined reference to `glBlendFunc'
Font.cpp:(.text+0x8c0): undefined reference to `glEnableClientState'
Font.cpp:(.text+0x8c8): undefined reference to `glEnableClientState'
Font.cpp:(.text+0x8d0): undefined reference to `glEnableClientState'
Font.cpp:(.text+0x8e4): undefined reference to `glVertexPointer'
Font.cpp:(.text+0x8fc): undefined reference to `glTexCoordPointer'
Font.cpp:(.text+0x910): undefined reference to `glColorPointer'
Font.cpp:(.text+0x92c): undefined reference to `glDrawArrays'
Font.cpp:(.text+0x934): undefined reference to `glDisableClientState'
Font.cpp:(.text+0x93c): undefined reference to `glDisableClientState'
Font.cpp:(.text+0x944): undefined reference to `glDisableClientState'
Font.cpp:(.text+0x94c): undefined reference to `glDisable'
Font.cpp:(.text+0x954): undefined reference to `glDisable'
../libes-core.a(Font.cpp.o): In function `Font::rebuildTextures()':
Font.cpp:(.text+0x1bd0): undefined reference to `glBindTexture'
Font.cpp:(.text+0x1bfc): undefined reference to `glTexSubImage2D'
Font.cpp:(.text+0x1c28): undefined reference to `glBindTexture'
../libes-core.a(Font.cpp.o): In function `Font::getGlyph(unsigned long)':
Font.cpp:(.text+0x1f64): undefined reference to `glBindTexture'
Font.cpp:(.text+0x1f94): undefined reference to `glTexSubImage2D'
Font.cpp:(.text+0x1fa0): undefined reference to `glBindTexture'
CMakeFiles/emulationstation.dir/src/main.cpp.o: In function `main':
main.cpp:(.text.startup+0x210): undefined reference to `glGetString'
../libes-core.a(Renderer_draw_gl.cpp.o): In function `Renderer::popClipRect()':
Renderer_draw_gl.cpp:(.text+0xb8): 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+0x334): undefined reference to `glEnable'
Renderer_draw_gl.cpp:(.text+0x344): undefined reference to `glBlendFunc'
Renderer_draw_gl.cpp:(.text+0x34c): undefined reference to `glEnableClientState'
Renderer_draw_gl.cpp:(.text+0x354): undefined reference to `glEnableClientState'
Renderer_draw_gl.cpp:(.text+0x368): undefined reference to `glVertexPointer'
Renderer_draw_gl.cpp:(.text+0x37c): undefined reference to `glColorPointer'
Renderer_draw_gl.cpp:(.text+0x38c): undefined reference to `glDrawArrays'
Renderer_draw_gl.cpp:(.text+0x394): undefined reference to `glDisable'
Renderer_draw_gl.cpp:(.text+0x39c): undefined reference to `glDisableClientState'
Renderer_draw_gl.cpp:(.text+0x3a4): undefined reference to `glDisableClientState'
../libes-core.a(Renderer_draw_gl.cpp.o): In function `Renderer::setMatrix(float*)':
Renderer_draw_gl.cpp:(.text+0x43c): 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+0x440): 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+0x534): undefined reference to `glScissor'
Renderer_draw_gl.cpp:(.text+0x53c): undefined reference to `glEnable'
../libes-core.a(TextureData.cpp.o): In function `TextureData::uploadAndBind()':
TextureData.cpp:(.text+0x94c): undefined reference to `glGetError'
TextureData.cpp:(.text+0x958): undefined reference to `glGenTextures'
TextureData.cpp:(.text+0x964): undefined reference to `glBindTexture'
TextureData.cpp:(.text+0x998): undefined reference to `glTexImage2D'
TextureData.cpp:(.text+0x9a8): undefined reference to `glTexParameteri'
TextureData.cpp:(.text+0x9b8): undefined reference to `glTexParameteri'
TextureData.cpp:(.text+0x9e0): undefined reference to `glTexParameteri'
TextureData.cpp:(.text+0x9f0): undefined reference to `glTexParameteri'
TextureData.cpp:(.text+0x9fc): undefined reference to `glBindTexture'
../libes-core.a(TextureData.cpp.o): In function `TextureData::releaseVRAM()':
TextureData.cpp:(.text+0xad8): undefined reference to `glDeleteTextures'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_CheckFramebufferStatus'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_BindRenderbuffer'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_DeleteFramebuffers'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_set_error'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_RenderbufferStorage'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_state_free'
/opt/vc/lib/libEGL.so: undefined reference to `glPointSizePointerOES'
/opt/vc/lib/libEGL.so: undefined reference to `gl11_client_state_init'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_GetFramebufferAttachmentParameteriv'
/opt/vc/lib/libEGL.so: undefined reference to `glDiscardFramebufferEXT'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_set_error_api'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_IsRenderbuffer'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_buffer_info_set'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_GenerateMipmap'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_FramebufferTexture2D'
/opt/vc/lib/libEGL.so: undefined reference to `glBufferSubData'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_GetRenderbufferParameteriv'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_IsFramebuffer'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_GenRenderbuffers'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_GenFramebuffers'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_FramebufferRenderbuffer'
/opt/vc/lib/libEGL.so: undefined reference to `glintAttribPointer'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_BindFramebuffer'
/opt/vc/lib/libEGL.so: undefined reference to `gl20_client_state_init'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_buffer_info_get'
/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_DeleteRenderbuffers'
collect2: error: ld returned 1 exit status
es-app/CMakeFiles/emulationstation.dir/build.make:1081: 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
Did you do a clean checkout - or removing CMakeCache
for example?
I didn't, but I'll look into that then if it's not happening to others. Thanks.
For now I'll try to wrap up the last things I was working on the previous code branch, and if I have the time I'll look into this.
Thanks. On Tue, 22 Aug 2017 at 19:16 Jools Wills notifications@github.com wrote:
Did you do a clean checkout - removing CMakeCache for example.
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/RetroPie/EmulationStation/issues/219#issuecomment-324109205, or mute the thread https://github.com/notifications/unsubscribe-auth/AVAV7XTdy6L1fSkmpQa6YRg_B0AJU7yZks5saxrjgaJpZM4O-8Jj .
I'm testing now.
BTW are you aware that when you reply to github via email you are quoting the previous message etc - might be worth stripping that when replying.
The current master compiles on Liunx PC. I am also testing on Pi3 now
@pjft Edits are also missed on email
Builds and links fine here on my RPI. I guess you have some old stale/cached makefiles from CMake.
Thanks both, and good reminders on the email. I'll keep both in mind in the future - I use email when on my phone as it's faster.
I'll close this then and I'll look into clearing those caches.
Cheers.
Just to confirm, after removing the CMake temporary files it built everything correctly. Sorry for the trouble.
Best.
Just deleting the CMakeCache.txt works.
I assume it's related to the recent GL changes, but compilation is failing consistently.
OS Version: Linux 4.4.38-v7+ armv7l GNU/Linux
I've reverted to an old branch to test a few code changes I was working on, but wanted to bring this up in case it's something obvious I'm missing, probably a compilation flag or something.
Best.