amigahid-pico icon indicating copy to clipboard operation
amigahid-pico copied to clipboard

Update pico-sdk to resolve failure to build using cmake 4

Open borb opened this issue 6 months ago • 5 comments

Builds failing with error:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

This relates to the SDK stub which includes build files from the pico-sdk.

borb avatar May 14 '25 22:05 borb

Anyone know how to get around this?

BennehBoy avatar Oct 17 '25 16:10 BennehBoy

@BennehBoy wrote:

Anyone know how to get around this?

Hello,

Yes, I need to fix this quite quickly. I have a development branch for proper USB HID report mode on the mouse (will support mouse wheel, etc). If you pull the containerfile and look at the documentation in the branch for this, you can use the containerfile on the development branch (do not build the devel/mouse_hid_parser, you will lose mouse support). That should give you a functioning build environment.

In future, I'll get tagged versions to produce build artifacts so this shouldn't be a problem.

borb avatar Oct 17 '25 18:10 borb

Forgot the URL: https://github.com/borb/amigahid-pico/tree/devel/mouse_hid_parser/buildenv

borb avatar Oct 17 '25 18:10 borb

Thanks, I don't actually need mouse support anyhow, I just want to build a bare bones USB Keyboard to A2000 adapter.

BennehBoy avatar Oct 17 '25 19:10 BennehBoy

Rather than set up a docker environment I downgraded cmake to the last 3.x release, I was then able to build the development branch. (main fails to link)

BennehBoy avatar Oct 17 '25 19:10 BennehBoy