| 24 | 1. Right-click on the project in Eclipse and select "Build Configurations", "Manage..." |
| 25 | 2. Click "New..." and type for the "Name:" input "Debug-ARM825-SIM". Selected "Copy settings from "Existing configuration - Debug-ARM825". Click "OK". |
| 26 | 3. There is now a duplicated build configuration. We will change this configuration to compile for the virtual machine simulation. |
| 27 | 4. Right-click on the project and select "Properties...", Select "Settings". Make sure the "Configuration" is selected as "Debug-ARM825-SIM" and click the "Tool Settings" tab. |
| 28 | 5. Some projects might have "Cross Settings" under "Tool Settings". If so change the "Prefix" from "m68k-uclinux-" to blank "". If the "Cross Settings" is in the project the following steps 6-9 may then be skipped. |
| 29 | 6. Select "GCC C++ Compiler". Change the "Command:" to "g++". This changes the compiler to compile for PC architecture. |
| 30 | 7. Select "GCC C++ Linker". Change the "Command:" to "g++". This changes the linker to link the project for the PC architecture. Linking is the process of combining the already compiled code modules and libraries to create the executable. |
| 31 | 8. In some cases the project may also have a "GCC C Compiler". If so change the command to "gcc". |
| 32 | 9. In some cases the project may also have a "GCC Assembler". If so change the command to "as". |
| 33 | 10. Click "Apply". |
| 34 | 11. Go back to "Tool Settings" and under "GCC C++ Compiler" select "Include paths". Click the green plus icon to add paths. Add the paths "/usr/include/freetype2", "/usr/include/pixman-1" If there is a "GCC C Compiler" section also add these paths to the includes there. |
| 35 | 12. Under the "GCC C++ Linker" select "Libraries". |
| 36 | 13. Under "Library search path". Edit existing library paths as appropriate. For example change "${workspace_loc:/lib825ev/Debug-ARM825}" to "${workspace_loc:/lib825ev/Debug-ARM825-SIM}" |
| 37 | 14. Under "GCC C++ Compiler" select "Preprocessor". Click the green plus icon to add symbols. Add "ARM64=1" and "SIM825=1". These are used for conditional compilation. If there is also a "GCC C Compiler" section select "Preprocessor under that and also add these symbols there. |
| 38 | 15. Click "Apply and Close". |
| 39 | |
| 40 | |