9 | | 7. Select "GCC C++ Compiler". The "Command:" will show "m68k-uclinux-g++". Change this to "aarch64-none-linux-gnu-g++". This changes the compiler to compile for the ARM64 architecture. |
10 | | 8. Select "GCC C++ Linker". The "Command:" will show "m68k-uclinux-g++". Change this to "aarch64-none-linux-gnu-g++". This changes the linker to link the project for the ARM64 architecture. Linking is the process of combining the already compiled code modules and libraries to create the executable. |
11 | | 9. In some cases the project may also have a "GCC C Compiler". If so change the command to "aarch64-none-linux-gnu-gcc". |
12 | | 10. In some cases the project may also have a "GCC Assembler". If so change the command to "aarch64-none-linux-gnu-as". |
13 | | 11. Click the "Build Artifact" tab. Change the output prefix to "/srv/nfs/arm825_nand/apps/". This is where the completed app will be placed. Using this path will make it easy to test from an SSH connection into the 825. The "test825" script will automatically mount and select this path. |
14 | | 12. Click "Apply". |
15 | | 13. Go back to "Tool Settings" and under "GCC C++ Compiler" select "Include paths". Click the green plus icon to add a path. Add the path "/opt/arm64include". If there is a "GCC C Compiler" section also add this path to the includes there. |
16 | | 14. Under the "GCC C++ Linker" select "Libraries". Add the libraries "rt", "${UI_LIBS}" and "pthread". |
17 | | 15. Under "Library search path". Edit existing library paths as appropriate. For example change "${workspace_loc:/lib825ev/Debug}" to "${workspace_loc:/lib825ev/Debug-ARM825}" |
18 | | 16. Click the green plus icon and add the library path "/opt/arm64lib" |
19 | | 17. Under "GCC C++ Compiler" select "Preprocessor". Click the green plus icon to add the symbol "ARM64=1" This is used for conditional compilation. If there is also a "GCC C Compiler" section select "Preprocessor under that and also add the symbol "ARM64=1". |
20 | | 18. Click "Apply and Close". |
21 | | 19. It is also recommended to create a "Release" build. Repeat the steps above from step 3, except name the build configuration "Release-ARM825" and copy the configuration from the "Release" build configuration. For the "Library search path" standard libraries change them to "Release-ARM825" |
| 9 | 7. Some projects might have "Cross Settings" under "Tool Settings". If so change the "Prefix" from "m68k-uclinux-" to "aarch-none-linux-gnu-" (Be the to not leave out the final minus sign). If the "Cross Settings" is in the project the following steps 8-11 may then be skipped. |
| 10 | 8. Select "GCC C++ Compiler". The "Command:" will show "m68k-uclinux-g++". Change this to "aarch64-none-linux-gnu-g++". This changes the compiler to compile for the ARM64 architecture. |
| 11 | 9. Select "GCC C++ Linker". The "Command:" will show "m68k-uclinux-g++". Change this to "aarch64-none-linux-gnu-g++". This changes the linker to link the project for the ARM64 architecture. Linking is the process of combining the already compiled code modules and libraries to create the executable. |
| 12 | 10. In some cases the project may also have a "GCC C Compiler". If so change the command to "aarch64-none-linux-gnu-gcc". |
| 13 | 11. In some cases the project may also have a "GCC Assembler". If so change the command to "aarch64-none-linux-gnu-as". |
| 14 | 12. Click the "Build Artifact" tab. Change the output prefix to "/srv/nfs/arm825_nand/apps/". This is where the completed app will be placed. Using this path will make it easy to test from an SSH connection into the 825. The "test825" script will automatically mount and select this path. |
| 15 | 13. Click "Apply". |
| 16 | 14. Go back to "Tool Settings" and under "GCC C++ Compiler" select "Include paths". Click the green plus icon to add a path. Add the path "/opt/arm64include". If there is a "GCC C Compiler" section also add this path to the includes there. |
| 17 | 15. Under the "GCC C++ Linker" select "Libraries". Add the libraries "rt", "${UI_LIBS}" and "pthread". |
| 18 | 16. Under "Library search path". Edit existing library paths as appropriate. For example change "${workspace_loc:/lib825ev/Debug}" to "${workspace_loc:/lib825ev/Debug-ARM825}" |
| 19 | 17. Click the green plus icon and add the library path "/opt/arm64lib" |
| 20 | 18. Under "GCC C++ Compiler" select "Preprocessor". Click the green plus icon to add the symbol "ARM64=1" This is used for conditional compilation. If there is also a "GCC C Compiler" section select "Preprocessor under that and also add the symbol "ARM64=1". |
| 21 | 19. Click "Apply and Close". |
| 22 | 20. It is also recommended to create a "Release" build. Repeat the steps above from step 3, except name the build configuration "Release-ARM825" and copy the configuration from the "Release" build configuration. For the "Library search path" standard libraries change them to "Release-ARM825" |