Name | Modified | Size | Downloads / Week |
---|---|---|---|
README.rtf | 2013-12-23 | 3.9 kB | |
Totals: 1 Item | 3.9 kB | 0 |
{\rtf1\ansi\ansicpg1252\cocoartf1265 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural \f0\fs24 \cf0 \ /* INSTRUCTIONS FOR SUCCESSFUL COMPILE ON ARM6 (Raspberry Pi) */\ \ \ step 1:\ you will first need to download the main armadillo library source, and extract it into your home directory.\ \ armadillo library source: http://arma.sourceforge.net/download.html#all_platforms\ \ \ step two: \ install cmake:http://www.cmake.org/cmake/resources/software.html\ \ its easier to just launch the command:\ sudo apt-get install cmake\ \ \ follow the instructions below which are also supplied in greater detail within the README.txt file of the armadillo library. \ \ The steps I took were:\ \ \ launching the ./configure in the armadillo folder\ run \ cmake\ run \ make\ run \ make \ \ \ \ README.txt instructions:\ \ === 3.1: Installation on Linux and Mac OS X ===\ \ \ \ You can use the manual installation process as described in\ \ section 3.2, or the following CMake based automatic installation.\ \ \ \ * Step 1:\ \ If CMake is not already be present on your system, download\ \ it from http://www.cmake.org\ \ \ \ On major Linux systems (such as Fedora, Ubuntu, Debian, etc),\ \ cmake is available as a pre-built package, though it may need\ \ to be explicitly installed (using a tool such as PackageKit,\ \ yum, rpm, apt, aptitude).\ \ \ \ * Step 2:\ \ If you have BLAS and/or LAPACK, install them before installing\ \ Armadillo. Under Mac OS X this is not necessary.\ \ \ \ On Linux systems it is recommended that the following libraries\ \ are present: LAPACK, BLAS, ATLAS and Boost. LAPACK and BLAS are\ \ the most important. If you have ATLAS and Boost, it's also necessary\ \ to have the corresponding header files installed.\ \ \ \ For best performance, we recommend using the multi-threaded\ \ OpenBLAS library instead of standard BLAS.\ \ See http://xianyi.github.com/OpenBLAS/\ \ \ \ * Step 3:\ \ Open a shell (command line), change into the directory that was\ \ created by unpacking the armadillo archive, and type the following\ \ commands:\ \ \ \ cmake .\ \ make\ \ \ \ The full stop separated from "cmake" by a space is important.\ \ CMake will figure out what other libraries are currently installed\ \ and will modify Armadillo's configuration correspondingly.\ \ CMake will also generate a run-time armadillo library, which is a\ \ combined alias for all the relevant libraries present on your system\ \ (eg. BLAS, LAPACK and ATLAS).\ \ \ \ If you need to re-run cmake, it's a good idea to first delete the\ \ "CMakeCache.txt" file (not "CMakeLists.txt").\ \ \ \ Caveat: out-of-tree builds are currently not supported; for example,\ \ creating a sub-directory called "build" and running cmake .. from\ \ within "build" is currently not supported.\ \ \ \ * Step 4:\ \ If you have access to root/administrator/superuser privileges,\ \ first enable the privileges (eg. through "su" or "sudo")\ \ and then type the following command:\ \ \ \ make install\ \ \ \ If you don't have root/administrator/superuser privileges,\ \ type the following command:\ \ \ \ make install DESTDIR=my_usr_dir\ \ \ \ where "my_usr_dir" is for storing C++ headers and library files.\ \ Make sure your C++ compiler is configured to use the sub-directories\ \ present within this directory.\ \ \ \ \ }