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

I cant build it #9

Open
jonshouse1 opened this issue Apr 27, 2022 · 2 comments
Open

I cant build it #9

jonshouse1 opened this issue Apr 27, 2022 · 2 comments

Comments

@jonshouse1
Copy link

I struggle with build tools but I am at least following the instructions.

I have a Pico VGA demo board and have built and run the example code so I know at least some of the build environment is ok.

Trying to build b-em.

I have these bash environment variables set, not sure if cmake will pick them up or not.
PICO_SDK_PATH, PICO_EXAMPLES_PATH, PICO_EXTRAS_PATH, PICO_PLAYGROUND_PATH

mkdir pico_build
cd pico_build
cmake with many goes at args

Gives me ...

Building b-em via regular build
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Allegro (missing: ALLEGRO_LIBRARY ALLEGRO_FONT_LIBRARY
  ALLEGRO_IMAGE_LIBRARY ALLEGRO_TTF_LIBRARY ALLEGRO_PRIMITIVES_LIBRARY
  ALLEGRO_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindAllegro.cmake:83 (find_package_handle_standard_args)
  CMakeLists.txt:48 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/jon/b-em/pico_build/CMakeFiles/CMakeOutput.log".

Anyone any ideas? thanks.

@ctw2100
Copy link

ctw2100 commented Jun 26, 2022

missing Allegro library, try this: brew install Allegro

@ArnoldUK
Copy link

ArnoldUK commented Mar 18, 2023

The problem is the main CMakeLists.txt file not finding or setting PICO_ON_DEVICE correctly and defaults to a regular build. Allegro isn't used for a pico build.
Open the CMakeLists.txt and add the following to lines at the top of the file:
cmake_minimum_required(VERSION 3.13)
set(PICO_BUILD 1)
set(PICO_ON_DEVICE 1)
You can also set these defines in the cmake build command line:
cmake -DPICO_BUILD=1 -DPICO_ON_DEVICE=1 -DPICO_BOARD=vgaboard ..

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