Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not compile for XU4 #412

Open
aaron9412 opened this issue Jan 9, 2023 · 2 comments
Open

Will not compile for XU4 #412

aaron9412 opened this issue Jan 9, 2023 · 2 comments

Comments

@aaron9412
Copy link

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
Copy link
Owner

ptitSeb commented Jan 9, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants