Skip to content

libgl: undefined reference errors when trying to compile on Linux Mint 20.1 #3

@mrgw454

Description

@mrgw454

Hello,

I'm able to successfully compile xgs on my "Buster" based Raspberry Pi, but unable to get it compile on my Linux Mint 20.1 system.

Scanning dependencies of target xgs
[ 97%] Building CXX object CMakeFiles/xgs.dir/emulator/main.cc.o
[100%] Linking CXX executable xgs
/usr/bin/ld: gl/libgl.a(gl.c.o): in function `_impl_glIsVertexArray':
gl.c:(.text+0x17): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: gl/libgl.a(gl.c.o): in function `_impl_glBindVertexArray':
gl.c:(.text+0x49): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: gl/libgl.a(gl.c.o): in function `_impl_glFlushMappedBufferRange':
gl.c:(.text+0x84): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: gl/libgl.a(gl.c.o): in function `_impl_glRenderbufferStorageMultisample':
gl.c:(.text+0xd0): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: gl/libgl.a(gl.c.o): in function `_impl_glGenerateMipmap':
gl.c:(.text+0x113): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: gl/libgl.a(gl.c.o):gl.c:(.text+0x157): more undefined references to `glXGetProcAddressARB' follow
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xgs.dir/build.make:100: xgs] Error 1
make[1]: *** [CMakeFiles/Makefile2:316: CMakeFiles/xgs.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Not sure if this is because of an incompatible GL library. Thanks for any assistance you can provide!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions