我正在遵循this link来交叉编译iw工具。我可以编译libnl, iw, openssl,并在CentOS中安装它们。对于Open SSL,我使用的是./configure Linux-generic32 --prefix=/usr/arm-xilinx/linux-gnueabi,因此它应该安装到该目录。
当我尝试编译hostapd时,我遵循了除make CC=arm-xilinx-linux-gnueabi-gcc之外的确切步骤,并得到了如下结果
../src/crypto/tls_openssl.c:19:25: fatal error: openssl/ssl.h: No such file or directory我认为这应该是由于不知道openssl安装在哪里造成的。那么,对于openssl,我该如何告诉制造商查看/usr/arm-xilinx-linux-gnueabi/include/openssl而不是/usr/include/openssl呢?
发布于 2015-08-24 20:00:23
您可以通过将CFLAGS用于头文件和LDFLAGS用于库来告诉您的Makefile。
make CFLAGS=-I<include/path> LDFLAGS=-L<lib/path>https://stackoverflow.com/questions/31688321
复制相似问题