-
Notifications
You must be signed in to change notification settings - Fork 73
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
Can this crate work with gtk ? #103
Comments
Hi! |
Yeah, it looks I am one of the first to try.
|
Thanks for working together on this as it is one of the scenarios I am also
interested in, especially under OpenWRT (x86)
…On Sun, Apr 30, 2023, 2:16 PM Lieven ***@***.***> wrote:
Yeah, it looks I am one of the first to try.
Compiling succeeds with
'''
export DEP_LV_CONFIG_PATH=pwd
export
LVGL_INCLUDE=/usr/include/gtk-3.0,/usr/include,/usr/local/include,/usr/include/glib-2.0
export
LVGL_INCLUDE=$LVGL_INCLUDE,/usr/lib/x86_64-linux-gnu/glib-2.0/include,/usr/include/pango-1.0
export
LVGL_INCLUDE=$LVGL_INCLUDE,/usr/include/harfbuzz,/usr/include/cairo,/usr/include/gdk-pixbuf-2.0,/usr/include/atk-1.0,/usr/include/freetype2
export
LVGL_LINK=gtk-3,gdk-3,pangocairo-1.0,pango-1.0,harfbuzz,atk-1.0,cairo-gobject,cairo,gdk_pixbuf-2.0,gio-2.0,gobject-2.0,glib-2.0
export LIBCLANG_PATH=$(llvm-config --libdir)
cargo run
'''
—
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPWAWWMD66G6FQWOSFJMH3XD23BJANCNFSM6AAAAAAXRAZHL4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Now stuck at setting the color_depth correct . In GTK linux this is 32 bit, bu the crate doesnùt adapt when chaning this in lv_conf.h
Compiler error
Additionl challenge, my sample creates the buffer on stack, so I got a LInux stack overflow with this code
|
Thanks! This should be configured automatically once #82 is merged.
I think I know the issue here. I'll merge a fix tomorrow and give you a ping.
This is a known issue with creating large |
@nia-e great ! Thanks for the swift feedback. Looking forward to the evolution. |
Guessing that's the result of the horribly broken color depth? Still, glad to see GTK (almost) working :D |
Ah, forgot to add - the bottom text is configurable in |
The buffer does live on the heap; the issue is just that on creation, it is (briefly) allocated on the stack. The relevant code is here. Feel free to suggest fixes, but the buffer-related code is probably the most radioactive code in this entire project so be warned |
Hi @vortex314, |
Perfect! The patch should be on master now |
Thanks for the fast update. Just for future reference I simplified build by using .cargo/config.toml
|
Looks fine now, Thanks for the help. |
Re: the stack overflow mentioned in this issue; it should be fixed as soon as #117 is merged. I think it's ready but I'll wait for tomorrow to merge it just in case anyone spots an issue with it (there have been many) |
Changing the lv_drv_cmore lv_cronf.h to work with GTK makes that it doesn't compile anymore.
Is this intentional ?
I have libgtk-3.0 dev installed.
My intention is to write and test a GUI dashboard under Ubuntu and then run it on raspberry pi using the framebuffer.
The text was updated successfully, but these errors were encountered: