Segmentation fault after making librp.so
Posted: Mon Apr 10, 2017 3:40 pm
Hi,
I've been trying to make a new API and a new librp.so file, but I kept receiving "Segmentation fault" error. I then tried to see if the original API files work, so here is what I did:
- I copied the entire git repository to root folder of Red Pitaya
- I ran the command "make api"
- I copied the new librp.so file from api/lib to /opt/redpitaya/lib
- I ran "make digital_led_blink"
- I then ran "./digital_led_blink" but received "Segmentation fault" error
Has anyone else had this problem with the original API, completely unchanged?
I also tried to make the API on a different Ubuntu device and then transfer the librp.so file to Red Pitaya, but I received a different error:
/opt/redpitaya/lib/librp.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'led' failed
make: *** [led] Error 1
Is it something I forgot, or maybe the versions are mismatched (in opt folder, it says it's 0.96)?
Thanks in advance
Matija
I've been trying to make a new API and a new librp.so file, but I kept receiving "Segmentation fault" error. I then tried to see if the original API files work, so here is what I did:
- I copied the entire git repository to root folder of Red Pitaya
- I ran the command "make api"
- I copied the new librp.so file from api/lib to /opt/redpitaya/lib
- I ran "make digital_led_blink"
- I then ran "./digital_led_blink" but received "Segmentation fault" error
Has anyone else had this problem with the original API, completely unchanged?
I also tried to make the API on a different Ubuntu device and then transfer the librp.so file to Red Pitaya, but I received a different error:
/opt/redpitaya/lib/librp.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'led' failed
make: *** [led] Error 1
Is it something I forgot, or maybe the versions are mismatched (in opt folder, it says it's 0.96)?
Thanks in advance
Matija