kilograham / b-em

An RP2040 and Raspberry Pi 2/3/4/Zero 2 W version of an opensource BBC Micro emulator originally for Win32 and Linux
http://stardot.org.uk/forums/viewtopic.php?f=4&t=10823
GNU General Public License v2.0
91 stars 13 forks source link

I cant build it #9

Open jonshouse1 opened 2 years ago

jonshouse1 commented 2 years ago

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 commented 2 years ago

missing Allegro library, try this: brew install Allegro

ArnoldUK commented 1 year ago

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 ..