improved README and comments

This commit is contained in:
2026-03-22 02:11:50 +01:00
parent 818814eec8
commit cb2cc167c9
4 changed files with 73 additions and 27 deletions

64
README.md Normal file
View File

@@ -0,0 +1,64 @@
#REZ_DEMO
##REQUIREMENTS
depends upon
```
libmyGLUT
libmydevicehandler
libwayland-client
libwayland-egl
libGLESv2
libEGL
```
##BUILDING
given
```
YOURARCH={IA64|AARCH64}
```
configure the given variables for building, edit
```
./${YOURARCH}_BUILD/variables.mk
```
to match the linked library locations for your building system
then effectively build with
```
ARCH=${YOURARCH} make
```
and finally give root-like permissions to the executable running
```
# set user as root and "set user id" flag
sudo chown root:root ./${YOURARCH}_BUILD/main.exe
sudo chmod +s ./${YOURARCH}_BUILD/main.exe
```
( running as regular user has no rights for /dev/input/eventXXX , running as root instead breaks other stuff, so we go with owner root and setUID )
##INSTALLING
enable each required linked library
for each libWWW.so.X.Y.Z file run
```
${LIBRARY_LOC}=/usr/lib/x..../ # or something matching your filesystem
ln -s ${LIBRARY_LOC}libWWW.so.X.Y.Z ${LIBRARY_LOC}libWWW.so
ldconfig ${LIBRARY_LOC}
```
##CREDITS
beno
special thanks to [https://gist.github.com/lmarz/1059f7c4101a15e2a04d6991d7b7b3d1](https://gist.github.com/lmarz/1059f7c4101a15e2a04d6991d7b7b3d1)
for providing a minimal example, allowing me to shorten the suffering of skimming through the shitty wayland documentation