gl4es icon indicating copy to clipboard operation
gl4es copied to clipboard

Will not compile for XU4

Open aaron9412 opened this issue 2 years ago • 2 comments

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

aaron9412 avatar Jan 09 '23 02:01 aaron9412

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.

ptitSeb avatar Jan 09 '23 08:01 ptitSeb

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

aaron9412 avatar Jan 09 '23 13:01 aaron9412