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

Raspberry Pi build broken? #8050

Closed
slouken opened this issue Jul 27, 2023 · 2 comments · Fixed by #8052
Closed

Raspberry Pi build broken? #8050

slouken opened this issue Jul 27, 2023 · 2 comments · Fixed by #8052
Assignees

Comments

@slouken
Copy link
Collaborator

slouken commented Jul 27, 2023

I'm trying to build on Raspberry Pi, and it's not finding headers I would expect.

For example, I'm trying to build with libusb:

/usr/bin/cc   -D_GNU_SOURCE=1 -o CMakeFiles/cmTC_3cf20.dir/CheckIncludeFile.c.o -c /home/saml/projects/SDL/build-rpi/CMakeFiles/CMakeScratch/TryCompile-Y2whUE/CheckIncludeFile.c
/home/saml/projects/SDL/build-rpi/CMakeFiles/CMakeScratch/TryCompile-Y2whUE/CheckIncludeFile.c:1:20: fatal error: libusb.h: No such file or directory
 #include <libusb.h>

./CMakeCache.txt:PC_LIBUSB_CFLAGS:INTERNAL=-I/usr/include/libusb-1.0
./CMakeCache.txt:PC_LIBUSB_INCLUDE_DIRS:INTERNAL=/usr/include/libusb-1.0
./CMakeCache.txt:PC_LIBUSB_MODULE_NAME:INTERNAL=libusb-1.0
./CMakeCache.txt:PC_LIBUSB_STATIC_CFLAGS:INTERNAL=-I/usr/include/libusb-1.0
./CMakeCache.txt:PC_LIBUSB_STATIC_INCLUDE_DIRS:INTERNAL=/usr/include/libusb-1.0

$ ls /usr/include/libusb-1.0
libusb.h

Also:

-- Found RPi_BcmHost: /opt/vc/lib/libbcm_host.so  
-- Could NOT find RPi_BrcmEGL (missing: RPi_BrcmEGL_EGL_eglext_brcm_h_PATH) 

and I notice that FindRPi_BrcmEGL.cmake sets RPi_BrcmEGL_EGL_eglplatform_h_PATH, not RPi_BrcmEGL_EGL_eglext_brcm_h_PATH.
Where did we get this file and why are we using it instead of what we had before?

@madebr
Copy link
Contributor

madebr commented Jul 27, 2023

The SDL_HIDAPI_LIBUSB error was due to a last-minute fix in my cmake 3.16 pr.

About rpi, I added the find modules to avoid executing a test compile for detecting the platform.
Those find modules were created by me, using https://github.com/raspberrypi/firmware/ as reference.

I created #8052 that should fix both issues. Please test.

@slouken
Copy link
Collaborator Author

slouken commented Jul 28, 2023

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants