21 | | '''NOTE''': Make sure that swman_execs/linux contains (or links to) your waveform binaries compiled for linux. Distributed objects are configured to be installed at /usr/local/bin, therefore, swman_execs/linux should link to that path. |
| 21 | '''NOTE''': Make sure that platform directories under swman_execs contains (or links to) your waveform binaries compiled for linux. If compile from the host machine, objects are installed in /usr/local/bin, therefore, platform's executables directories should point there, i.e.: |
| 22 | * swman_execs/linux --> /usr/local/bin |
| 23 | * swman_execs/linux_64 --> /usr/local/bin |
| 24 | * swman_execs/linux_arm --> /usr/local/bin |
| 25 | |
| 26 | Otherwise, if you do cross-compiling, each directory should link to the binaries for the target architecture, see ALOELinuxGuide#CrossCompilation |
| 27 | |
| 213 | == Cross Compilation == |
| 214 | |
| 215 | In a multi-processor environment where node processors have different architecture than manager, you should either perform cross-compilation from the manager host or copy the binaries from the target machine. To perform cross-compilation you should first obtain a tool-chain for the desired target. For example, to compile for the Marvell's ARM processor with the gnueabi tool-chain, run ./configure with the following arguments: |
| 216 | |
| 217 | {{{ |
| 218 | ac_cv_func_malloc_0_nonnull=yes ./configure --host=arm-none-linux-gnueabi CFLAGS='-march=armv5te' --prefix=/usr/local/arm/ |
| 219 | }}} |
| 220 | |
| 221 | '''NOTE''': Pay attention to the prefix argument. Here you should specify a different directory for every target architecture. Object binaries will be installed there, and that should be the directory where the swman_execs/linux_arm links to, in this case, make sure: |
| 222 | * swman_execs/linux_arm --> /usr/local/arm/bin |
| 223 | |
| 224 | Then you can just recompile your sources and install, do: |
| 225 | |
| 226 | {{{ |
| 227 | make clean |
| 228 | make |
| 229 | sudo make install |
| 230 | }}} |
| 231 | |
| 232 | |
| 233 | |
| 234 | |