Compiling applications

Just about everything about Red Pitaya
Post Reply
dvorakvik
Posts: 16
Joined: Fri Sep 26, 2014 9:21 pm

Compiling applications

Post by dvorakvik » Sun Oct 26, 2014 8:15 am

Hi,
according to the Developer guide I try to compile my first applications.

=Modifying controller C code

=Unlike WEB application part, which is being interpreted, C code needs to be compiled, but =not on the Red Pitaya itself yet, therefore user should edit & cross compile the source code =on his/her host computer and copy the resulting controller.so library to Red Pitaya.
=The procedure:
=Enable Linaro toolchain repository (only required for Ubuntu 10.04 users):
=sudo add-apt-repository ppa:linaro-maintainers/toolchain
=sudo apt-get update
=Install build-essential and ARM cross compiler:
=sudo apt-get install build-essential
=sudo apt-get install gcc-arm-linux-gnueabi
=Get the sources by cloning the Red Pitaya GitHub repository. Navigate to application folder =RedPitaya/Applications/<app_name> and recompile it:
=make CROSS_COMPILE=arm-linux-gnueabi- clean all
=Binary file controller.so in located in the folder (RedPitaya/Applications/<app_name>) where =the source code was compiled.

a. I work on Windows 7 / Cygwin not Ubuntu 10.04
b. Typing "sudo ..." in Cygwin terminal ... => command not found message
c. I have the crosscompiler distribution Version 1.20 crosstool-ng-1.20.00-tar.xc, but I do not know how to install it. I can only decomprime it ....

Please help me ....

Best regards
Viktor

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

Re: Compiling applications

Post by Nils Roos » Sun Oct 26, 2014 1:06 pm

Take a look at the section C code development environment and follow the Windows path.

dvorakvik
Posts: 16
Joined: Fri Sep 26, 2014 9:21 pm

Re: Compiling applications

Post by dvorakvik » Sun Oct 26, 2014 10:32 pm

Hi Nils

Many thanks for your valuable answer.

Viktor

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