Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error #1

Open
hackintoshlover opened this issue Jan 28, 2022 · 4 comments
Open

Compilation Error #1

hackintoshlover opened this issue Jan 28, 2022 · 4 comments

Comments

@hackintoshlover
Copy link

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.

@gautam-dev-maker
Copy link
Owner

@hackintoshlover which ESP-IDF version are you using?

@hackintoshlover
Copy link
Author

esp-idf 1.2.0
i also tried changing extern "C" void app_main() to void app_main() but does not work

@Hexum064
Copy link

Hexum064 commented Apr 3, 2022

Was there every a solution found to this issue?

@hackintoshlover
Copy link
Author

Was there every a solution found to this issue?
I Wana not able to find any
I just went with airmouse arduino library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants