-
Notifications
You must be signed in to change notification settings - Fork 75
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
The demos do not compile on MacOS with Apple Silicon (ARM) CPU #193
Comments
Hi, just to let you know that I've read the issue and it's been added to a list of TODO items. I don't own a Mac and it might be a bit difficult for me to try replicate, but I'll try. |
@C47D Maybe something I could help you with or some more info I could provide? |
Can you run it with valgrind and provide us the dump here ? |
It looks like valgrind is not currently compatible with mac https://www.reddit.com/r/cs50/comments/meq16w/how_to_get_valgrind_on_macos/ When I try to install valgrind executables it throws with following error:
Do you know any other software that could help? |
Summary
I'm trying to run the demo examples of this project on my MacBook Pro (M1 Pro, macOS Sequoia 15.2) but encounter issues related to SDL2 during compilation, linking, and runtime. Despite following the setup instructions and troubleshooting extensively, I end up with a segmentation fault.
Could you help me identify what's missing in my setup or how to resolve this?
Environment:
Steps to Reproduce
Before running the demo examples I update all git submodules and as stated in the documentation and other issue #35 I install sdl2 for the simulator display to work properly on macOS
When I'm trying to run the demo with the following command
During the lvgl-sys compilation I'm getting an error that SDL2/SDL.h cannot be found
Full output
I noticed that during compilation no include libraries from brew were added which were moved from /usr/include to /opt/homebrew/lib for the arm macOS
And I tried adding this folder with LVGL_INCLUDE.
But I was getting yet another error regarding linux frame buffer
Full output
I changed USE_FBDEV in the lv_drv_conf.h to 0
After running the same command with brew include paths I was still getting now linker errors regarding SDL2
I was able to resolve the linker error by exporting explicitly to the linker and cpp compiler the location of the lib and include folders
But eventually I was still getting seg fault
I would be happy to know what could be done to solve this issue and compile demo example on the mac. Thank you!
The text was updated successfully, but these errors were encountered: