espressif / esp-insights

ESP Insights: A remote diagnostics/observability framework for connected devices
Apache License 2.0
101 stars 27 forks source link

can link #19

Closed haoshijing closed 1 year ago

haoshijing commented 1 year ago

undefined reference to `esp_insights_init'

haoshijing commented 1 year ago

Linking CXX executable xinfengji.elf /Users/mac/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.app_main+0x40): undefined reference to esp_insights_init' /Users/mac/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj): in functionapp_main': /Users/mac/Downloads/baozhi/main/main.c:2730: undefined reference to `esp_insights_init' collect2: error: ld returned 1 exit status make[2]: [xinfengji.elf] Error 1 make[1]: [CMakeFiles/xinfengji.elf.dir/all] Error 2 make: *** [all] Error 2 make failed with exit code 2, output of the command is in the /Users/mac/Downloads/baozhi/build/log/idf_py_stderr_output_51754 and /Users/mac/Downloads/baozhi/build/log/idf_py_stdout_output_51754

vikramdattu commented 1 year ago

Hi @haoshijing can you please enable ESP-Insights via menuconfig? You can do this as follows: idf.py menuconfig > component config > ESP Insights