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
668 stars 151 forks source link

Will not compile for XU4 #412

Open aaron9412 opened 1 year ago

aaron9412 commented 1 year ago

Hi,

My name is Aaron (Just posted on box86 as well). I tried compiling this for the XU4 hoping this would fix an issue with it (and/or improve gameplay after I get steam installed). Compiling failed and I am not sure why. Please see output. Assuming there was an X11 dependency that I didn't see somewhere, I tried installing xorg and openbox. No luck.

Setup: Odroid XU4 (32 bit) Ubuntu Mate ..Not much else installed=

Method: git clone ... gl4es (not the actual code) cd to gl4es mkdir build; cd build; cmake .. -DODROID=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make

Output

mkdir build; cd build; cmake .. -DODROID=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make -- The C compiler identification is GNU 11.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Looking for backtrace -- Looking for backtrace - found -- Configuring done -- Generating done -- Build files have been written to: /home/odroid/gl4es/build [ 1%] Building C object src/CMakeFiles/GL.dir/gl/arbconverter.c.o [ 2%] Building C object src/CMakeFiles/GL.dir/gl/arbgenerator.c.o [ 3%] Building C object src/CMakeFiles/GL.dir/gl/arbhelper.c.o [ 5%] Building C object src/CMakeFiles/GL.dir/gl/arbparser.c.o [ 6%] Building C object src/CMakeFiles/GL.dir/gl/array.c.o In file included from /home/odroid/gl4es/src/gl/attributes.h:130, from /home/odroid/gl4es/src/gl/gles.h:5, from /home/odroid/gl4es/src/gl/buffers.h:6, from /home/odroid/gl4es/src/gl/array.h:4, from /home/odroid/gl4es/src/gl/array.c:1: /home/odroid/gl4es/include/EGL/eglplatform.h:134:10: fatal error: X11/Xlib.h: No such file or directory 134 | #include <X11/Xlib.h> | ^~~~ compilation terminated. make[2]: [src/CMakeFiles/GL.dir/build.make:132: src/CMakeFiles/GL.dir/gl/array.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:98: src/CMakeFiles/GL.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

...tried sudo apt install xorg openbox and re-make.. no luck. Please advise. Thanks for any help. -Aaron

ptitSeb commented 1 year ago

So, it looks like gles-dev dependancies. Not sure the name of the package on the distribution you use. If you are using Mesa/Panfrost for OpenGL, install mesa gles dev. package. If you are using binary blobs gles, I'm not sure but that is probably another package.

aaron9412 commented 1 year ago

Ok that fixed it. Disabled Wayland (by editing /etc/gdm3/custom.conf) - not sure if this was necessary. Installed dev package (sudo apt install libgles2-mesa-dev)

Ran make code (mkdir build; cd build; cmake .. -DODROID=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make) And installed (sudo make install)

Thank you sir