RPv0.95 compile example web-app make problem

Applications, development tools, FPGA, C, WEB
Post Reply
berndj
Posts: 12
Joined: Thu Nov 12, 2015 3:32 pm

RPv0.95 compile example web-app make problem

Post by berndj » Thu Jan 05, 2017 10:07 am

Hi,

I am trying to get the example from http://redpitaya.readthedocs.io/en/late ... stApp.html running.
I get the following error message:

Code: Select all

redpitaya> make INSTALL_DIR=/opt/redpitaya
make -C src
make[1]: Entering directory '/opt/redpitaya/www/apps/myFirstApp/src'
g++ main.o -o ../controllerhf.so -shared -Wall -fPIC -Os -s -L/opt/redpitaya/lib -L/opt/redpitaya/rp_sdk -Wl,--whole-archive,--no-as-needed -lcryptopp -lrpapp -lrp -lrp_sdk -Wl,--no-whole-archive
/usr/bin/ld: cannot find -lcryptopp
/usr/bin/ld: cannot find -lrp_sdk
collect2: error: ld returned 1 exit status
Makefile:35: recipe for target 'make_c_app' failed
make[1]: *** [make_c_app] Error 1
make[1]: Leaving directory '/opt/redpitaya/www/apps/myFirstApp/src'
Makefile:24: recipe for target 'controllerhf.so' failed
make: *** [controllerhf.so] Error 2
I don't have nay library called "*rp_sdk*" on the system and the only crypto is in /usr/lib, which is not on the Lib path (and if added it doesn't work neither).

To me it seems I need to compile these library but I am missing how to do this...

Code: Select all

redpitaya> more /opt/redpitaya/version.txt
##############################################################################
# Red Pitaya GNU/Linux Ecosystem
# Version: 0.95
# Branch: master_oldkernel_release095
# Build: 1
# Commit: 6deb25343be65ef284c2b28f5f0ab1569d73a46b
##############################################################################
Please let me know if you need any further information...

Thx
B

berndj
Posts: 12
Joined: Thu Nov 12, 2015 3:32 pm

Re: RPv0.95 compile example web-app make problem

Post by berndj » Thu Jan 05, 2017 4:20 pm

I got it to compile:

I had to install a few packages (libcurl4-gnutls-dev, build-essential libssl-dev libffi-dev python-dev, libcrypto++-dev, libboost-all-dev). Not sure that really all of them are needed, but it works with them...

Then I compiled everything that I downloaded using git using make all.

Then I had to update the include and libs statements in the makefile ....

B

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

Re: RPv0.95 compile example web-app make problem

Post by Nils Roos » Thu Jan 05, 2017 9:56 pm

Thanks for sharing your solution!
Just as a side-note: I am not sure whether the "Creating first app" instructions are meant to be used on a 0.95 version.

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 82 guests