15:30:42 **** Incremental Build of configuration Debug for project acconeer_example ****
make -j8 all 
arm-none-eabi-gcc -o "acconeer_example.elf" @"objects.list"  -lacconeer -lacc_detector_distance -mcpu=cortex-m4 -T"/home/me/unpack/acconeer_example/STM32F401RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="acconeer_example.map" -Wl,--gc-sections -static -L"/home/me/unpack/acconeer_example/cortex_m4/rss/lib" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
/home/me/unpack/acconeer_example/cortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance.o): In function `setup_detector':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance.c:1213: undefined reference to `acc_service_envelope_get_metadata'
/home/me/unpack/acconeer_example/cortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance.o): In function `acc_detector_distance_configuration_create':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance.c:110: undefined reference to `acc_service_envelope_configuration_create'
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance.c:118: undefined reference to `acc_service_envelope_running_average_factor_set'
/home/me/unpack/acconeer_example/cortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance.o): In function `acc_detector_distance_configuration_destroy':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance.c:148: undefined reference to `acc_service_envelope_configuration_destroy'
/home/me/unpack/acconeer_example/cortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance.o): In function `acc_detector_distance_get_next':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance.c:356: undefined reference to `acc_service_envelope_get_next_by_reference'
/home/me/unpack/acconeer_examplecortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance_processing.o): In function `destroy_handle':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:401: undefined reference to `acc_alg_threshold_cfar_free'
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:390: undefined reference to `acc_alg_threshold_fixed_free'
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:395: undefined reference to `acc_alg_threshold_stationary_clutter_free'
/home/me/unpack/acconeer_example/cortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance_processing.o): In function `acc_detector_distance_processing_create':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:124: undefined reference to `acc_alg_threshold_cfar_threshold_allocate'
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:97: undefined reference to `acc_alg_threshold_fixed_allocate'
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:111: undefined reference to `acc_alg_threshold_stationary_clutter_allocate'
/home/me/unpack/acconeer_example/cortex_m4/rss/lib/libacc_detector_distance.a(acc_detector_distance_processing.o): In function `acc_detector_distance_processing_next':
/home/ai/jenkins/workspace/sw-main@2/acconeer/detector/distance/acc_detector_distance_processing.c:332: undefined reference to `acc_alg_peak_get_peaks'
collect2: error: ld returned 1 exit status
make: *** [makefile:50: acconeer_example.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.


This error means you have added "acc_detector_distance" library after the "acconeer" library. Or you have not added the "acconeer" library.



Resolve by:

If running STM32CubeIDE then this can be solved by going into "Project" -> "Properties" -> "C/C++ Build" -> "Settings" -> "MCU GCC Linker" -> "Libraries" and adding "acc_detector_distance" to the "Libraries" field. Notice that the detectors needs to be linked before the "acconeer" library and need to be above it. Make sure that the "acconeer" library has been added as well.