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

Failure to build with espidf 5.x #15

Open
thedeadliestcatch opened this issue Apr 17, 2024 · 2 comments
Open

Failure to build with espidf 5.x #15

thedeadliestcatch opened this issue Apr 17, 2024 · 2 comments

Comments

@thedeadliestcatch
Copy link

Given the following configuration:

$ cat CMakeLists.txt 
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
list(APPEND EXTRA_COMPONENT_DIRS components)

project(blah)

$ ls components/
u8g2  u8g2-hal-esp-idf

The following error occurs:

  CMake Error at components/u8g2/CMakeLists.txt:2 (project):

    project command is not scriptable

It is properly documented in another issue with no resolution.

@FloMaxl
Copy link

FloMaxl commented Apr 20, 2024

Hello, I have the same issue. Where you belt o fix that somehow? Cheers.

@jareddlc
Copy link

I believe I am on 5 and was able to get it to compile. It took me a few steps and i havent quite cleaned up the code, so here is what i did:

  • main project CMakeLists.txt, i needed to add PRIV_REQUIRES:
idf_component_register(SRCS "esp32.cpp"
                    INCLUDE_DIRS "."
                    REQUIRES u8g2
                    PRIV_REQUIRES u8g2_hal_esp_idf)
  • u8g2 components dir, i modified the CMakeLists.txt to match this one

Hope this helps

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