Difference between revisions of "NeTV local compilation"
Line 22: | Line 22: | ||
If you do want to retain python, have a look at the list of installed packages using "opkg list-installed" and pick packages that you don't need. | If you do want to retain python, have a look at the list of installed packages using "opkg list-installed" and pick packages that you don't need. | ||
− | Once you have freed up about | + | Once you have freed up about 100 MB, you can run |
opkg install task-sdk-native | opkg install task-sdk-native |
Revision as of 04:37, 7 September 2011
NeTV includes the abilities to download packages that are pre-compiled from the chumby release servers.
To do local development, you will use this facility to install gcc.
Getting the compiler installed
First, connect to the network using the NeTV UI. Once you are connected to the network, ssh into the device.
Now, type the command
opkg update
This will update the list of installable packages.
Before going on, you will need to change / to be writeable. This is done by using
mount -o remount,rw /
In order to install gcc, you will need to first remove some packages to make space. If you aren't planning on using python, that's an easy to remove and fairly large package. You can remove it by doing
opkg remove python-core --force-removal-of-dependent-packages
If you do want to retain python, have a look at the list of installed packages using "opkg list-installed" and pick packages that you don't need.
Once you have freed up about 100 MB, you can run
opkg install task-sdk-native
This process will download all of the files, headers, and executables required to do C development.
Once this process is done, you can now use gcc:
gcc -o hello hello.c ./hello hello world!