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

Not able to build repository - Unknown CMake command Include build folder as part of .gitignore #46

Open
jcarranz97 opened this issue Dec 4, 2023 · 1 comment · May be fixed by #47

Comments

@jcarranz97
Copy link

I am getting below error when trying to compile pico-playground repository

$ cmake .. -DBOARD=pico_w
Using PICO_SDK_PATH from environment ('/home/juan/repos/pico-sdk')
PICO_SDK_PATH is /home/juan/repos/pico-sdk
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since not specified.
-- Defaulting build type to 'Release' since not specified.
PICO compiler is pico_arm_gcc
Defaulting PICO_EXTRAS_PATH as sibling of PICO_SDK_PATH: /home/juan/repos/pico-sdk/../pico-extras
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done

...
...
...

Build type is Release
Defaulting PICO target board to pico since not specified.
Using board configuration from /home/juan/repos/pico-sdk/src/boards/include/boards/pico.h
-- Found Python3: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter 
CMake Warning at /home/juan/repos/pico-sdk/src/rp2_common/tinyusb/CMakeLists.txt:10 (message):
  TinyUSB submodule has not been initialized; USB support will be unavailable

  hint: try 'git submodule update --init' from your SDK directory
  (/home/juan/repos/pico-sdk).


CMake Error at tone/christmas_melody/CMakeLists.txt:12 (example_auto_set_url):
  Unknown CMake command "example_auto_set_url".


-- Configuring incomplete, errors occurred!
See also "/home/juan/repos/pico-playground/build/CMakeFiles/CMakeOutput.log".
See also "/home/juan/repos/pico-playground/build/CMakeFiles/CMakeError.log".

$
@jcarranz97
Copy link
Author

I just noticed that this error is showing because I was trying to include an example that was using the example_auto_set_url.

Anyways, I am will be adding the required changes to be able to compile even if the example is using example_auto_set_url

@jcarranz97 jcarranz97 linked a pull request Dec 4, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant