Build Error for Android 15.0.0_1.0.0 BSP Source

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Error for Android 15.0.0_1.0.0 BSP Source

Jump to solution
2,215 Views
DavidKS
Contributor II

Hi,

I downloaded the Android 15.0.0_1.0.0 (L6.6.52_2.2.0 BSP) source from the NXP site and attempted to build it. However, I encountered the following error while compiling several .cpp files:

 

~/imx-android-15/android_build$ lunch evk_8mp-trunk_staging-userdebug
~/imx-android-15/android_build$ ./imx-make.sh -j11 2>&1
(...)
d3d346dec8/obj/hardware/nxp/wlan/wifi_hal/wifi_hal.o.d -o out/soong/.intermediates/hardware/nxp/wlan/wifi_hal/libwifi-hal-nxp/android_vendor_arm64_armv8-a_cortex-a53_static_cfi/e560d7b19ebf7276b3e850d3d346dec8/obj/hardware/nxp/wlan/wifi_hal/wifi_hal.o hardware/nxp/wlan/wifi_hal/wifi_hal.cpp
In file included from hardware/nxp/wlan/wifi_hal/wifi_hal.cpp:43:
hardware/nxp/wlan/wifi_hal/common.h:22:10: fatal error: 'wifi_hal.h' file not found
   22 | #include "wifi_hal.h"
      |          ^~~~~~~~~~~~
1 error generated.
[  2% 1044/42576] //frameworks/opt/net/wifi/libwifi_system_iface:libwifi-system-iface clang++ interface_tool.cpp
ninja: build stopped: subcommand failed.
09:56:02 ninja failed with: exit status 1

#### failed to build some targets (02:05 (mm:ss)) ####

 

 

* Build Host: Ubuntu Desktop 22.04 LTS

* EVK : i.MX 8M Plus

It seems that the issue is caused by the absence of the wifi_hal.h file in the hardware/nxp/wlan/wifi_hal directory.


Could you please provide guidance on how to resolve this issue?

 

Tags (2)
0 Kudos
Reply
1 Solution
2,199 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

Please follow up the guide - ANDROID_USERS_GUIDE 

Configuration example as below

i.MX 8M Plus EVK board $ lunch evk_8mp-nxp_stable-userdebug

 

Regards

Harvey

View solution in original post

0 Kudos
Reply
2 Replies
2,200 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

Please follow up the guide - ANDROID_USERS_GUIDE 

Configuration example as below

i.MX 8M Plus EVK board $ lunch evk_8mp-nxp_stable-userdebug

 

Regards

Harvey

0 Kudos
Reply
2,134 Views
DavidKS
Contributor II

Hi, Harvey,

 

I followed your instructions, and the build succeeded.

Thanks,

Best regards,

David KS

%3CLINGO-SUB%20id%3D%22lingo-sub-2038252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBuild%20Error%20for%20Android%2015.0.0_1.0.0%20BSP%20Source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2038252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EHi%2C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20downloaded%20the%20Android%2015.0.0_1.0.0%20(L6.6.52_2.2.0%20BSP)%20source%20from%20the%20NXP%20site%20and%20attempted%20to%20build%20it.%20However%2C%20I%20encountered%20the%20following%20error%20while%20compiling%20several%20.cpp%20files%3A%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E~%2Fimx-android-15%2Fandroid_build%24%20lunch%20evk_8mp-trunk_staging-userdebug%0A~%2Fimx-android-15%2Fandroid_build%24%20.%2Fimx-make.sh%20-j11%202%26gt%3B%26amp%3B1%0A(...)%0Ad3d346dec8%2Fobj%2Fhardware%2Fnxp%2Fwlan%2Fwifi_hal%2Fwifi_hal.o.d%20-o%20out%2Fsoong%2F.intermediates%2Fhardware%2Fnxp%2Fwlan%2Fwifi_hal%2Flibwifi-hal-nxp%2Fandroid_vendor_arm64_armv8-a_cortex-a53_static_cfi%2Fe560d7b19ebf7276b3e850d3d346dec8%2Fobj%2Fhardware%2Fnxp%2Fwlan%2Fwifi_hal%2Fwifi_hal.o%20hardware%2Fnxp%2Fwlan%2Fwifi_hal%2Fwifi_hal.cpp%0AIn%20file%20included%20from%20hardware%2Fnxp%2Fwlan%2Fwifi_hal%2Fwifi_hal.cpp%3A43%3A%0Ahardware%2Fnxp%2Fwlan%2Fwifi_hal%2Fcommon.h%3A22%3A10%3A%20fatal%20error%3A%20'wifi_hal.h'%20file%20not%20found%0A%20%20%2022%20%7C%20%23include%20%22wifi_hal.h%22%0A%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%5E~~~~~~~~~~~%0A1%20error%20generated.%0A%5B%20%202%25%201044%2F42576%5D%20%2F%2Fframeworks%2Fopt%2Fnet%2Fwifi%2Flibwifi_system_iface%3Alibwifi-system-iface%20clang%2B%2B%20interface_tool.cpp%0Aninja%3A%20build%20stopped%3A%20subcommand%20failed.%0A09%3A56%3A02%20ninja%20failed%20with%3A%20exit%20status%201%0A%0A%23%23%23%23%20failed%20to%20build%20some%20targets%20(02%3A05%20(mm%3Ass))%20%23%23%23%23%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3E*%20Build%20Host%3A%20Ubuntu%20Desktop%2022.04%20LTS%3C%2FP%3E%3CP%3E*%20EVK%20%3A%20i.MX%208M%20Plus%3C%2FP%3E%3CP%3EIt%20seems%20that%20the%20issue%20is%20caused%20by%20the%20absence%20of%20the%20wifi_hal.h%20file%20in%20the%20hardware%2Fnxp%2Fwlan%2Fwifi_hal%20directory.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ECould%20you%20please%20provide%20guidance%20on%20how%20to%20resolve%20this%20issue%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2042392%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Build%20Error%20for%20Android%2015.0.0_1.0.0%20BSP%20Source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2042392%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20Harvey%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20followed%20your%20instructions%2C%20and%20the%20build%20succeeded.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EDavid%20KS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2038419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Build%20Error%20for%20Android%2015.0.0_1.0.0%20BSP%20Source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2038419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EPlease%20follow%20up%20the%20guide%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FANDROID_USERS_GUIDE.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EANDROID_USERS_GUIDE%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConfiguration%20example%20as%20below%3C%2FP%3E%0A%3CP%3Ei.MX%208M%20Plus%20EVK%20board%20%24%20lunch%20evk_8mp-nxp_stable-userdebug%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%3C%2FLINGO-BODY%3E