improved README and comments
This commit is contained in:
@@ -2,11 +2,13 @@ export CPP_COMPILER=aarch64-buildroot-linux-gnu-g++
|
||||
|
||||
export BD=${PWD}AARCH64_BUILD/
|
||||
|
||||
# headers are good even if from ARM
|
||||
|
||||
# libraries must point to the right one
|
||||
|
||||
RESOURCES_LOC=${PWD}../../resources/
|
||||
# headers are good even if from ARM
|
||||
# libraries must point to the right one
|
||||
|
||||
# for each libWWW.so.X.Y.Z
|
||||
# ln -s /usr/lib/x..../libWWW.so.X.Y.Z /usr/lib/x..../libWWW.so
|
||||
export WAYLAND_LIBRARIES=${RESOURCES_LOC}libraries/
|
||||
export EGL_LIBRARIES=${RESOURCES_LOC}libraries/
|
||||
|
||||
|
||||
@@ -3,8 +3,11 @@ export CPP_COMPILER=g++
|
||||
export BD=${PWD}IA64_BUILD/
|
||||
|
||||
# headers are good even if from ARM
|
||||
|
||||
# libraries must point to the right one
|
||||
# probably they need to be made current
|
||||
|
||||
# for each libWWW.so.X.Y.Z
|
||||
# ln -s /usr/lib/x..../libWWW.so.X.Y.Z /usr/lib/x..../libWWW.so
|
||||
export WAYLAND_LIBRARIES=/usr/lib/x86_64-linux-gnu/
|
||||
export EGL_LIBRARIES=/usr/lib/x86_64-linux-gnu/
|
||||
|
||||
|
||||
23
README
23
README
@@ -1,23 +0,0 @@
|
||||
THE EXECUTABLE MUST HAVE OWNER root AND "set user id" (chmod +s ) FLAG SET
|
||||
( running as regular user has no rights for /dev/inputXXX , running as root breaks other stuff, so we go with owner root and setUID )
|
||||
|
||||
|
||||
|
||||
|
||||
special thanks to
|
||||
|
||||
https://gist.github.com/lmarz/1059f7c4101a15e2a04d6991d7b7b3d1
|
||||
|
||||
which provided a minimal example, allowing me to shorten the suffering of skimming through the shitty wayland documentation
|
||||
|
||||
|
||||
INSTALL:
|
||||
|
||||
run "./generate_sources.sh"
|
||||
will generate the wayland headers and sources needed by the program
|
||||
the generated files will be in "./wlroot_objects"
|
||||
|
||||
run "make"
|
||||
will imports a bunch of definitions from "external.mk"
|
||||
then will run "./wlroot_objects/Makefile"
|
||||
and finally ends the build process with its own jobs
|
||||
64
README.md
Normal file
64
README.md
Normal 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
|
||||
Reference in New Issue
Block a user