ld: error: undefined symbol: glGenTextures

This forum is about all development around libVLC.
npuleio
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Nov 2023 16:48

ld: error: undefined symbol: glGenTextures

Postby npuleio » 03 Jan 2024 08:13

Hello everyone!!

After that libva error mentioned in https://forum.videolan.org/viewtopic.php?f=32&t=163830 , I tried to not include libva in compilation but I encounter a linking error on glGenTextures :

Code: Select all

Making all in . make[4]: Entering directory '/home/dev/projects/libvlcjni/vlc/build-android-aarch64-linux-android/modules' CCLD libmediacodec_plugin.la clang-14: warning: argument unused during compilation: '-mbranch-protection=standard' [-Wunused-command-line-argument] ld: error: undefined symbol: glGenTextures >>> referenced by utils.c:980 (../../modules/video_output/android/utils.c:980) >>> libandroid_utils_la-utils.o:(vlc_asurfacetexture_New) in archive ./.libs/libandroid_utils.a ld: error: undefined symbol: glDeleteTextures >>> referenced by utils.c:1059 (../../modules/video_output/android/utils.c:1059) >>> libandroid_utils_la-utils.o:(vlc_asurfacetexture_New) in archive ./.libs/libandroid_utils.a >>> referenced by utils.c:1071 (../../modules/video_output/android/utils.c:1071) >>> libandroid_utils_la-utils.o:(vlc_asurfacetexture_New) in archive ./.libs/libandroid_utils.a clang-14: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: *** [Makefile:21207: libmediacodec_plugin.la] Error 1
is maybe this one related to any missing libraries about textures which I should first do apt install ?
I am asking because I've checked about this glGenTextures and Ubuntu's man tells me this :

Code: Select all

Provided by: opengl-4-man-doc_1.0~svn22917-1_all bug NAME glGenTextures - generate texture names C SPECIFICATION void glGenTextures(GLsizei n, GLuint * textures);
so I've installed some openGL libraries included:

Code: Select all

sudo apt-get install libgl1-mesa-dev mesa-common-dev
and doing

Code: Select all

glxinfo | grep -i opengl
I obtain :

Code: Select all

OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.0.4-0ubuntu1-22.04.1
so it should be found that function...

Thanks in advance!
Cheers

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests