Hi
Sorry to hear of your troubles.
I pressume you install libpcap under ubuntu...
Well that means that you install the x86 version of the library.
The cross-tool need to link with the arm version of the library.
I've never done this so this is pure guess work:
(And I'm using TS-7800)
option 1:
install libpcap on the TS-7200
Then copy the library files from libpcap .so and .a into the cross-tool
directories on your linux machine.
(I'm not 100% sure where this should go. My guess is in the /lib folder
or /arm-none-linux-gnueabi/lib or /arm-none-linux-gnueabi/libc/lib)
option 2:
download the arm version of the libpcap library for ubuntu. exstract it
with dpkg and copy that into the cross-tool
Good luck and let us know if you have success :)
nasim751 wrote:
>
> hello,
> I wanna to execute program from AMD 2.6 kernel ubuntu desktop on ARM
> processor 2.4 kernel on ts-7200 used
> (croostool-linux-gcc-4.0.1-glibc-2.3.5.tar.bz2). I got this tools from
> embeddedarm.Like HELLO.C program execute successfully but when want to
> execute my project program (I used library libpcap) can't find libpcap
> library.
> My problem like this
>
> :/home/nasim/Desktop/linux-desktop/ppro#
> arm-unknown-linux-gnu-gcc -o snifx snifx.c -lpcap
> snifx.c: In function 'got_packet':
> snifx.c:486: warning: pointer targets in assignment differ in signedness
> snifx.c:497: warning: pointer targets in passing argument 1 of
> 'print_payload' differ in signedness
> /opt/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/ld:
> cannot find -lpcap
>
> For overcome this problem used different version of libpcap library
> and croos compiler but problem is in right place. I am really tried.
> If any one know. please help me.
> Regards
> Ahmed
> collect2: ld returned 1 exit status
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|