Adding compiling capabilities to your DNS-323
Do away with the grueling task of setting up a cross compile environment just to compile that small application to run on the DNS-343/DNS-323/DNS-313. Or waiting anxiously for somebody to compile that particular software you have been eyeing sooooOOooo long? Native compiling is rather simple if you are using fonz’s fun_plug 0.5.
Well, I supposed you have got ffp 0.5 running on your NAS. Simply download the neccesary packages from here. The packages that you would need to do basic compiling are:
- binutils
- kernel-headers
- uclibc
- gcc
- make
- gettext
- patch
- bison
- flex
- autoconf
- automake
Refer to the website; get the respective package; and install it. Below is an example for installing binutils.
/mnt/HD_a2 # wget http://www.inreto.de/dns323/fun-plug/0.5/packages/binutils-2.18.50.0.1-4.tgz
Connecting to www.inreto.de (217.119.59.48:80)
binutils-2.18.50.0.1 100% |*******************************| 4595k 00:00:00 ETA
/mnt/HD_a2/packages # funpkg -i binutils-2.18.50.0.1-4.tgz
Installing package binutils-2.18.50.0.1-4 …
Repeat for the rest for the packages and try compiling the “Hello World” program!
Create a “test.cpp” with the following content
#include <iostream>
using namespace std;
int main() {
cout << “Hello world” << endl;
return 0;
}
Compile test.cpp using the following command
g++ test.cpp
and executing the binary (a.out)
./a.out
Hello world
Have fun!