11 Comments
author

Just to be sure,

when you are in the directory where the Makefile ist (playground/src) and type $ ls ../../pitrex/pitrex/pitrex/pitrex you get a valid path and see what?

Expand full comment
author

Hi David,

no ,not the Makefile ofg the Pitrex library. You should not touch them at all and it's also not needed for our project. I refer to the Makefile in our project src/Makefile.

Best,

Roger

Expand full comment
author

Hi David,

there is still one issue in the Makefile I mentioned in the newsletter. Depending on where you clone the project the path to the pitrex files mst be changed.

At the top of the Makefile there is a statement ROOT_DIR := ../../pitrex/pitrex/pitrex

Please check if this path is valid for you.

Best, Roger

Expand full comment

Hey Roger, it's David here again. Loving the newsletters - they're brilliant :-). I've just tried to build the Pitrex playground & everything has gone really well right up until the last command (make all). It appears to make everything then gets to a point where it produces a fatal error:

gcc -g -I../../pitrex/pitrex/pitrex -DSETTINGS_DIR="\"/opt/pitrex/settings\"" -DAVOID_TICKS -DPIZERO -DRPI0 -DPITREX -lpthread -lm -o build/rb_pitrex.o -c rb_pitrex.c

rb_pitrex.c:17:10: fatal error: pitrex/pitrexio-gpio.h: No such file or directory

#include <pitrex/pitrexio-gpio.h>

^~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

make: *** [Makefile:87: build/rb_pitrex.o] Error 1

I tried running the "make all " command again but kept getting the above error. I thought maybe it was something I could ignore but when I went to run the final command "./playground". I got this error:

pi@raspberrypi:~/playground/src $ ./playground

-bash: ./playground: No such file or directory

I tried changing directory back to the root & ran the command again but got this message:

pi@raspberrypi:~ $ ./playground

-bash: ./playground: Is a directory

Any ideas? I imagine the fatal error must be the fundamental cause but am unsure as to what I can do to fix it. Many thanks in advance :-)

Expand full comment

Hi Roger! Have you posted setup instructions for Windows yet or have I missed it somewhere? Thanks! -Stefan

Expand full comment