Fix for Raspberry Pi 4 build #1870
srgarg
started this conversation in
Contributing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While DearPyGui builds on Raspberry Pi 4 just fine, trying to run an executable will throw Glfw Error 65543: GLX: Failed to create context as mentioned in Issue #580. I believe the issue is that Rpi4 VideoCore6 GPU only supports either OpenGL 2 or OpenGL ES. Currently DearPyGui is creating a OpenGL 3 context. Therefore, slight DearPyGui source modification is needed to use the OpenGL ES context. (ocornut's imgui example_glfw_opengl3 is used as reference to make the changes below)
First steps. use rpi-update to obtain RPi specific VideoCore libs. This downloads the libGLESv2 needed below.
More info: https://www.raspberrypi.com/documentation/computers/os.html#rpi-update
Modify the following files in src folder as below:
mvLinuxSpecifics.h
mvGraphics_linux.cpp, Line 12
mvViewport_linux.cpp, Line 151
mvUtilities_linux.cpp, not sure if this change is needed, but I did it this way
distribution.cmake & embedded.cmake
$python3 setup.py install
to build and install DearPyGui on Raspberry Pi 4. You should have working executables after this!Note: Despite this fix, texture loading does not work. I think it is because of GL3W use. GL3W is utility lib compatible with OpenGL 3 only. Significant changes will need to be made to source beyond my ability for this
Note: Did not test on Rpi 3 and below
Hope this helps someone
Beta Was this translation helpful? Give feedback.
All reactions