I am trying to run the trigger.c program shared in this post a while back
https://forum.redpitaya.com/viewtopic.php?t=355
(or on github at) https://github.com/Grozomah/trigger
I have a STEMlab 125-14 on which I have installed the latest stable SD card image. I followed the instructions for compiling and running C programs here https://redpitaya.readthedocs.io/en/lat ... .html#comc
However after cloning the RedPitaya repo, going to the Examples/C directory and trying to compile the example script with
Code: Select all
$ make digital_led_blink
Code: Select all
redpitaya/rp.h: No such file or directory found
I found this thread which seems to try to address this issue:
https://forum.redpitaya.com/viewtopic.php?t=1411,
After doing
Code: Select all
$ cd RedPitaya
$ make api
Code: Select all
Install the project...
-- Install configuration: "Release"
-- Installing: /root/RedPitaya/build/lib/librp-hw.so
-- Up-to-date: /root/RedPitaya/build/include
-- Installing: /root/RedPitaya/build/include/rp_hw.h
-- Installing: /root/RedPitaya/build/lib/librp-hw.a
-- Up-to-date: /root/RedPitaya/build/include
-- Up-to-date: /root/RedPitaya/build/include/rp_hw.h
Code: Select all
$ make digitial_led_blink
Code: Select all
cc -g -std=gnu11 -Wall -Werror -I/opt/redpitaya/include -L/opt/redpitaya/lib digital_led_blink.c -static -lrp -lrp-hw -lm -lstdc++ -lpthread -o digital_led_blink
/usr/bin/ld: cannot find -lrp-hw
Code: Select all
gcc -g -std=gnu99 -I/root/RedPitaya/api/include/ -L/root/RedPitaya/api/lib/ -lrp -lm -o digital_led_blink digital_led_blink.c
Code: Select all
fatal error: rp.h: No such file or directory
Any advice for how to properly compile these scripts would be very appreciated! Sorry in advance if the answer is obvious. Hopefully if I learn to compile digital_led_blink.c, then compiling the script I want to run (trigger.c) will be more straight forward. Thank you!