How to cross compile hostapd for Xilinx Zynq?

时间:2015-07-28 22:39:03

标签: openssl arm cross-compiling xilinx hostapd

I am following this link to cross compile the iw tools. I can compile libnl, iw, openssl, and installed them in CentOS. For Open SSL, I used ./configure Linux-generic32 --prefix=/usr/arm-xilinx/linux-gnueabi, so it should install to that directory.

When I try to compile hostapd, I followed exact steps except make CC=arm-xilinx-linux-gnueabi-gcc and got this

../src/crypto/tls_openssl.c:19:25: fatal error: openssl/ssl.h: No such file or directory

I think it should be caused by not knowing where is openssl installed to. So how do I tell the make to look at /usr/arm-xilinx-linux-gnueabi/include/openssl instead of /usr/include/openssl for the openssl?

1 个答案:

答案 0 :(得分:0)

您可以通过使用CFLAGS作为头文件和LDFLAGS来告诉Makefile。

make CFLAGS=-I<include/path> LDFLAGS=-L<lib/path>