Skip to content

fix(libinput): private headers - #6869

Merged
FASTSHIFT merged 2 commits into
lvgl:masterfrom
liamHowatt:fix/libinput-headers
Sep 22, 2024
Merged

FASTSHIFT merged 2 commits into
lvgl:masterfrom
liamHowatt:fix/libinput-headers

Conversation

@liamHowatt

Copy link
Copy Markdown
Contributor

Fixes #6844

Notes

Co-authored-by: Manuel <[email protected]>
kisvegabor
kisvegabor previously approved these changes Sep 18, 2024

#if LV_USE_LIBINPUT

#include "lv_xkb_private.h"

@mverch67 mverch67 Sep 18, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this include correct?
Including xkb headers independent of value LV_LIBINPUT_XKB?

Asking because for Linux it may require installing libxkbcommon-dev even xkb is not used (i.e. not defined 1 in lv_conf.h).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it would be ok because lv_xkb.h will not try to include xkbcommon or declare anything unless LV_LIBINPUT_XKB is 1.

But for clarity and consistency, I have pushed a change 👍

@FASTSHIFT
FASTSHIFT merged commit 5baa9bf into lvgl:master Sep 22, 2024
kisvegabor pushed a commit to kisvegabor/lvgl_fork that referenced this pull request Sep 26, 2024
@mverch67

Copy link
Copy Markdown
Contributor

I tried to compile on a raspberry pi and still got errors in lv_libinput_private.h:

The two struct definitions should probably be defined without the leading underscore:


struct _lv_libinput_event_t
struct _lv_libinput_t

as they are used only without the underscore.

@liamHowatt

Copy link
Copy Markdown
Contributor Author

@mverch67 Oops, misc/lv_types.h needs to be included. The underscore is correct but the typedef for it is here.

I could not reproduce the error though, for some reason. Please test this fix: #6969 and let me know if it works. Thanks.

kisvegabor pushed a commit to kisvegabor/lvgl_fork that referenced this pull request Oct 1, 2024
kisvegabor pushed a commit that referenced this pull request Oct 9, 2024
rodb70 pushed a commit to rodb70/lvgl that referenced this pull request Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Compiler error in 9.2.0 when using LV_LIBINPUT_XKB=1

4 participants