Problems to compile C Examples librp.so

Applications, development tools, FPGA, C, WEB
Post Reply
flash07
Posts: 1
Joined: Wed Nov 04, 2015 12:14 pm

Problems to compile C Examples librp.so

Post by flash07 » Mon Nov 09, 2015 9:53 am

Hi,

i have some problems with the librp.so. At the first time, i could compile everything with no error. Then i tried to write my own little C programm and want to compile it. Now i get always this error with inkompatible librp.so. After this i tried to redo everything and just compile the standard examples. I definitely changed nothing else than add an new .c file.

Here the makefile log:

Code: Select all

~/RedPitaya/Examples/C $ make all

gcc -g -std=gnu99 -Wall -Werror -I../../api/include -L ../../api/lib -lm -lpthread -lrp    digital_led_bar.c   -o digital_led_bar
/usr/bin/ld: Inkompatible ../../api/lib/librp.so wird übersprungen bei der Suche nach -lrp
/usr/bin/ld: cannot find -lrp
collect2: error: ld returned 1 exit status
make: *** [digital_led_bar]

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Problems to compile C Examples librp.so

Post by Nils Roos » Tue Nov 17, 2015 6:52 pm

Are you doing this on the Red Pitaya or on another machine ? I'm asking because if you are on a "normal" PC/Mac you are calling the wrong toolchain (should be arm-linux-gnueabihf-gcc instead of gcc).

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 95 guests