Page 1 of 1

Compiling applications

Posted: Sun Oct 26, 2014 8:15 am
by dvorakvik
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

Re: Compiling applications

Posted: Sun Oct 26, 2014 1:06 pm
by Nils Roos
Take a look at the section C code development environment and follow the Windows path.

Re: Compiling applications

Posted: Sun Oct 26, 2014 10:32 pm
by dvorakvik
Hi Nils

Many thanks for your valuable answer.

Viktor