Difference between revisions of "NeTV local compilation"
Line 5: | Line 5: | ||
WARNING -- DO NOT USE THIS PROCEDURE IT HAS NOT BEEN COMPLETELY DEBUGGED. In particular, if the device runs out of space during tool installation you can brick the device. Currently trying to figure out a more robust method for installing the very large package of tools required for development. | WARNING -- DO NOT USE THIS PROCEDURE IT HAS NOT BEEN COMPLETELY DEBUGGED. In particular, if the device runs out of space during tool installation you can brick the device. Currently trying to figure out a more robust method for installing the very large package of tools required for development. | ||
− | == | + | ==Preparing the device== |
First, connect to the network using the NeTV UI. Once you are connected to the network, ssh into the device. | First, connect to the network using the NeTV UI. Once you are connected to the network, ssh into the device. | ||
Line 18: | Line 18: | ||
mount -o remount,rw / | mount -o remount,rw / | ||
− | + | ==Free up space== | |
+ | By default, there is not enough disk space to install the toolchain and all development libraries. Fortunately, there are a lot of unnecessary Qt packages installed. Remove them: | ||
+ | opkg remove qt4-embedded-examples qt4-embedded-assistant qt4-embedded-designer libqt3supporte4 --force-depends | ||
− | + | You can also have a look at the list of installed packages using "opkg list-installed" and pick packages that you don't need. | |
− | + | ||
− | + | ||
+ | ==Getting the compiler installed== | ||
Once you have freed up about 250 MB, you can run | Once you have freed up about 250 MB, you can run | ||
Line 34: | Line 35: | ||
gcc -o hello hello.c | gcc -o hello hello.c | ||
./hello | ./hello | ||
− | + | Hello, world! |
Revision as of 21:03, 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.
WARNING -- DO NOT USE THIS PROCEDURE IT HAS NOT BEEN COMPLETELY DEBUGGED. In particular, if the device runs out of space during tool installation you can brick the device. Currently trying to figure out a more robust method for installing the very large package of tools required for development.
Preparing the device
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 /
Free up space
By default, there is not enough disk space to install the toolchain and all development libraries. Fortunately, there are a lot of unnecessary Qt packages installed. Remove them:
opkg remove qt4-embedded-examples qt4-embedded-assistant qt4-embedded-designer libqt3supporte4 --force-depends
You can also have a look at the list of installed packages using "opkg list-installed" and pick packages that you don't need.
Getting the compiler installed
Once you have freed up about 250 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!