amigahid-pico
amigahid-pico copied to clipboard
Update pico-sdk to resolve failure to build using cmake 4
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.
Anyone know how to get around this?
@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.
Forgot the URL: https://github.com/borb/amigahid-pico/tree/devel/mouse_hid_parser/buildenv
Thanks, I don't actually need mouse support anyhow, I just want to build a bare bones USB Keyboard to A2000 adapter.
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)