User manual
5 Software Development
OMAP3 based Devices Debian 7.0 will be supplied with OMAP3 based devices. It is based on
an arm-linux-gnueabihf 4.7 toolchain. To install this toolchain on your development PC, you’ll
need to add emdebian repository. Add deb http://www.emdebian.org/debian/ unstable main
to your /etc/apt/sources.list. Then execute as root:
apt-get update
apt-get install emdebian-archive-keyring
apt-get install gcc-4.7-arm-linux-gnueabihf g++-4.7-arm-linux-gnueabihf
apt-get install build-essential git debootstrap u-boot-tools
After installation you’ll need to create symlinks for GCC and other tools:
ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.7 /usr/bin/arm-linux-gnueabihf-gcc
ln -s /usr/bin/arm-linux-gnueabihf-gcov-4.7 /usr/bin/arm-linux-gnueabihf-gcov
ln -s /usr/bin/arm-linux-gnueabihf-g++-4.7 /usr/bin/arm-linux-gnueabihf-g++
ln -s /usr/bin/arm-linux-gnueabihf-cpp-4.7 /usr/bin/arm-linux-gnueabihf-cpp
If your software has dependencies on other libraries provided by Debian, it is recommended to use
Debian 7 on your development host. You can get cross-compiled libraries via xapt (see this wiki
38
for more details).
Alternatively you can use Buildroot (refer to Section 10) as your development environment. This
way you can develop applications with various dependencies like Qt, Boost, Gtk etc. directly on
your development host.
5.1.3. Integrated Development Environment
For an Integrated Development Environment (IDE) following programs can be used:
• Eclipse (www.eclipse.org). See Appendix F for installation and configuration notes
• Vim
39
(www.vim.org)
• many more
For ease of creating Makefiles the CMake
40
utility can be used. For that purpose the CMakeLists.txt
file was added to the examples directory. After installing CMake on your OnRISC directly or on
your development host execute:
cd /home/user/examples
cmake .
After that the Makefile is created. This Makefile has the same targets as the original one.
38
https://wiki.debian.org/EmdebianToolchain
39
A good tutorial to start programming with Vim http://heather.cs.ucdavis.edu/~matloff/ProgEdit/ProgEdit.
html
40
www.cmake.org
May 2014 OnRISC User Manual 32