howto:hexabus_on_rpi
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
hexabus_on_rpi [2013/05/05 23:26] – justinotherguy | howto:hexabus_on_rpi [2013/09/24 04:17] (aktuell) – Page moved from hexabus_on_rpi to howto:hexabus_on_rpi r00t | ||
---|---|---|---|
Zeile 18: | Zeile 18: | ||
=== install development tools === | === install development tools === | ||
< | < | ||
- | apt-get install git cmake clang++ | + | apt-get install git cmake g++ libsqlite3-dev (this will pull cmake-data emacsen-common git-man libcurl3-gnutls liberror-perl libxmlrpc-core-c3 rsync) |
</ | </ | ||
- | === install | + | === install |
< | < | ||
- | apt-get install | + | apt-get install |
</ | </ | ||
- | === install Boost === | + | === warning |
+ | compiling hexabus on a RaspberryPi is actually possible. During the process you do need a considerable amount of RAM - virtual memory is ok. As our beloved RPi only comes along with 256 / 512 MB and you need to provide enough RAM for the peak of some 1000 MB, you should have 1 GB of swap space available. You can do so by simply inserting a usb memory stick into the RPi, create a swap partition, format and activate it: | ||
< | < | ||
- | apt-get install libboost1.49-dev libboost-chrono1.49-dev libboost-chrono1.49.0 libboost-date-time1.49-dev libboost-date-time1.49.0 libboost-filesystem1.49-dev libboost-filesystem1.49.0 libboost-system1.49.0 libboost-system1.49-dev libboost-program-options1.49-dev libboost-program-options1.49.0 libboost-serialization1.49.0 libboost-serialization1.49-dev libboost-test1.49-dev libboost-test1.49.0 libboost-thread-dev libboost-thread1.49-dev libboost-thread1.49.0 | + | cfdisk /dev/<your device name here> #remark: make sure you have the correct one here! |
+ | delete the existing partition (...you are going to loose all data on the stick in this step...) | ||
+ | create a new partition with at least 1 GB of space | ||
+ | set the partition type to " | ||
+ | write the results to the stick and quit cfdisk | ||
+ | mkswap /dev/<your device name here> (e.g.: " | ||
</ | </ | ||
- | === install libklio === | + | === compile and install libklio === |
< | < | ||
cd / | cd / | ||
git clone https:// | git clone https:// | ||
cd libklio | cd libklio | ||
- | make | ||
make release *) | make release *) | ||
+ | dpkg -i build/ | ||
cd .. | cd .. | ||
Zeile 43: | Zeile 49: | ||
make release throws an error at the end because it's unable to find rpmbuild (well...): | make release throws an error at the end because it's unable to find rpmbuild (well...): | ||
[...] | [...] | ||
- | Linking CXX executable algorithmstest | ||
- | / | ||
- | [100%] Built target algorithmstest | ||
- | Run CPack packaging tool... | ||
- | CPack: Create package using STGZ | ||
- | CPack: Install projects | ||
- | CPack: - Run preinstall target for: libklio | ||
- | CPack: - Install project: libklio | ||
- | CPack: Create package | ||
- | CPack: - package: / | ||
- | CPack: Create package using TGZ | ||
- | CPack: Install projects | ||
- | CPack: - Run preinstall target for: libklio | ||
- | CPack: - Install project: libklio | ||
- | CPack: Create package | ||
- | CPack: - package: / | ||
- | CPack: Create package using DEB | ||
- | CPack: Install projects | ||
- | CPack: - Run preinstall target for: libklio | ||
- | CPack: - Install project: libklio | ||
- | CPack: Create package | ||
CPack: - package: / | CPack: - package: / | ||
CPack: Create package using RPM | CPack: Create package using RPM | ||
Zeile 72: | Zeile 57: | ||
CMake Error at / | CMake Error at / | ||
RPM package requires rpmbuild executable | RPM package requires rpmbuild executable | ||
- | |||
CPack Error: Error while execution CPackRPM.cmake | CPack Error: Error while execution CPackRPM.cmake | ||
Zeile 82: | Zeile 66: | ||
</ | </ | ||
- | === install | + | === compile and install |
- | < | + | |
- | dpkg -i build libklio-0.2.0-linux.deb | + | |
- | </ | + | |
- | + | ||
- | === install hexabus | + | |
< | < | ||
git clone https:// | git clone https:// | ||
Zeile 93: | Zeile 72: | ||
git checkout development | git checkout development | ||
cd hostsoftware/ | cd hostsoftware/ | ||
- | make release | + | make release |
dpkg -i build/ | dpkg -i build/ | ||
+ | cd .. | ||
</ | </ | ||
- | === install Hexabus assembler === | + | === compile and install Hexabus assembler === |
< | < | ||
- | cd ../hba | + | cd hba |
- | make release | + | make release |
+ | cd .. | ||
+ | </ | ||
- | output: | + | === compile and install Hexabus |
- | -- The C compiler | + | < |
- | -- The CXX compiler identification is GNU 4.6.3 | + | cd hbc |
- | -- Check for working C compiler: / | + | make release #remark: took some 440 minutes to complete |
- | -- Check for working C compiler: / | + | dpkg -i build/ |
- | -- Detecting C compiler ABI info | + | cd .. |
- | -- Detecting C compiler ABI info - done | + | </ |
- | -- Check for working CXX compiler: | + | |
- | -- Check for working CXX compiler: / | + | |
- | -- Detecting CXX compiler ABI info | + | |
- | -- Detecting CXX compiler ABI info - done | + | |
- | -- Looking for C++ include iostream | + | |
- | -- Looking for C++ include iostream - found | + | |
- | -- Check for STD namespace | + | |
- | -- Check for STD namespace - found | + | |
- | -- Check for ANSI scope | + | |
- | -- Check for ANSI scope - found | + | |
- | -- Check for sstream | + | |
- | -- Check for sstream - found | + | |
- | -- Boost version: 1.49.0 | + | |
- | -- Found the following Boost libraries: | + | |
- | -- | + | |
- | -- | + | |
- | ***** Configuration ***** | + | === compile and install hexinfo === |
- | | + | <code> |
- | boost include: / | + | cd hexinfo |
- | boost program options lib: / | + | make release |
- | boost system lib: / | + | dpkg -i build/ |
- | extended logging: 1 | + | cd .. |
- | -- Configuring done | + | |
- | -- Generating done | + | |
- | -- Build files have been written to: / | + | |
- | Scanning dependencies of target hba | + | |
- | [ 11%] Building CXX object libhba/ | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | make[3]: *** [libhba/ | + | |
- | make[2]: *** [libhba/ | + | |
- | make[1]: *** [all] Error 2 | + | |
- | make: *** [release] Error 2 | + | |
- | + | ||
- | (here' | + | |
- | [ 22%] Building CXX object libhba/ | + | |
- | / | + | |
- | / | + | |
- | /usr/ | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | make[3]: *** [libhba/ | + | |
- | make[2]: *** [libhba/ | + | |
- | make[1]: *** [all] Error 2) | + | |
</ | </ | ||
+ | apt-get install libboost-system1.49.0 libboost-program-options1.49.0 libboost-filesystem1.49.0 libboost-thread1.49.0 | ||
- | hba: 32 min |
howto/hexabus_on_rpi.txt · Zuletzt geändert: 2013/09/24 04:17 von r00t