2025-08-19 3:34 AM
Dear Team
I am currently working on a BLE Mesh implementation. I have added the libraries in the project settings, but I am still getting errors. Please kindly respond.
Description Resource Path Location Type
cannot find -llibBlueNRG_Mesh_CM4-BNRG2A1_wc32_ot.a: No such file or directory ble_mesh_application C/C++ Problem
cannot find -llibSTM32CryptographicV3.0.0_CM4_GCC.a: No such file or directory ble_mesh_application C/C++ Problem
make: *** [makefile:76: ble_mesh_application.elf] Error 1 ble_mesh_application C/C++ Problem
Lighting-STM32_BNRG2A1.elf has a LOAD segment with RWX permissions Lighting-STM32_BNRG2A1 C/C++ Problem
Project 'Lighting-STM32_BNRG2A1' has no explicit encoding set Lighting-STM32_BNRG2A1 /Lighting-STM32_BNRG2A1 No explicit project encoding
2025-08-19 3:43 AM
Hello @Kumar123
You have correctly set the library search paths in your project settings, but to resolve the linker errors, make sure you add only the base names of the libraries—without the `lib` prefix and `.a` extension—in the "Libraries" tab. After updating this setting, clean and rebuild your project. This should enable the linker to locate and use the required libraries, resolving the build errors you are experiencing.
Tab Library Paths:
What to Enter:
`${ProjName}/Middlewares/ST/BlueNRG-2/Lib`
`${ProjName}/Middlewares/ST/ST_Cryptolib`
Tab Libraries
What to Enter:
`BlueNRG_Mesh_CM4-BNRG2A1_wc32_ot`
`STM32CryptographicV3.0.0_CM4_GCC`
I will be waiting for your feedback.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.