espressif / esp-adf

Espressif Audio Development Framework
Other
1.5k stars 669 forks source link

speech_recognition asr example linking issue (AUD-1821) #401

Closed jun66534 closed 3 years ago

jun66534 commented 4 years ago

The following error occurred while building the example.

/home/ajou/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/ajou/esp/esp-adf/components/esp-sr/lib/libwakenet.a(mfcc_runner_straight.o): in function run_logfbank': /home/sunxiangyu/esp/esp_sr_lib/components/wakenet/mfcc_runner_straight.c:70: undefined reference tocsf_preemphasis_step' /home/ajou/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/sunxiangyu/esp/esp_sr_lib/components/wakenet/mfcc_runner_straight.c:72: undefined reference to csf_logfbank_HTK_step' /home/ajou/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/ajou/esp/esp-adf/components/esp-sr/lib/libwakenet.a(mfcc_runner_straight.o): in functionrun': /home/sunxiangyu/esp/esp_sr_lib/components/wakenet/mfcc_runner_straight.c:60: undefined reference to `csf_mfcc_HTK' collect2: error: ld returned 1 exit status CMakeFiles/speech_recognition_example.elf.dir/build.make:451: recipe for target 'speech_recognition_example.elf' failed make[2]: [speech_recognition_example.elf] Error 1 CMakeFiles/Makefile2:2358: recipe for target 'CMakeFiles/speech_recognition_example.elf.dir/all' failed make[1]: [CMakeFiles/speech_recognition_example.elf.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 make failed with exit code 2

I think there was an error in the linking process because there was a message like below before.

Scanning dependencies of target speech_recognition_example.elf [ 99%] Building C object CMakeFiles/speech_recognition_example.elf.dir/project_elf_src.c.obj [100%] Linking CXX executable speech_recognition_example.elf

Can anyone help me?

espressif-zhanghu commented 4 years ago

@jun66534 what is your IDF id ?

jun66534 commented 4 years ago

@espressif-zhanghu IDF id? I can't guess. I use LyraT Mini v1.1 in menuconfig or maybe this one? 'Bus 002 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light'

espressif-zhanghu commented 4 years ago

@jun66534
you can use git submodule update --init in path (esp-adf). and id is shown in more log.

jalakamkiranadspl commented 2 years ago

I am getting this same issue. Can you please tell me the work around. My esp-idf version is 4.3