When I tried to compile the example I got this:
Code: Select all
CMake Error at CMakeLists.txt:106 (idf_component_register):
Unknown CMake command "idf_component_register".
Thanks
Gastón
Code: Select all
CMake Error at CMakeLists.txt:106 (idf_component_register):
Unknown CMake command "idf_component_register".
Where is the github URL?I downloaded the camera example from github and tried to compile with vscode.
Code: Select all
dependencies:
espressif/esp32-camera:
version: "*"
Code: Select all
idf.py create-project-from-example "espressif/esp32-camera:camera_example"
Code: Select all
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS $(PROJECT_PATH)/../)
#set(COMPONENTS main)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(camera_example)
Code: Select all
$ idf.py create-project-from-example "espressif/esp32-camera:camera_example"
$ cd camera_example/
$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /home/nop/camera_example/build
Executing "ninja all"...
[1/1] cd /home/nop/camera_example/buil...xample/build/bootloader/bootloader.bin
Bootloader binary size 0x6f50 bytes. 0x80b0 bytes (54%) free.
[4/4] cd /home/nop/camera_example/buil...amera_example/build/camera_example.bin
camera_example.bin binary size 0x3d050 bytes. Smallest app partition is 0x100000 bytes. 0xc2fb0 bytes (76%) free.
Project build complete. To flash, run:
idf.py flash
or
idf.py -p PORT flash
or
python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x1000 build/bootloader/bootloader.bin 0x10000 build/partition_table/partition-table.bin 0x20000 build/camera_example.bin
or from the "/home/nop/camera_example/build" directory
python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
If I tried to crate a different folder outside the camera.master, and wanna add this sources files, do I need to add this sources to the CMakeFile right?
Code: Select all
- myProject/
- CMakeLists.txt
- sdkconfig
- components/ - component1/ - CMakeLists.txt
- Kconfig
- src1.c
- component2/ - CMakeLists.txt
- Kconfig
- src1.c
- include/ - component2.h
- main/ - CMakeLists.txt
- src1.c
- src2.c
- build/
I don't use an IDE.which ide did u use with esp32s3?
Users browsing this forum: No registered users and 312 guests