Closed rdehuyss closed 4 years ago
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 :)
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)
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
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
:confused:
And thanks again for the swift replies!
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.
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.
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.
@MostEmpire Thank you. Your answer helped me in solving this problem
Hi,
I'm trying to build this project but unfortunately encounter a build issue. I think I have a correct environment (including the correct commit version of ESP-IDF).
This is the output I have:
My system:
Any idea what might be wrong?