seemoo-lab / nexmon

The C-based Firmware Patching Framework for Broadcom/Cypress WiFi Chips that enables Monitor Mode, Frame Injection and much more
GNU General Public License v3.0
2.36k stars 448 forks source link

Cannot build utilities #351

Open Fezikk opened 4 years ago

Fezikk commented 4 years ago

I finished building and flashing the firmware onto my Nexus 6p, and am now trying to build & install the utilities. However, when I run make in nexmon/utilities I get the following error:

make -C nexutil/.
make[1]: Entering directory '/home/oliver/nexmon/utilities/nexutil'
cd ../libargp && make
make[2]: Entering directory '/home/oliver/nexmon/utilities/libargp'
/opt/android-ndk-r11c/build/ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21
make[3]: Entering directory '/home/oliver/nexmon/utilities/libargp'
Android NDK: : Cannot find module with tag 'cxx-stl/system' in import path    
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?    
Android NDK: The following directories were searched:    
Android NDK:         
/opt/android-ndk-r11c/build/core/setup-toolchain.mk:213: *** Android NDK: Aborting.    .  Stop.
make[3]: Leaving directory '/home/oliver/nexmon/utilities/libargp'
Makefile:2: recipe for target 'libs/armeabi/libargp.a' failed
make[2]: *** [libs/armeabi/libargp.a] Error 2
make[2]: Leaving directory '/home/oliver/nexmon/utilities/libargp'
Makefile:19: recipe for target '../libargp/local/armeabi/libargp.a' failed
make[1]: *** [../libargp/local/armeabi/libargp.a] Error 2
make[1]: Leaving directory '/home/oliver/nexmon/utilities/nexutil'
Makefile:6: recipe for target 'nexutil/.' failed
make: *** [nexutil/.] Error 2

My NDK version is 11c & I am using Ubuntu 18.04.

Any help or suggestions are greatly appreciated. Thank you

ghost commented 4 years ago

https://stackoverflow.com/questions/26662264/cannot-find-module-with-tag-in-import-path-android-ndk that sames as your issue. the fix, check the ndk directory