Developing on the NanoNote in C
From Qi-Hardware
Please check the firmare downloads for latest version of packages. To install the C compiler and dependencies:
$ opkg update $ cd / $ wget http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/2011-05-28/mpfr_3.0.0_xburst.ipk $ opkg install mpfr_3.0.0_xburst.ipk $ rm mpfr_3.0.0_xburst.ipk $ wget http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/2011-05-28/gcc-mips_4.3.3-3_xburst.ipk $ opkg install gcc-mips_4.3.3-3_xburst.ipk $ rm gcc-mips_4.3.3-3_xburst.ipk
To test that it's working:
$ cd /tmp/
$ cat <<EOF >hello.c
#include <stdio.h>
int main( int argc, char **argv)
{
printf("Hello, World!\n");
}
EOF
$ gcc -o hello hello.c
$ ./hello
Hello, World!
To install a man page viewer:
$ opkg update $ opkg install mandoc $ cd /tmp/ $ wget http://downloads.qi-hardware.com/people/unclouded/man-tiny_20110518-1_xburst.ipk $ opkg install man-tiny_20110518-1_xburst.ipk $ rm man-tiny_20110518-1_xburst.ipk
To install the man pages that document libc:
$ cd /tmp/ $ wget ftp://ftp.debian.org/debian/pool/main/m/manpages/manpages-dev_3.27-1_all.deb $ opkg install manpages-dev_3.27-1_all.deb $ rm manpages-dev_3.27-1_all.deb
Development files for ncurses, SDL and SDL_image are at http://downloads.qi-hardware.com/people/unclouded/.
If you want development files for other libraries, please ask on the mailing list.