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

CMakeLists.txt not found in project directory #8

Open
Ratchet-tools opened this issue Nov 20, 2020 · 0 comments
Open

CMakeLists.txt not found in project directory #8

Ratchet-tools opened this issue Nov 20, 2020 · 0 comments

Comments

@Ratchet-tools
Copy link

Hello!
recently installed ESP-EDF environment on Win10.
native examples work fine but when downloaded mkfatfs sources and try to run idf.py build command it return below error message
CMakeLists.txt not found in project directory c:\users\kobe\desktop\esp-idf\projects\mkfatfs\esp32_mkfatfs

I tried to create that file simply copy it from hello-world example but it produced another error:

[91/91] Generating binary image from built executable
esptool.py v2.9-dev
Generated C:/Users/kobe/Desktop/esp-idf/projects/mkfatfs/ESP32_mkfatfs/build/bootloader/bootloader.bin
[905/906] Linking CXX executable make-FATfs.elf
FAILED: make-FATfs.elf
cmd.exe /C "cd . && D:\v\Duino\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe  -mlongcalls -Wno-frame-address   @CMakeFiles\make-FATfs.elf.rsp  -o make-FATfs.elf  && cd ."
d:/v/duino/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): undefined reference to `app_main'
d:/v/duino/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj): in function `main_task':
C:/Users/kobe/Desktop/esp-idf/components/esp32/cpu_start.c:551: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

CMakeLists.txt file contains only below lines:

# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(make-FATfs)

Could it be fixed?
Thanks in advance!

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

1 participant