Developing Application For MIPS Debian 8.1 By Cross-compiling and Using IDE
This article proposes an easy way to develop application written in C/C++ for running on MIPS Debian 8.1 platform by cross-compiling in Netbeans IDE environment. The target board is IOT+ board which embedded an Ingenic jz4780 MIPS processor. The host machine is running Ubuntu 14.04 LTE.
Software Requirement On Host Platfrom:
NetBeans 8 IDE with C/C++ Plugins | Dowload here |
Sourcery CodeBench Lite for MIPS GNU/Linux cross-compiler | Dowload here |
Debian 8.1 MIPS image for IOT+ | Dowload here |
Target platform: IOT+ Board
![]() |
Specification:
|
Firstly, on the host platform, dump the Debian 8.1 MIPS image to uSD and insert into the PC on USB port. It should be mounted automatically ,assume it is on
/media/user/rootfs
As a root user, run the following commands to create the symbolic links
$ ln -s /media/user/rootfs/lib/mipsel-linux-gnu /lib $ ln -s /media/user/rootfs/usr/lib/mipsel-linux-gnu /usr/lib
Next uncompressing the Sourcery CodeBench Lite compiler tool chain "mips-2015.11-32-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2" to /opt, assume the destination folder is "mips-2015.11". The absolute installation path will be
/opt/mips-2015.11
The path /media/user/rootfs and /opt/mips-2015.11 will be needed on setting up Netbeans IDE. Now, following below articles on adding Sourcery CodeBench Lite compiler to Netbean IDE and see how to write C/C++ programs for cross-compiling.