I am trying to setup pio but cannot successfully build anything.
I have had issues with CMakeLists.txt
Shown is an error “undefined reference to 'app_main”
I have had issues with missing elf files.
I have read through the getting started guide/installation guide.
I have read espressif idf installation and set up though I haven’t installed the IDF specifically.
So here I am.
What information can I add to enable you to help me?
C:\Users\richa\OneDrive\Documents\ESP\CMakeLists.txt
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.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(project-name)
platformio.ini
; PlatformIO Project Configuration File
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
; Please visit documentation for the other options and examples
; Redirecting...
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
I am grateful for any assistance offered.