65 lines
1.3 KiB
Markdown
65 lines
1.3 KiB
Markdown
|
|
#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
|