Giter Club home page Giter Club logo

Comments (8)

MostEmpire avatar MostEmpire commented on June 14, 2024 1

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.

sieren avatar sieren commented on June 14, 2024

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.

rdehuyss avatar rdehuyss commented on June 14, 2024

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.

sieren avatar sieren commented on June 14, 2024

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.

rdehuyss avatar rdehuyss commented on June 14, 2024

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.

sieren avatar sieren commented on June 14, 2024

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.

sieren avatar sieren commented on June 14, 2024

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.

Ramzil11 avatar Ramzil11 commented on June 14, 2024

@MostEmpire Thank you. Your answer helped me in solving this problem

from homepoint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.