User Tools

Site Tools


raspi:raspi-dev-en

Differences

This shows you the differences between two versions of the page.


Previous revision
raspi:raspi-dev-en [2022/12/10 18:18] (current) rjversluis
Line 1: Line 1:
 +[[:english|{{  :rocrail-logo-35.png}}]]
 +======RasPi======
 +[[:develop:develop-corner-en|Compile & Build]] -> **[[:develop:develop-corner-en##debian_pios|Debian & PiOS]]**
 + \\
 + \\
 +[[http://raspberrypi.org|{{http://www.raspberrypi.org/wp-content/uploads/2012/03/Raspi_Colour_R.png?50}}]] [[http://raspberrypi.org|“Raspberry Pi" is a trademark of the Raspberry Pi Foundation.]]\\
 +
 + \\ 
 +
 +===== Install pre-build package =====
 +Pre-build packages (daily build) can be found here: 
 +  * https://rocrail.net/software/rocrail-snapshot/
 +
 +====Download====
 +<code>
 +wget https://rocrail.net/software/rocrail-snapshot/rocrail-xxxxx-raspbian-stretch-armhf.deb
 +</code>
 +
 +====Package install====
 +<code>
 +sudo apt install ./rocrail-xxxxx-raspbian-stretch-armhf.deb
 +</code>
 +
 +> Note: the "xxxxx" should be replaced with the wanted revision.\\
 + \\
 +
 +===== Build from source =====
 +==== Get the source ====
 +<code>
 +git clone <repository link>
 +</code>
 + \\
 +
 +==== Make ====
 +<code>
 +cd ~/Rocrail 
 +make fromtar 
 +</code>
 +> Note: Use the ''-j 4'' make option to use all for cores of the Raspberry Pi version 2.\\
 +
 +If wxWidgets is not installed the build process will end at the start of compiling Rocview.\\
 +Just ignore the errors if you are interested in the Rocrail Server only.\\
 +===Update===
 +With the following command the sources can be updated:
 +<code>
 +cd ~/Rocrail 
 +git reset --hard
 +git pull
 +</code>
 +Use the following command to rebuild Rocrail:
 +<code>
 +cd ~/Rocrail 
 +make fromtar
 +</code>
 +Or to rebuild the Rocrail Server only:
 +<code>
 +cd ~/Rocrail 
 +make fromtar server
 +</code>
 +
 +
 +===Install===
 +<code>
 +sudo make install 
 +</code>
 +
 + \\
 +
 +====Optional distribution package====
 +A build can be shared by creating an install package:
 +<code>
 +cd rocrail 
 +./mkdeb.sh wheezy armhf 
 +</code>
 +
 + \\
 +
 +=====Documentation=====
 +  * [[raspi:install:rpi-install-en|Install pre-build package on a RasPi]]\\ 
 +   \\
 +
 +===== Configuration Tips =====
 +Open the RasPi Configuration utility in a terminal:
 +<code>
 +sudo raspi-config
 +</code>
 +====Network & WiFi ====
 +  * http://learn.adafruit.com/downloads/pdf/adafruits-raspberry-pi-lesson-3-network-setup.pdf
 + \\
 +
 +===== Programming Tips =====
 +====Detecting ARM=====
 +<code c>
 +#include <stdio.h>
 +
 +int main() {
 +  #ifdef __arm__
 +  printf("Why yes it is, thank you\n");
 +  #endif
 +  return 0;
 +}
 +</code>
 +
 +
 +