Developing on the NanoNote in C
From Qi-Hardware
Revision as of 05:41, 25 May 2011 by 213.239.211.82 (Talk)
Please check the http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/latest for latest version package
To install the C compiler:
$ rm /usr/bin/strings $ sed -i '/\/usr\/bin\/strings/d' /usr/lib/opkg/info/busybox.list $ opkg update $ opkg install binutils $ cd / $ wget http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/2011-05-22/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
you may want those:
http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/2011-05-22/objdump_2.19.1-3_xburst.ipk http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/2011-05-22/binutils_2.19.1-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.