On Tue, Jul 12, 2016 at 12:55 AM, Rohit Kamat rohit_kamat15@yahoo.in wrote:
while I am cross compiling the wpa supplicant with toolchain gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf for hostapd and nl80211 mode enabled in menuconfig I am getting linker message ld:cannot find -lnl -3 (libnl) . I tried to locate the libnl libraries but they are not built in. could you please let me know how to enabled libnl in the toolchain.
The toolchain releases only contain toolchain libraries. For all other system libraries, you need to get them from the OS running on the target system.
If you have a working target machine, then the normal process is to create a sysroot by copying /usr/include, /usr/lib, and /lib from the target system into a dir on the build machine, and then using the gcc --sysroot= option to point at it when compiling.
If you don't havee a working target machine, but you are using a standard OS release like debian or ubuntu, then you can use something like lxc or schroot+debootstrap with qemu to create a target install tree on your build machine, and then create the sysroot.
If you are using a linaro OS release, then you can probably just grab a rootfs tarball, and then use that as your sysroot.
If you are building an OS from scratch, then you will have to build libnl yourself.
Jim