-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
imgui on Raspberry pi, brcmGLESv2 error, blank #2822
Comments
Can you check if the code in imgui_impl_opengl3.cpp is compiling for ES2 properly and not for desktop opengl3 ? Look at this block:
And add an Add We could perhaps extra test to automatically enabled ES2 on Raspberry? |
I have checked I am compiling for ES2 , I changed CXXFLAGS to changes I have made to examples/example_sdl_opengl3/Makefile
here is my build output;
|
My changes is here https://github.com/r18nix/imgui/commit/6cb36f0c25d0c1e0e6ed5a7cc375266f411fe08b, plz ignore the changes in examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj. |
My guess is you'll get a better answer asking in Raspberry+OpenGL communities, as it doesn't look like a dear imgui specific problem. Maybe Raspberry's OpenGL needs some kind of initialization? If you find the solution it would be nice to post it here. Also once confirmed that |
thanks advice. I will look for help in Raspberry communities, try to learning and find out what specific initialization(?) is needed on raspberry pi. |
Here is the instructions about how to using broadcom vc Accelerated Open GL ES2 on raspberry pi(<=3). the default sdl2 library did not build with rpi video driver, so you must rebuild sdl.
note, you may change SDL2_CONFIG's value
plus:
reference: |
Amazing explanation, thank you @atmgnd . I would like to open a Wiki page to describe this setup, and maybe the same Wiki page can be devoted to running imgui on small devices, with setup suggestions (disable rounding, borders, anti-aliasing, etc.) |
Hello, I am going to delete the repo metioned above(https://github.com/atmgnd/imgui/tree/rpi). For some reason(reference ...), You can get it by download official imgui https://github.com/ocornut/imgui/archive/892dfb1dea65644b1c6f9882b9c883a837b18369.zip, and apply the patch below. |
I tried to follow the instuctions you listed. I made changes as per the patch. I could get to compile. But when I run using I do not see any window or error. If I do like I also followed the instructions on unmerged branch on imgui repo (Rpi), I get same result. |
@readblack1234, this link may be of help -- getting the very fine hello_imgui boilerplate running on raspberry pi 0,1,2,3 with the original broadcom drivers -- https://github.com/zertyz/hello_imgui_rpi you may look specifically at the patch files and translate them back to the original imgui project -- the patched files are very similar between these two projects. |
@readblack1234 have you tried steps in the pull request #2837? |
Version/Branch of Dear ImGui:
Version: Dear ImGui 1.74 WIP (17301)
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_sdl.cpp imgui_impl_opengl3.cpp
Compiler: gcc 8.3.0
Operating System: Raspbian GNU/Linux 10 (buster)
My Issue/Question:
I want to run sdl + opengl example on raspberry pi zero w, more exactly, I want to use the raspberry pi vc opengles 2.0, I have made some changes to use pi's brcmGLESv2, see (https://github.com/r18nix/imgui/commit/6cb36f0c25d0c1e0e6ed5a7cc375266f411fe08b).
but when I run ./example_sdl_opengl3, it says:
I have tried some other glsl version string, The result is the same.
I'm not familiar with opengl, So what is wrong ? How can I get this working?
My changes are here https://github.com/r18nix/imgui/commit/6cb36f0c25d0c1e0e6ed5a7cc375266f411fe08b
Screenshots/Video
Standalone, minimal, complete and verifiable example:
I have upload my code to the link below
https://github.com/r18nix/imgui/tree/pizero
compile on raspberry pi zero , cd examples/example_sdl_opengl3 && make
The text was updated successfully, but these errors were encountered: