Page 1 of 1

Compilation error for tensorflow-mircolite

Posted: Mon Apr 12, 2021 3:01 pm
by juanyi
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

Re: Compilation error for tensorflow-mircolite

Posted: Mon Apr 12, 2021 4:41 pm
by yokonav
Looking at the compilation line my assumption is: it should be -ltensorflow-microlite.

Re: Compilation error for tensorflow-mircolite

Posted: Wed Apr 14, 2021 10:03 am
by juanyi
Thanks, it works. I should have tried your advice first, thanks anyway.