dossakab Posted February 26, 2017 Report Share Posted February 26, 2017 Hello everybody, where i can set framebuffer bitness? I got this error: GDISP Framebuffer: The display is 8 not 32 bits per pixel Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 26, 2017 Report Share Posted February 26, 2017 It's part of the board file of the framebuffer. Have a look at the board file template that you can find in the driver directory (/drivers/gdisp/framebuffer/board_framebuffer_template.h). You might want to get the latest master branch of the µGFX repository to get all the latest framebuffer driver goodness: Link to comment Share on other sites More sharing options...
inmarket Posted February 27, 2017 Report Share Posted February 27, 2017 Although not specified above i am guessing that you are using the linux framebuffer. If so what that message is saying is that GDISP_PIXEL_FORMAT does not match the capabilities of the framebuffer linux driver for your machine. Try changing that macro in your gfxconf.h to match the hardware capabilities. Link to comment Share on other sites More sharing options...
dossakab Posted February 27, 2017 Author Report Share Posted February 27, 2017 So where I can find list of all supported color systems? Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 27, 2017 Report Share Posted February 27, 2017 Here: http://api.ugfx.io/group___colors.html You can add your own color format if you need something specialized. Eg. some people on this forum added color formats with an alpha channel. Link to comment Share on other sites More sharing options...
dossakab Posted February 27, 2017 Author Report Share Posted February 27, 2017 Ok, thanks, I've just launched mandelbrot example, and it works fine. But now I trying another example(bubbles), and I have this message: Linking .build/hello_world /tmp/cci1nNng.ltrans0.ltrans.o: In function `initialize': <artificial>:(.text+0x1b64): undefined reference to `sinf' /tmp/cci1nNng.ltrans0.ltrans.o: In function `matrix': <artificial>:(.text+0x1c22): undefined reference to `sqrt' collect2: error: ld returned 1 exit status ../resources/ugfx/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target '.build/hello_world' failed make: *** [.build/hello_world] Error 1 Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 27, 2017 Report Share Posted February 27, 2017 This is not at all related to your initial problem / the topic of this forum thread. We're happy to help wherever we can but please at least try to figure out what the problem is. Googling the error(s) you're getting would instantly give you results. Furthermore, the demo you're trying to compile even comes with a readme file that explains what to do: In order to run this demo you will have to link against the math libs. You can do this by adding -lm to the LIBS variable in your Makefile: LIBS = -lm Link to comment Share on other sites More sharing options...
dossakab Posted February 27, 2017 Author Report Share Posted February 27, 2017 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now