1.nl:
mkdir __install
./configure CC=arm-linux-gnueabihf-gcc \
--prefix=$(pwd)/__install \
--host=arm-linux-gnueabihf \
CFLAGS=-I/usr/include
make
make install
2.openssl:
mkdir __install
./config no-asm shared --prefix=$(pwd)/__install \
--cross-compile-prefix=arm-linux-gnueabihf-
make
make install
3.hostapd:
alvin@ubuntu:~/Documents/wifi_ap/hostapd-2.8/hostapd$ git df Makefile
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 6e263c5..f7309a7 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -1,6 +1,4 @@
-ifndef CC
-CC=gcc
-endif
+CC=arm-linux-gnueabihf-gcc
ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
@@ -24,6 +22,9 @@ endif
CFLAGS += $(EXTRA_CFLAGS)
CFLAGS += -I$(abspath ../src)
CFLAGS += -I$(abspath ../src/utils)
+CFLAGS += -I$(abspath ../../openssl-1.0.2r/__install/include)
+LDFLAGS += -L$(abspath ../../openssl-1.0.2r/__install/lib)
+LDFLAGS += -L$(abspath ../../libnl-3.2.25/__install/lib)
Download exporter B? = / usr / local / bin /
make