RS9116 n-Link Linux and Android Technical Reference Manual
Version : 2.0
July 2020
139
30 Appendix E: Installation of Missing Generic Netlink Libraries
Create a directory in the location where Tool chain and BSP are present
mkdir build
Download the libnl 3.2.xx.tar.gz\[Referring 3.2.27.tar.gz as an example here \] library and extract it in the build
directory.
cd build
tar xvf
3.2
.
27
.tar.gz
Configure the libnl library for target platfrom
CC=/path to the toochain/bin/arm-linux-gnueabihf-gcc
./configure --host=arm-linux-gnueabihf -prefix=/<complete path to build directory>/
Here headers will be installed in ${prefix}/include/libnl3.
Make and install the libraries in the destination directory or else they will be installed in /usr/local/lib and /usr/
local/include/libnl folders of host machine by default.
Follow the example given below:
make DESTDIR=$(arm-cortex_a8-linux-gnueabihf-gcc -print -/<path to build directory>/build/)
Exporting the path for build directory in the command line or add these flags in the supplicant and hostapd config
files under CONFIG_DRIVER_NL80211= y variable.
#export LDFLAGS=
'-L/<path to build directory>/lib/libnl'
OR
= -I/<path to build directory>/include/libnl3
Ex: LIBS += -L/<path to build directory>/lib/libnl
LIBS : Contains a list of additional libraries to pass to the linker command.
libnl CFlags should be enabled with CONFIG_LIBNL32=y in supplicant and hostpad .config file \[The above
configuration settings should be set to "y" in case NL80211 is used\]. Make sure that the NL80211 support
and Hostapd support are enabled in the menuconfig during compilation.