- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
Has anybody succeeded (or tried) to cross-compile a basic pcap application for uClinux? AFAIK, it is not already included with uClinux, and needs to be compiled separately, is that also right? Thanks, TurhanLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
pcap as in libpcap/tcpdump/wireshark? libpcap and tcpdump are included in uClinux-dist. I had to update to the latest versions for it to work though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much for your answer Yuri.
How did you cross-compile your code then? Normally I would compile a pcap appliation# gcc main.c -lpcap In order to have it working in uclinux on nios2, I run# nios2-linux-gnu-gcc main.c -lpcap and quite reasonably, I get the error: pcap.h No such file or directory. Any suggestions?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're building outside the uClinux-dist tree, you need to provide the directories where the headers and libraries are with -I and -L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yuri, could you please describe how to compile my own software within the uClinux-dist tree? Everytime I start thinking I am getting literate in Linux, I realize I am far from it.
Thanks.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Michael =)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page