ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
702 stars 159 forks source link

[error] when compile #343

Open TUNBudi06 opened 3 years ago

TUNBudi06 commented 3 years ago

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

8260514303 commented 2 years ago

Illustrated

ptitSeb commented 2 years ago

@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.

HilmiRidho commented 2 years ago

@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 :(

TheUnknownName06 commented 2 years ago

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.

TheUnknownName06 commented 2 years ago

@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😅😅

TheUnknownName06 commented 2 years ago

@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😅😅

HilmiRidho commented 2 years ago

@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?

ptitSeb commented 1 year ago

Ok, I have finaly added the stub function. Hopefully it doesn't need anything else now.