i already make
Code: Select all
LIBS=-L/root/RedPitaya/api/lib/ -lm -lpthread -lrp
Code: Select all
cd /root/RedPitaya
make api
cd RedPitaya/Test/bode
rw
make bode
LD_LIBRARY_PATH=/opt/redpitaya/lib ./bode
scp bode root@192.168.11.5:/opt/redpitaya/bin/
ro
systemctl stop redpitaya_nginx.service
systemctl start redpitaya_nginxservice
Code: Select all
Failed to start redpitaya_nginxservice.service: Unit redpitaya_nginxservice.service not found.
after that when i run using shell of eclipse using this code
Code: Select all
bode 1 0.5 0 1 1 100000 100000 1
Code: Select all
bode: error while loading shared libraries: librp.so: cannot open shared object file: No such file or directory
that error appears when i put rp init and rp_Release() in inside of int main
Code: Select all
int main(int argc, char *argv[]) { // Initialization of API
if (rp_Init() != RP_OK) {
fprintf(stderr, "Red Pitaya API init failed!\n");
return EXIT_FAILURE;
}
rp_Release();
return 1;
}
}