gl4es
gl4es copied to clipboard
[error] when compile
So i want to compile a gl4es to ubuntu 21.04 arm64 and i got this
[ 47%] Building C object src/CMakeFiles/GL.dir/gl/logs.c.o
/root/gl4es/src/gl/logs.c: In function ‘LogFPrintf’:
/root/gl4es/src/gl/logs.c:25:2: warning: format not a string literal and no format arguments [-Wformat-security]
25 | fprintf(fp,log_prefix);
| ^~~~~~~
/root/gl4es/src/gl/logs.c: In function ‘LogPrintf’:
/root/gl4es/src/gl/logs.c:40:2: warning: format not a string literal and no format arguments [-Wformat-security]
40 | printf(log_prefix);
| ^~~~~~
[ 48%] Building C object src/CMakeFiles/GL.dir/gl/matrix.c.o
And because that I got this error
root@localhost:~/gl4es/build# ls
CMakeCache.txt CMakeFiles CTestTestfile.cmake Makefile cmake_install.cmake src
root@localhost:~/gl4es/build# make install
[100%] Built target GL
Install the project...
-- Install configuration: ""
-- Installing: /usr/lib/gl4es/libGL.so.1
-- Set runtime path of "/usr/lib/gl4es/libGL.so.1" to ""
-- Installing: /usr/include/gl4es/gl4esinit.h
-- Installing: /usr/include/gl4es/gl4eshint.h
root@localhost:~/gl4es/build# export LD_LIBRARY_PATH=/usr/lib/gl4es/
root@localhost:~/gl4es/build# vncstart -geometry 1600x720
-bash: vncstart: command not found
root@localhost:~/gl4es/build# vncserver -geometry 1600x720
=================== tail /root/.vnc/localhost.localdomain:5901.log ===================
/usr/bin/Xtigervnc: symbol lookup error: /usr/bin/Xtigervnc: undefined symbol: glGetMinmaxParameteriv
======================================================================================
vncserver: /usr/bin/Xtigervnc exited with status 127, please look into '/root/.vnc/localhost.localdomain:5901.log' to determine the reason! -2
root@localhost:~/gl4es/build# vncserver -list
TigerVNC server sessions:
X DISPLAY # RFB PORT # PROCESS ID SERVER
root@localhost:~/gl4es/build# vncserver
=================== tail /root/.vnc/localhost.localdomain:5901.log ===================
/usr/bin/Xtigervnc: symbol lookup error: /usr/bin/Xtigervnc: undefined symbol: glGetMinmaxParameteriv
======================================================================================
vncserver: /usr/bin/Xtigervnc exited with status 127, please look into '/root/.vnc/localhost.localdomain:5901.log' to determine the reason! -2
root@localhost:~/gl4es/build#
So that please fix this error
Illustrated
@TUNBudi06 the warning is not linked to the error.
The issue is the glGetMinmaxParameteriv(...)
is not implemented in gl4es. It's quite tricky to implement, and rarely used. I'll do some "stub" (empty function that just return "error") later.
@TUNBudi06 peringatan tidak terkait dengan kesalahan. Masalahnya
glGetMinmaxParameteriv(...)
adalah tidak diterapkan di gl4es. Ini cukup sulit untuk diterapkan, dan jarang digunakan. Saya akan melakukan beberapa "rintisan" (fungsi kosong yang baru saja mengembalikan "kesalahan") nanti.
Still :(
If you using Ubuntu in termux just try remove library_path then run the vncserver after that connect again the library path,that my suggestion.
@TUNBudi06 the warning is not linked to the error. The issue is the
glGetMinmaxParameteriv(...)
is not implemented in gl4es. It's quite tricky to implement, and rarely used. I'll do some "stub" (empty function that just return "error") later.
Ahh,well unfortunately i don't know about that😅😅
@TUNBudi06 the warning is not linked to the error. The issue is the
glGetMinmaxParameteriv(...)
is not implemented in gl4es. It's quite tricky to implement, and rarely used. I'll do some "stub" (empty function that just return "error") later.
Ahh,well unfortunately i don't know about that😅😅
@TUNBudi06 the warning is not linked to the error. The issue is the
glGetMinmaxParameteriv(...)
is not implemented in gl4es. It's quite tricky to implement, and rarely used. I'll do some "stub" (empty function that just return "error") later.Ahh,well unfortunately i don't know about that😅😅
doesn't work, any other solution?
Ok, I have finaly added the stub function. Hopefully it doesn't need anything else now.