Adding compiling capabilities to your DNS-323


    August 19th, 2008 | Tags: , , ,

    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!


    Share it on del.icio.us




    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 [...]

       

    RSS Feeds



    Treat shadowandy!


    Like to treat shadowandy a cup of Starbucks?

    Polls


    Which is your preferred SOHO networking brand?

    • D-Link (48%, 225 Votes)
    • Linksys (27%, 126 Votes)
    • Cisco (12%, 57 Votes)
    • Netgear (7%, 34 Votes)
    • Buffalo (2%, 9 Votes)
    • TRENDnet (1%, 6 Votes)
    • PCI (1%, 5 Votes)
    • Planex (1%, 3 Votes)

    Total Voters: 465

    Loading ... Loading ...


    Recent Comments



    Friend's Blog



    Interesting Links



    Previous Postings




    Copyright © 2005 - 2008 www.shadowandy.net  93 queries. 0.622 seconds.Go back up ↑