TI E2E Community
Cross compile libpcap and tcpdump
I would like to cross compile libpcap and tcpdump. I have tried both cross compiling from source and BitBake/Arago and unfortunately I have not had much success with it either method.
This is the command I execute when I try to cross compile tcpdump.
./configure --target=arm-arago-linux-gnueabi --host=arm-arago-linux-gnueabi --build=i386-linux
When I execute this command, the end result is....
checking Linux kernel version... unknown
configure: error: cannot determine linux version when cross-compiling
What are commands needed to cross-compile libpcap and tcpdump? Any help would be greatly appreciated.
You can try to run it like
ac_cv_linux_vers=2 ./configure --target=arm-arago-linux-gnueabi --host=arm-arago-linux-gnueabi --build=i386-linux
It fixes the problem with "kernel version" for me. But i am using vanilla tcpdump, just from its git.
This is my command:
ac_cv_linux_vers=2 ./configure --host=arm-none-linux-gnueabi
Unfortunately that did not work but thanks anyway. I decided to use Arago/OpenEmbedded and BitBake to create the package.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.