Air-Mouse icon indicating copy to clipboard operation
Air-Mouse copied to clipboard

Compilation Error

Open hackintoshlover opened this issue 2 years ago • 4 comments

Hi, While trying to compile the code i am getting the error below, would request your help with the same. Executing task: cmake --build . <

[1/6] Performing build step for 'bootloader' [1/1] cmd.exe /C "cd /D C:\Users\a\Downloads\Air-Mouse-master\Air-Mouse-master\build\bootloader\esp-idf\esptool_py && C:\Users\a.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Users/a/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Users/a/Downloads/Air-Mouse-master/Air-Mouse-master/build/bootloader/bootloader.bin" Bootloader binary size 0x62c0 bytes. 0xd40 bytes (12%) free. [2/4] Linking CXX executable SRA_air-mouse.elf FAILED: SRA_air-mouse.elf cmd.exe /C "cd . && C:\Users\a.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\SRA_air-mouse.elf.rsp -o SRA_air-mouse.elf && cd ." c:/users/a/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj):(.literal.main_task+0x14): undefined reference to app_main' c:/users/a/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj): in function main_task': C:/Users/a/esp/esp-idf/components/freertos/port/port_common.c:125: undefined reference to `app_main' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build ." terminated with exit code: 1 Screenshot (15) I am using esp-idf with vscode.

hackintoshlover avatar Jan 28 '22 11:01 hackintoshlover