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

Does not find the rtc library #2

Open
brorgustav opened this issue Dec 27, 2024 · 1 comment
Open

Does not find the rtc library #2

brorgustav opened this issue Dec 27, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@brorgustav
Copy link

When building i get this error :

[  5%] Building CXX object CMakeFiles/midi2usbhub.dir/preset_manager.cpp.o
In file included from /home/bror/pico/midi2usbhub/preset_manager.cpp:32:
/home/bror/pico/midi2usbhub/lib/rp2040_rtc/rp2040_rtc.h:28:10: fatal error: hardware/rtc.h: No such file or directory
   28 | #include "hardware/rtc.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/midi2usbhub.dir/build.make:90: CMakeFiles/midi2usbhub.dir/preset_manager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1977: CMakeFiles/midi2usbhub.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

How do i resolve this? I did PICO_BOARD=pico_w aswell

@rppicomidi
Copy link
Owner

@brorgustav That file is part of the Pico SDK. As long as you have set the PICO_SDK_PATH environment variable correctly, the system should find it if it is in your filesystem. Can you confirm the file is in your filesystem? For SDK 2.0.0, it should be in ${PICO_SDK_PATH}/src/rp2_common/hardware_rtc/include/hardware/rtc.h.

@rppicomidi rppicomidi added the help wanted Extra attention is needed label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants