Porting programs
From Qi
(Redirected from How to port program)
Contents |
[edit] It's running OpenWrt
So you need to go to their website. The highlights are:
- 2.1.2 Creating packages in the manual (note particularly the troubleshooting bits)
- the new wiki's Creating packages page
- the old wiki's page (has more examples, including uclibc++ - not sure if these are out of date)
[edit] A short guide
You'll definitely need to read the above, but the main ideas are:
- get a working build environment (this allows you to build new images and individual ports)
- when you run make menuconfig, select some useful looking unselected package and make it an 'M', and make sure you can compile/install it (look for the output ipkg in bin/xburst/packages, copy to nanonote, then use opkg there):
make package/packagename/compile V=99
- add your own Makefile in the appropriate packages directory, and do the same as the above. Then watch it fail when the original authors haven't really thought about cross-compiling! Fix problems. Keep trying.
- if it says Nothing to be done for `compile'. then maybe the Package/YOURPKG/install section is missing from your Makefile
[edit] openwrt-package
- some nanonote packages not in openwrt are at qi-hardware-packages
- one idea would be to clone this repo and add new ports to it (with appropriate symlinks) for easy pulls
- There are also some guidelines for the Qi openwrt-packages project