Skip to content

hostapd: compiling instructions

sethismyfriend edited this page Sep 25, 2014 · 1 revision

Here are the steps I took to compile hostapd, a service that allows you to use a wifi card on the Intel Galileo to broadcast a hotspot - so other phones, tablets, and computers can join the hotspot and get a lease.

Hostapd requires libnl which is in version 3.x - but the makefile is looking for version 1.x shared libs. Our solution was to also compile libnl v. 1.1 - and move the shared object files from usr/local/lib to usr/lib. See below for the basic steps.

cd ~
git clone https://github.com/tgraf/libnl-1.1-stable.git
cd libnl-1.1-stable
./configure
make
make install

git clone http://w1.fi/hostap.git
cd hostap/hostapd
cp defconfig .config
make
make install

hostapd

hostapd will execute but will complain that it is missing .so files. I can't remember which ones I moved but I used the "whereis" command to locate the .so objects and copied them into /usr/lib because thats where the libraries were for v.3.x of libnl.

Now it appears to work! We still need to test this to confirm that all libraries are linked.

Clone this wiki locally