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

ESP32 switch_demo build failed #22

Closed
TuocMia opened this issue Mar 12, 2025 · 2 comments
Closed

ESP32 switch_demo build failed #22

TuocMia opened this issue Mar 12, 2025 · 2 comments

Comments

@TuocMia
Copy link

TuocMia commented Mar 12, 2025

Hi,
I'm trying to build switch demo to flash to my esp32 dev board but i have this error:

All done! You can now run:

. /home/tuocmia/tuyaopen/platform/esp32/esp-idf/export.sh

Target esp32 not support
-- ###################################
-- Now is UNIX-like OS's.
-- [TOP] Using framework [base].
CMake Error at platform/esp32/toolchain_file.cmake:1 (if):
if given arguments:

"STREQUAL" "esp32s3"

Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:69 (include)

-- Configuring incomplete, errors occurred!
See also "/home/tuocmia/tuyaopen/apps/tuya_cloud/switch_demo/.build/switch_demo_esp32/CMakeFiles/CMakeOutput.log".
See also "/home/tuocmia/tuyaopen/apps/tuya_cloud/switch_demo/.build/switch_demo_esp32/CMakeFiles/CMakeError.log".
ninja: error: loading 'build.ninja': No such file or directory

Thank you for your assistance!

@iBacklight
Copy link

Hello, I've met the same issue here before. Just delete the origin .build directory and you should be okay with the building.

@KyleDeng
Copy link
Contributor

  1. Delete the directory, $(your_project_dir)/.build

  2. Delete the directory $(opensdk_root)/platform/esp32

  3. Run the tos build command again

@TuocMia TuocMia closed this as completed Mar 19, 2025
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