-
Notifications
You must be signed in to change notification settings - Fork 89
examples refuse to compile (outdated?) #336
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
Comments
Just thought I'd mention we're getting the same issue in conrod's examples. |
This could be an issue with sRGB. @bluecereal Do you have any info about the platform and graphics hardware you're using? |
CPU: AMD FX8350 |
Does the "user_input" or "freetype" example works for you? The piston_window overrides sRGB to true, because it uses gfx_graphics. The "user_input" and "freetype" example uses opengl_graphics. The opengl_graphics also enabled sRGB at the moment, but you might get an different error. |
Could this be a result of rust-windowing/glutin#748 ? Basically glutin requires a GLX_ARB_framebuffer_sRGB or else it will fail to create a context if sRGB was requested. |
I got a different error when trying to compile user_input and freetype. note: /usr/bin/ld: cannot find -lSDL2 |
after installing SDL i get a different error when running freetype or user_input thread ' ' panicked at 'calledResult::unwrap() on an Err value: "SDL error: Could not create GL context"', ../src/libcore/result.rs:688
the examples in the src directory give the same errors theyve given previously |
- by propagating fix from rust-windowing/glutin#748
The original reported issue: "Couldn't find any pixel format that matches the criterias." is fixed with commit 9df6017. I can't reproduce the issue with user_input and free_type locally. |
I built this project today and everything worked. |
I'm experiencing the same issues. Running from ubuntu (bash on windows) via X server. After seeing the second comment in this issue, I tried running the examples for conrod and got the same exact error. |
This pertains only to the "Couldn't find any pixel format that matches the criterias." error. I believe the other errors were caused by dependencies I was missing on my Windows machine. @nicholasguyett maybe this will help :)
|
weird that the default behaviour of the "convenience wrapper" is to crash when forced settings can't be applied, but thanks for the solution/workaround! |
took the fix from PistonDevelopers/piston-examples#336 not sure why this isn't default behaviour now for the runtime errors :)
attempting to cargo run the examples gives the error: thread '< main >' panicked at 'called
Result::unwrap()
on anErr
value: "Couldn't find any pixel format that matches the criterias.i used cargo run --bin 'example_name'. code was cloned via git, so typos aren't the issue. what did i do wrong? are the examples out of date?
The text was updated successfully, but these errors were encountered: