Comments (8)
I fixed this problem by manually cleaning the project folder and adding -G "CodeBlocks - MinGW Makefiles" generator argument to cmake when making the project, since the implicit generator was visual studio one and it basically wanted to build an uncompilable cmake garbage out of the project. idf.py uses ninja generator. I did not try that one.
from homepoint.
Hey, I think there's a hint in there:
Try going to the directory for esp-idf and run git submodule update --init --recursive
, could be that you forgot after checking out that specific commit? At least thats what happens to me occasionally :)
from homepoint.
Wauw, fastest reply ever! Thanks for that...
Tried your suggestion, same error:
rdehuyss@ronald-desktop:~/projects/Personal/m5stack/homepoint/build$ cmake -DM5STACK=ON ../
-- ccache will be used for faster builds
-- Project version: c09760c
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from /home/rdehuyss/.esp/esp-idf/requirements.txt are satisfied.
CMake Error at /home/rdehuyss/.esp/esp-idf/components/esp32/project_include.cmake:11 (message):
Internal error, toolchain has not been set correctly by project (or an
invalid CMakeCache.txt file has been generated somehow)
Call Stack (most recent call first):
/home/rdehuyss/.esp/esp-idf/tools/cmake/build.cmake:284 (include)
/home/rdehuyss/.esp/esp-idf/tools/cmake/build.cmake:449 (__build_process_project_includes)
/home/rdehuyss/.esp/esp-idf/tools/cmake/project.cmake:315 (idf_build_process)
CMakeLists.txt:14 (project)
-- Configuring incomplete, errors occurred!
See also "/home/rdehuyss/projects/Personal/m5stack/homepoint/build/CMakeFiles/CMakeOutput.log".
Current git status output
rdehuyss@ronald-desktop:~/.esp/esp-idf$ git status
HEAD detached at 02f2e6366
Untracked files:
(use "git add <file>..." to include in what will be committed)
components/bt/controller/
components/bt/host/
nothing added to commit but untracked files present (use "git add" to track)
I don't see anything unusual in CMakeOutput.log
(but I must confess that my make/C/C++ skills are very rusty)
from homepoint.
Are you using the new toolchain for ESP-IDF 4.0+ ?
If youre on linux, this might help: https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
from homepoint.
That's the one I used...
On this page, they also mention the 5.2 version : https://docs.espressif.com/projects/esp-idf/en/stable/get-started-cmake/linux-setup.html
😕
And thanks again for the swift replies!
from homepoint.
Weird, you can take a look at https://github.com/sieren/Homepoint/blob/master/.travis.yml and see if you did the same during setup.
from homepoint.
What I just realised looking at your pastes, you didnt clean ESP-IDF when you switched branches/commits. Always run git clean -x -f -f -d
and make sure there are no untracked leftovers (in your case, some components from a prior ESP-IDF commit).
I just merged a new PR that updates HomePoint for the releases/v4.0
branch of ESP-IDF instead of an arbitrary commit.
from homepoint.
@MostEmpire Thank you. Your answer helped me in solving this problem
from homepoint.
Related Issues (20)
- Laggy experience with freezes out of the box m5core2 HOT 2
- feature request for new types: pushbutton, sensorbutton, sensorswitch?
- Documentation question for config.json HOT 1
- AZ Touch Mod 2,8" Display HOT 15
- Problem with the beeper and ArduiTouch HOT 2
- Change Colors HOT 1
- iobroker sonoff mqtt
- sonoff mqtt adapter iobroker HOT 2
- HomePoint HOT 2
- Screen randomly coming on HOT 4
- Wifi password is not applied correctly HOT 1
- Unable to connect to 192.168.99.1 HOT 1
- nested JSON
- can't enter sub menu v7.2
- M5Stack Core2 does not show any files HOT 2
- Upload to ESP32-Wroom HOT 2
- Screensaver options
- Control an ESP32 GPIO via MQTT
- Wrong button getting clicked HOT 1
- how to setup different setTopic/getTopic values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homepoint.