Results 1 to 5 of 5

Thread: C-Source-Code kompilieren

  1. #1

    C-Source-Code kompilieren

    Gibts ein IPKG - Paket mit dem man ein C-Compiler installieren kann.
    Bzw. ne andere möglichkeit C /C++ Source Code zu kompilieren das der läuft?
    Ich würde gerne bischen zwecks "spielen" eigene Programme ausprobieren.

    Hab die Asus WL-HDD mit der neusten darauf funktionierenden Firmware
    (WLHDD-1.9.2.7-7g).

  2. #2
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by Paddy65305 View Post
    Gibts ein IPKG - Paket mit dem man ein C-Compiler installieren kann.
    Bzw. ne andere möglichkeit C /C++ Source Code zu kompilieren das der läuft?
    Ich würde gerne bischen zwecks "spielen" eigene Programme ausprobieren.
    Installiere die letzte FW! http://oleg.wl500g.info/1.9.2.7-9/
    Ob's die WL-HDD schafft, naja jedenfalls gibt's einen C-Compiler.
    Voraussetzung ist aber Installation nach Wengi: http://www.wl500g.info/showthread.php?t=8424
    danach: (Download dauert aber...)
    Code:
    ipkg install optware-devel
    ipkg install buildroot
    dann ein Dir anlegen
    Code:
    mkdir /opt/comptest
    cd /opt/comptest
    touch firstc.c
    vi firstc.c
    mit "i" in den insert mode schalten und eingeben:
    Code:
    #include <stdio.h>
    int main () {
    /*Hello world test for c-compiler*/
    printf("Hallo Asuswelt\n");
    return 0;
    }
    Dann die "ESC" Taste und "SHIFT :" und "wq" "ENTER"
    Jetzt nur noch compilieren:
    Code:
    gcc -Wall firstc.c -ofirstprg
    und das Prgm aufrufen:
    Code:
    ./firstprg
    Geht doch ganz einfach oder nicht?
    Viel Spass am probieren....lass uns auch etwas teilhaben an deinen Erfolgen=Posting
    Last edited by newbiefan; 24-09-2009 at 19:43.
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  3. #3
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Ja, die WL-HDD schafft das auch
    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  4. #4
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    29
    Quote Originally Posted by newbiefan View Post
    Installiere die letzte FW! http://oleg.wl500g.info/1.9.2.7-9/
    Ob's die WL-HDD schafft, naja jedenfalls gibt's einen C-Compiler.
    Voraussetzung ist aber Installation nach Wengi: http://www.wl500g.info/showthread.php?t=8424
    danach: (Download dauert aber...)
    Code:
    ipkg install optware-devel
    ipkg install buildroot
    (...)
    Würde das auchmit kfurge´s FW klappen? (möchte ein ipk-Paket nativ kompilieren)

  5. #5
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    kfurge greift auf das gleiche repository zu.
    Also vermute ich mal: JA.

    Aber Probieren geht über Studieren.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

Similar Threads

  1. [HowTo] Install and configure Oleg's firmware
    By wengi in forum WL-500gP Tutorials
    Replies: 957
    Last Post: 22-02-2013, 22:24
  2. Asus released the source code for 1.9.7.7
    By DemonGloom in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 2
    Last Post: 06-08-2008, 15:15
  3. Asus released the source code for 1.9.7.7
    By dizzyraider in forum WL-500gP Firmware Discussion
    Replies: 2
    Last Post: 06-08-2008, 14:57
  4. WL-500gP source code v1.9.7.2 available
    By wian in forum WL-500gP Firmware Discussion
    Replies: 6
    Last Post: 02-11-2006, 10:49
  5. Optware source code repository moved to svn.nslu2-linux.org
    By rwhitby in forum WL-500g Custom Development
    Replies: 0
    Last Post: 17-06-2006, 23:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •