libretro / blastem

Upstream tracking repo of BlastEm, the fast and accurate Genesis emulator, with libretro specific changes
https://www.retrodev.com/blastem/
GNU General Public License v3.0
54 stars 25 forks source link

Build throwing undefined reference `glXGetProcAddressARB` #40

Open afonsof opened 1 year ago

afonsof commented 1 year ago

I'm trying to run the build_release script and it throws the following error in the step blastem:

/usr/bin/ld: <artificial>:(.text+0x81dd): undefined reference to `glBindTexture'
/usr/bin/ld: <artificial>:(.text+0x81ee): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x81ff): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x8213): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x8227): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x8261): undefined reference to `glTexImage2D'
/usr/bin/ld: <artificial>:(.text+0x82b7): undefined reference to `glTexImage2D'
/usr/bin/ld: /tmp/ccoJ3ja0.ltrans0.ltrans.o: in function `gl_teardown':
<artificial>:(.text+0x1f1a): undefined reference to `glDeleteTextures'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x25c): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x27b): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x29a): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x2b9): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x2d8): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x2f7): more undefined references to `glXGetProcAddressARB' follow
/usr/bin/ld: glew/lib/libGLEW.a(glew.o): in function `glxewGetExtension':
glew.c:(.text+0x25d52): undefined reference to `glXGetClientString'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o): in function `glxewInit':
glew.c:(.text+0x25dba): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25e24): undefined reference to `glXQueryVersion'
/usr/bin/ld: glew.c:(.text+0x25e47): undefined reference to `glXGetClientString'
/usr/bin/ld: glew.c:(.text+0x25e94): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25eb3): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25ed2): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25ef1): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25f10): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):glew.c:(.text+0x25f2f): more undefined references to `glXGetProcAddressARB' follow
collect2: error: ld returned 1 exit status
hizzlekizzle commented 1 year ago

That's for the standalone blastem UI, right? If so, we don't really test that here, and there have been quite a few commits upstream since we synced last, so you may wish to check out the main mercurial repo.

afonsof commented 1 year ago

The same problem happens in the code of mercurial repo. Weird behavior. My ubuntu dev environment compiles it successfully. When I try to do it in a fresh installed os, it does not work.