Compilation error for tensorflow-mircolite

Post Reply
juanyi
Posts: 19
Joined: Thu Jan 28, 2021 7:38 am

Got compilation error when linking the libtensorflow-microlite in the config-GCC.mk file. At first I suspect the file name contains "-", replacing it with "_" no luck neither. Need some help.

Code: Select all

make[1]: Entering directory `/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project'
Linking ...
"/usr/share/gcc-arm-none-eabi-9-2020-q2-update/bin//arm-none-eabi-g++" /mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project/output/*.o -mcpu=cortex-m4 -mthumb -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmerge-constants -fomit-frame-pointer -fcrossjumping -fexpensive-optimizations -ftoplevel-reorder -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -gdwarf-4 -T "/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project/quickfeather.ld" -Xlinker --gc-sections -Wall -Werror -Wl,--fatal-warnings -Wl,-Map,"/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project/output/qf_ssi_ai_app_R0.map" --specs=nano.specs --specs=nosys.specs -Wl,--no-wchar-size-warning -o "/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project/output/qf_ssi_ai_app_R0.elf" -L/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project/../../../Libraries/CMSIS/lib/GCC -L/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/knowledgepack/sensiml -lsensiml -lm -larm_cortexM4lf_math -libtensorflow-microlite
/usr/share/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: cannot find -libtensorflow-microlite
collect2: error: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory `/mnt/c/QF/qorc-sdk/qf_apps/qf_ssi_ai_app_R0/GCC_Project'
Of course the model file is inside the knowledgepack directory.
Image
Attachments
Untitled.png
Untitled.png (11.62 KiB) Viewed 13618 times
Last edited by juanyi on Tue Apr 13, 2021 1:09 am, edited 1 time in total.
yokonav
Posts: 2
Joined: Sun Apr 11, 2021 8:36 am

Looking at the compilation line my assumption is: it should be -ltensorflow-microlite.
juanyi
Posts: 19
Joined: Thu Jan 28, 2021 7:38 am

Thanks, it works. I should have tried your advice first, thanks anyway.
Post Reply