-
Notifications
You must be signed in to change notification settings - Fork 1
Development setup
Lina edited this page Mar 16, 2023
·
3 revisions
A possible workflow is to update the code of WiMoVE and use the script scripts/build_openwrt.sh
to build it. Install the resultig package on an access point. This can be pretty time consuming for many small changes. After following this guide, you can compile WiMoVE directly for your host system. Currently compiling hostapd for your host system is only possible on Linux.
- The build of hostapd has to support vlans. Check this if you encounter issues with your installation.
- Use the sample config in
sample-configs/development/hostapd.conf
. - Replace the placeholder values in the config.
- Create a file
/etc/hostapd/hostapd.vlan
with the content:
* vlan#
- Restart hostapd.
- Clone the repo.
- Install
libnl
,libnl-route
Repo andprometheus-cpp
Repo. The best installation method for those dependencies depends on your platform. For many platforms packages forlibnl
andlibnl-route
might be provided.prometheus-cpp
has to be built according to the README. - Build the project by running
cmake .
followed bymake -j$(nproc)
. - You now have the WiMoVE binary for your architecture.
This binary probably won't work on your access point because it has a different architecture. You have to use cross compiling to get a compatible binary.
Format the source files by running
find src -iname *.h -o -iname *.cpp | xargs clang-format -i