notaz
Certified Guru
Since yesterday it is now possible to install working gcc compiler on NAND from OS ipk packages. Yes there is already Code::Blocks on the repo for that purpose, but it's huge (> 1GB), requires mounting the pnd every time you want to compile, has way more stuff in it than some projects need, and what's worst (for me) is that it's compiled against newer libs, meaning you have to carry those libs in a .pnd you release.
With this for ~20MB (or so) you get gcc with main system headers and libs. There is close to 100MB free after reflash, so I think it's pretty reasonable (in case you run from SD, it's not an issue, obviously).
Install commands:
opkg update
opkg upgrade
opkg install gcc-symlinks cpp-symlinks libc6-dev make
opkg install g++-symlinks # only if you need C++
From here, depending on your needs, you can install additional -dev packages, like libz-dev and libsdl-1.2-dev.
The downside is that all this is pretty old stuff from ~2009-2010, so no C++11 for you.. Also, in case you're releasing .pnd, there is a chance something depends on dev packages and pnd won't work for other users.
With this for ~20MB (or so) you get gcc with main system headers and libs. There is close to 100MB free after reflash, so I think it's pretty reasonable (in case you run from SD, it's not an issue, obviously).
Install commands:
opkg update
opkg upgrade
opkg install gcc-symlinks cpp-symlinks libc6-dev make
opkg install g++-symlinks # only if you need C++
From here, depending on your needs, you can install additional -dev packages, like libz-dev and libsdl-1.2-dev.
The downside is that all this is pretty old stuff from ~2009-2010, so no C++11 for you.. Also, in case you're releasing .pnd, there is a chance something depends on dev packages and pnd won't work for other users.