TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
Libpcap und ncurses übersetzen …

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9265
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 08.06.2011, 11:08    Post subject: Libpcap und ncurses übersetzen … Reply with quote

Hallo Forum.

Uns erreichte vor kurzem die folgende Frage: Für den DNP/9265 nutzen wir die Toolchain von 2007(angstrom-2007.12-r14-armv5te-linux-gnueabi-toolchain). Kann man auch eine aktuellere Version verwenden? Ich versuche gerade ncurses (ncurses_5.4-r10_armv5te.ipk) und pcap (libpcap_1.1.1-r1.6_armv5te.ipk) zu nutzen, war aber bisher nicht erfolgreich. Haben Sie hierzu die nötigen Dateien für den DNP/9265?

Antwort: Auf dem DNP/9265 laufen nur Programme, welche mit der angstrom-2007.12-r14-armv5te-linux-gnueabi-toolchain erstellt wurden. Die libpcap erstellen Sie bitte selber, indem Sie die Toolchain einrichten und dann per configure und make erstellen:

Code:
    TARGET=arm-angstrom-linux-gnueabi
    PREFIX=/usr/local/angstrom/arm
    export PATH=$PATH:$PREFIX/bin
    INSTDIR=$HOME/dnp9265/INSTDIR

    wget http://www.tcpdump.org/release/libpcap-0.9.7.tar.gz
    tar xzf libpcap-0.9.7.tar.gz
    cd libpcap-0.9.7
    CFLAGS="-fpic" \
    ac_cv_linux_vers=2 ./configure \
                --host=$TARGET \
                --prefix=$INSTDIR \
                --with-pcap=linux
    make
    make install


In Ihrem Programm geben Sie dann den Include-Pfad zu genau dieser libpcap an:

Code:
    CFLAGS  = -I$(INSTDIR)/include
    LFLAGS  = -L$(INSTDIR)/lib -lpcap


Bedenken Sie bei Verwendung von Bibliotheken bitte immer, dass Sie diese auch lokal auf dem Entwicklungssystem inklusive der Header-Dateien in der gleichen Version installieren müssen. Man sollte nicht die PC-Header usw. des Entwicklungssystems benutzen. Nach demselben Schema erstellen Sie sich ncurses.

Gruß

KDW
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9265 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015