Adding compiling capabilities to your DNS-323 (1)


    August 19th, 2008 | Tags: , , , | Posted in Guides, Tech

    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!

     

    Treat shadowandy!


    If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  
     






    1 response

    1. [...] | user-saved public links | iLinkShare 2 votesAdding compiling capabilities to your DNS-323>> saved by Madyeti47 1 days ago2 votesMixwittery>> saved by celliott 16 days ago3 votesAudio Islam [...]

       

    Leave a Reply


    Advertisements



    Treat shadowandy!


    If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  


    Categories



    Recent Comments



    Friend's Blog



    Interesting Links



    Previous Postings