* [Buildroot] Not able to enable GUI library on Buildroot
[not found] <CAHYcJGqtHhDF7zKDak-+V2w_=PmbL5T7iB7P7ZV-paMbkWBBVA@mail.gmail.com>
@ 2022-03-16 1:04 ` Avijit Das
2022-03-16 18:35 ` Peter Seiderer
0 siblings, 1 reply; 4+ messages in thread
From: Avijit Das @ 2022-03-16 1:04 UTC (permalink / raw)
To: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 1891 bytes --]
Hi,
I am building Buildroot for an imx8mm board. The HDMI display is up. I
validated the display using the fb-test. I am trying to enable a graphics
library, either gtk3 or qt5.
*gtk3 *
When I am enabling the gtk3 library, if I run the demo application, I am
getting the following error.
# /usr/bin/gtk3-demo
(gtk3-demo:350): Gtk-WARNING **: 01:21:03.518: cannot open display:
#
I have tried setting the display to localhost:0.0, did not work.
*QT5*
The widget library is not building. There is a compilation error:
qkeyeventtransition.o .obj/qmouseeventtransition.o
.obj/qbasickeyeventtransition.o .obj/qbasicmouseeventtransition.o
.obj/qgraphicseffect.o .obj/qpixmapfilter.o .obj/qrc_qstyle.o
.obj/qrc_qmessagebox.o .obj/moc_qwidgetrepaintmanager_p.o
.obj/moc_qwidget_p.o .obj/moc_qpixmapstyle_p.o -latomic
/home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Gui.so
/home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Core.so
-lpthread -lrt -lpthread -ldl
ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so
ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5
ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5.15
rm -f ../../lib/libQt5Widgets.so.5.15.8
mv -f libQt5Widgets.so.5.15.8 ../../lib/libQt5Widgets.so.5.15.8
rm -f ../../lib/libQt5Widgets.so
rm -f ../../lib/libQt5Widgets.so.5
rm -f ../../lib/libQt5Widgets.so.5.15
mv -f libQt5Widgets.so ../../lib/libQt5Widgets.so
mv -f libQt5Widgets.so.5 ../../lib/libQt5Widgets.so.5
mv -f libQt5Widgets.so.5.15 ../../lib/libQt5Widgets.so.5.15
make[2]: *** [Makefile:51: sub-src-make_first] Error 2
make[1]: *** [package/pkg-generic.mk:292:
/home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/.stamp_built]
Error 2
make: *** [Makefile:84: _all] Error 2
I have attached the config file. Can you please suggest?
Thanks,
Avijit
[-- Attachment #1.2: Type: text/html, Size: 2354 bytes --]
[-- Attachment #2: freescale_imx8mmevk_defconfig --]
[-- Type: application/octet-stream, Size: 2514 bytes --]
BR2_aarch64=y
BR2_ARM_FPU_VFPV3=y
BR2_SSP_NONE=y
BR2_RELRO_NONE=y
BR2_FORTIFY_SOURCE_NONE=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
BR2_PACKAGE_GLIBC_UTILS=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mm-evk.dtb"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/linux-imx"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="lf-5.10.y-1.0.0"
BR2_LINUX_KERNEL_DEFCONFIG="imx_v8"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mm-evk freescale/imx8mm-evk-revb-qca-wifi"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5BASE_EXAMPLES=y
BR2_PACKAGE_QT5BASE_GUI=y
BR2_PACKAGE_QT5BASE_WIDGETS=y
BR2_PACKAGE_FREESCALE_IMX=y
BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=y
BR2_PACKAGE_IMX_CODEC=y
BR2_PACKAGE_IMX_PARSER=y
BR2_PACKAGE_IMX_UUC=y
BR2_PACKAGE_IMX_VPUWRAP=y
BR2_PACKAGE_FIRMWARE_IMX=y
BR2_PACKAGE_IMX_VPU_HANTRO_VC=y
BR2_PACKAGE_IMX_GPU_G2D=y
BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES=y
BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL=y
BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES=y
BR2_PACKAGE_IMX_GPU_VIV_GMEM_INFO=y
BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV=y
BR2_PACKAGE_LIBGTK3=y
BR2_PACKAGE_LIBGTK3_DEMO=y
BR2_PACKAGE_LIBGTK3_TESTS=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="512M"
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/imx-atf"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="lf-5.10.y-1.0.0"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mm"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_GIT=y
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/uboot-imx"
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="lf-5.10.y-1.0.0"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mm_evk"
BR2_TARGET_UBOOT_NEEDS_DTC=y
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin"
BR2_TARGET_UBOOT_SPL=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_IMX_MKIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] Not able to enable GUI library on Buildroot
2022-03-16 1:04 ` [Buildroot] Not able to enable GUI library on Buildroot Avijit Das
@ 2022-03-16 18:35 ` Peter Seiderer
[not found] ` <CAHYcJGqRkrG9mCSMydrOojaz8Cp8GSZW557DZNK8Rgscn=nj7A@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Seiderer @ 2022-03-16 18:35 UTC (permalink / raw)
To: Avijit Das; +Cc: buildroot
Hello Avijit,
On Tue, 15 Mar 2022 19:04:02 -0600, Avijit Das <avijitnsec@gmail.com> wrote:
> Hi,
>
> I am building Buildroot for an imx8mm board. The HDMI display is up. I
> validated the display using the fb-test. I am trying to enable a graphics
> library, either gtk3 or qt5.
>
> *gtk3 *
> When I am enabling the gtk3 library, if I run the demo application, I am
> getting the following error.
>
> # /usr/bin/gtk3-demo
>
> (gtk3-demo:350): Gtk-WARNING **: 01:21:03.518: cannot open display:
> #
>
> I have tried setting the display to localhost:0.0, did not work.
>
> *QT5*
> The widget library is not building. There is a compilation error:
>
> qkeyeventtransition.o .obj/qmouseeventtransition.o
> .obj/qbasickeyeventtransition.o .obj/qbasicmouseeventtransition.o
> .obj/qgraphicseffect.o .obj/qpixmapfilter.o .obj/qrc_qstyle.o
> .obj/qrc_qmessagebox.o .obj/moc_qwidgetrepaintmanager_p.o
> .obj/moc_qwidget_p.o .obj/moc_qpixmapstyle_p.o -latomic
> /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Gui.so
> /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Core.so
> -lpthread -lrt -lpthread -ldl
> ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so
> ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5
> ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5.15
> rm -f ../../lib/libQt5Widgets.so.5.15.8
> mv -f libQt5Widgets.so.5.15.8 ../../lib/libQt5Widgets.so.5.15.8
> rm -f ../../lib/libQt5Widgets.so
> rm -f ../../lib/libQt5Widgets.so.5
> rm -f ../../lib/libQt5Widgets.so.5.15
> mv -f libQt5Widgets.so ../../lib/libQt5Widgets.so
> mv -f libQt5Widgets.so.5 ../../lib/libQt5Widgets.so.5
> mv -f libQt5Widgets.so.5.15 ../../lib/libQt5Widgets.so.5.15
> make[2]: *** [Makefile:51: sub-src-make_first] Error 2
> make[1]: *** [package/pkg-generic.mk:292:
> /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/.stamp_built]
> Error 2
> make: *** [Makefile:84: _all] Error 2
>
> I have attached the config file. Can you please suggest?
With your defconfig I get the following error (a lot of lines above in the log):
qeglconvenience.cpp: In function ‘bool q_hasEglExtension(EGLDisplay, const char*)’:
qeglconvenience.cpp:418:23: error: variable ‘QList<QByteArray> extensions’ has initializer but incomplete type
418 | QList<QByteArray> extensions =
| ^~~~~~~~~~
qeglconvenience.cpp:420:65: error: invalid use of incomplete type ‘class QList<QByteArray>’
420 | (eglQueryString(display, EGL_EXTENSIONS))).split(' ');
|
This can be (compile) fixed by this (buildroot) patch:
https://patchwork.ozlabs.org/project/buildroot/patch/20220316182440.17393-1-ps.report@gmx.net/
Despite of this error I get (with your provided defconfig):
[4/5] Compiling C object src/libepoxy.so.0.0.0.p/dispatch_common.c.o
FAILED: src/libepoxy.so.0.0.0.p/dispatch_common.c.o
.../host/bin/aarch64-buildroot-linux-gnu-gcc -Isrc/libepoxy.so.0.0.0.p -Isrc -I../src -Iinclude -I../include -Iinclude/epoxy -fdiagnostics-color=always -Wall -Winvalid-pch -std=gnu99 -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -fPIC -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -fvisibility=hidden -MD -MQ src/libepoxy.so.0.0.0.p/dispatch_common.c.o -MF src/libepoxy.so.0.0.0.p/dispatch_common.c.o.d -o src/libepoxy.so.0.0.0.p/dispatch_common.c.o -c ../src/dispatch_common.c
In file included from include/epoxy/egl_generated.h:11,
from ../include/epoxy/egl.h:46,
from ../src/dispatch_common.h:59,
from ../src/dispatch_common.c:174:
.../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL/eglplatform.h:145:10: fatal error: X11/Xlib.h: No such file or directory
145 | #include <X11/Xlib.h>
| ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
make[1]: *** [package/pkg-generic.mk:292: /home/seiderer/Work/Buildroot/build_imx8mmevk_qt5_001/build/libepoxy-1.5.9/.stamp_built] Error 1
make: *** [Makefile:23: _all] Error 2
Regards,
Peter
>
> Thanks,
> Avijit
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] Not able to enable GUI library on Buildroot
[not found] ` <CAHYcJGqRkrG9mCSMydrOojaz8Cp8GSZW557DZNK8Rgscn=nj7A@mail.gmail.com>
@ 2022-03-16 19:49 ` Peter Seiderer
2022-03-16 19:51 ` Avijit Das
0 siblings, 1 reply; 4+ messages in thread
From: Peter Seiderer @ 2022-03-16 19:49 UTC (permalink / raw)
To: Avijit Das; +Cc: buildroot
Hello Avijit,
please keep buildroot@busybox.net in CC
On Wed, 16 Mar 2022 12:39:04 -0600, Avijit Das <avijitnsec@gmail.com> wrote:
> Hi Peter,
>
> I have compiled the X11 library when I got this error.
>
> make xlib_libX11 && make
So the gtk3 compile/test was from another defconfig?
Did you start the X11 server before running the gtk3-demo?
But not much run-time help/advice from my side as I have no suitable hardware
for testing myself...
Regards,
Peter
>
> Thanks,
> Avijit
>
> On Wed, Mar 16, 2022 at 12:36 PM Peter Seiderer <ps.report@gmx.net> wrote:
>
> > Hello Avijit,
> >
> > On Tue, 15 Mar 2022 19:04:02 -0600, Avijit Das <avijitnsec@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I am building Buildroot for an imx8mm board. The HDMI display is up. I
> > > validated the display using the fb-test. I am trying to enable a graphics
> > > library, either gtk3 or qt5.
> > >
> > > *gtk3 *
> > > When I am enabling the gtk3 library, if I run the demo application, I am
> > > getting the following error.
> > >
> > > # /usr/bin/gtk3-demo
> > >
> > > (gtk3-demo:350): Gtk-WARNING **: 01:21:03.518: cannot open display:
> > > #
> > >
> > > I have tried setting the display to localhost:0.0, did not work.
> > >
> > > *QT5*
> > > The widget library is not building. There is a compilation error:
> > >
> > > qkeyeventtransition.o .obj/qmouseeventtransition.o
> > > .obj/qbasickeyeventtransition.o .obj/qbasicmouseeventtransition.o
> > > .obj/qgraphicseffect.o .obj/qpixmapfilter.o .obj/qrc_qstyle.o
> > > .obj/qrc_qmessagebox.o .obj/moc_qwidgetrepaintmanager_p.o
> > > .obj/moc_qwidget_p.o .obj/moc_qpixmapstyle_p.o -latomic
> > >
> > /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Gui.so
> > >
> > /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Core.so
> > > -lpthread -lrt -lpthread -ldl
> > > ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so
> > > ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5
> > > ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5.15
> > > rm -f ../../lib/libQt5Widgets.so.5.15.8
> > > mv -f libQt5Widgets.so.5.15.8 ../../lib/libQt5Widgets.so.5.15.8
> > > rm -f ../../lib/libQt5Widgets.so
> > > rm -f ../../lib/libQt5Widgets.so.5
> > > rm -f ../../lib/libQt5Widgets.so.5.15
> > > mv -f libQt5Widgets.so ../../lib/libQt5Widgets.so
> > > mv -f libQt5Widgets.so.5 ../../lib/libQt5Widgets.so.5
> > > mv -f libQt5Widgets.so.5.15 ../../lib/libQt5Widgets.so.5.15
> > > make[2]: *** [Makefile:51: sub-src-make_first] Error 2
> > > make[1]: *** [package/pkg-generic.mk:292:
> > >
> > /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/.stamp_built]
> > > Error 2
> > > make: *** [Makefile:84: _all] Error 2
> > >
> > > I have attached the config file. Can you please suggest?
> >
> > With your defconfig I get the following error (a lot of lines above in the
> > log):
> >
> > qeglconvenience.cpp: In function ‘bool q_hasEglExtension(EGLDisplay,
> > const char*)’:
> > qeglconvenience.cpp:418:23: error: variable ‘QList<QByteArray>
> > extensions’ has initializer but incomplete type
> > 418 | QList<QByteArray> extensions =
> > | ^~~~~~~~~~
> > qeglconvenience.cpp:420:65: error: invalid use of incomplete type ‘class
> > QList<QByteArray>’
> > 420 | (eglQueryString(display, EGL_EXTENSIONS))).split('
> > ');
> > |
> >
> >
> > This can be (compile) fixed by this (buildroot) patch:
> >
> >
> > https://patchwork.ozlabs.org/project/buildroot/patch/20220316182440.17393-1-ps.report@gmx.net/
> >
> >
> > Despite of this error I get (with your provided defconfig):
> >
> > [4/5] Compiling C object src/libepoxy.so.0.0.0.p/dispatch_common.c.o
> > FAILED: src/libepoxy.so.0.0.0.p/dispatch_common.c.o
> > .../host/bin/aarch64-buildroot-linux-gnu-gcc -Isrc/libepoxy.so.0.0.0.p
> > -Isrc -I../src -Iinclude -I../include -Iinclude/epoxy
> > -fdiagnostics-color=always -Wall -Winvalid-pch -std=gnu99 -O3
> > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0
> > -fPIC -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes
> > -Wmissing-prototypes -Wnested-externs -Wbad-function-cast
> > -Wold-style-definition -Wdeclaration-after-statement -Wunused
> > -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute
> > -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull
> > -Werror=init-self -Werror=main -Werror=missing-braces
> > -Werror=sequence-point -Werror=return-type -Werror=trigraphs
> > -Werror=array-bounds -Werror=write-strings -Werror=address
> > -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
> > -fno-strict-aliasing -Wno-int-conversion -fvisibility=hidden -MD -MQ
> > src/libepoxy.so.0.0.0.p/dispatch_common.c.o -MF
> > src/libepoxy.so.0.0.0.p/dispatch_common.c.o.d -o
> > src/libepoxy.so.0.0.0.p/dispatch_common.c.o -c ../src/dispatch_common.c
> > In file included from include/epoxy/egl_generated.h:11,
> > from ../include/epoxy/egl.h:46,
> > from ../src/dispatch_common.h:59,
> > from ../src/dispatch_common.c:174:
> >
> > .../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL/eglplatform.h:145:10:
> > fatal error: X11/Xlib.h: No such file or directory
> > 145 | #include <X11/Xlib.h>
> > | ^~~~~~~~~~~~
> > compilation terminated.
> > ninja: build stopped: subcommand failed.
> > make[1]: *** [package/pkg-generic.mk:292:
> > /home/seiderer/Work/Buildroot/build_imx8mmevk_qt5_001/build/libepoxy-1.5.9/.stamp_built]
> > Error 1
> > make: *** [Makefile:23: _all] Error 2
> >
> > Regards,
> > Peter
> >
> > >
> > > Thanks,
> > > Avijit
> >
> >
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] Not able to enable GUI library on Buildroot
2022-03-16 19:49 ` Peter Seiderer
@ 2022-03-16 19:51 ` Avijit Das
0 siblings, 0 replies; 4+ messages in thread
From: Avijit Das @ 2022-03-16 19:51 UTC (permalink / raw)
To: Peter Seiderer; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 6496 bytes --]
Hello Peter,
Yes, I have tried X11 and Wayland both. Thanks for trying out. I'll keep
trying. Will keep you posted.
Thanks,
Avijit
On Wed, Mar 16, 2022 at 1:49 PM Peter Seiderer <ps.report@gmx.net> wrote:
> Hello Avijit,
>
> please keep buildroot@busybox.net in CC
>
> On Wed, 16 Mar 2022 12:39:04 -0600, Avijit Das <avijitnsec@gmail.com>
> wrote:
>
> > Hi Peter,
> >
> > I have compiled the X11 library when I got this error.
> >
> > make xlib_libX11 && make
>
> So the gtk3 compile/test was from another defconfig?
>
> Did you start the X11 server before running the gtk3-demo?
>
> But not much run-time help/advice from my side as I have no suitable
> hardware
> for testing myself...
>
> Regards,
> Peter
>
>
> >
> > Thanks,
> > Avijit
> >
> > On Wed, Mar 16, 2022 at 12:36 PM Peter Seiderer <ps.report@gmx.net>
> wrote:
> >
> > > Hello Avijit,
> > >
> > > On Tue, 15 Mar 2022 19:04:02 -0600, Avijit Das <avijitnsec@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I am building Buildroot for an imx8mm board. The HDMI display is up.
> I
> > > > validated the display using the fb-test. I am trying to enable a
> graphics
> > > > library, either gtk3 or qt5.
> > > >
> > > > *gtk3 *
> > > > When I am enabling the gtk3 library, if I run the demo application,
> I am
> > > > getting the following error.
> > > >
> > > > # /usr/bin/gtk3-demo
> > > >
> > > > (gtk3-demo:350): Gtk-WARNING **: 01:21:03.518: cannot open display:
> > > > #
> > > >
> > > > I have tried setting the display to localhost:0.0, did not work.
> > > >
> > > > *QT5*
> > > > The widget library is not building. There is a compilation error:
> > > >
> > > > qkeyeventtransition.o .obj/qmouseeventtransition.o
> > > > .obj/qbasickeyeventtransition.o .obj/qbasicmouseeventtransition.o
> > > > .obj/qgraphicseffect.o .obj/qpixmapfilter.o .obj/qrc_qstyle.o
> > > > .obj/qrc_qmessagebox.o .obj/moc_qwidgetrepaintmanager_p.o
> > > > .obj/moc_qwidget_p.o .obj/moc_qpixmapstyle_p.o -latomic
> > > >
> > >
> /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Gui.so
>
> > > >
> > >
> /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/lib/libQt5Core.so
>
> > > > -lpthread -lrt -lpthread -ldl
> > > > ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so
> > > > ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5
> > > > ln -s libQt5Widgets.so.5.15.8 libQt5Widgets.so.5.15
> > > > rm -f ../../lib/libQt5Widgets.so.5.15.8
> > > > mv -f libQt5Widgets.so.5.15.8 ../../lib/libQt5Widgets.so.5.15.8
> > > > rm -f ../../lib/libQt5Widgets.so
> > > > rm -f ../../lib/libQt5Widgets.so.5
> > > > rm -f ../../lib/libQt5Widgets.so.5.15
> > > > mv -f libQt5Widgets.so ../../lib/libQt5Widgets.so
> > > > mv -f libQt5Widgets.so.5 ../../lib/libQt5Widgets.so.5
> > > > mv -f libQt5Widgets.so.5.15 ../../lib/libQt5Widgets.so.5.15
> > > > make[2]: *** [Makefile:51: sub-src-make_first] Error 2
> > > > make[1]: *** [package/pkg-generic.mk:292:
> > > >
> > >
> /home/avijit/buildroot/output/build/qt5base-d16bf02a11953dcac01dca73e6f3778f293adefe/.stamp_built]
>
> > > > Error 2
> > > > make: *** [Makefile:84: _all] Error 2
> > > >
> > > > I have attached the config file. Can you please suggest?
> > >
> > > With your defconfig I get the following error (a lot of lines above in
> the
> > > log):
> > >
> > > qeglconvenience.cpp: In function ‘bool q_hasEglExtension(EGLDisplay,
> > > const char*)’:
> > > qeglconvenience.cpp:418:23: error: variable ‘QList<QByteArray>
> > > extensions’ has initializer but incomplete type
> > > 418 | QList<QByteArray> extensions =
> > > | ^~~~~~~~~~
> > > qeglconvenience.cpp:420:65: error: invalid use of incomplete type
> ‘class
> > > QList<QByteArray>’
> > > 420 | (eglQueryString(display,
> EGL_EXTENSIONS))).split('
> > > ');
> > > |
> > >
> > >
> > > This can be (compile) fixed by this (buildroot) patch:
> > >
> > >
> > >
> https://patchwork.ozlabs.org/project/buildroot/patch/20220316182440.17393-1-ps.report@gmx.net/
> > >
> > >
> > > Despite of this error I get (with your provided defconfig):
> > >
> > > [4/5] Compiling C object src/libepoxy.so.0.0.0.p/dispatch_common.c.o
> > > FAILED: src/libepoxy.so.0.0.0.p/dispatch_common.c.o
> > > .../host/bin/aarch64-buildroot-linux-gnu-gcc
> -Isrc/libepoxy.so.0.0.0.p
> > > -Isrc -I../src -Iinclude -I../include -Iinclude/epoxy
> > > -fdiagnostics-color=always -Wall -Winvalid-pch -std=gnu99 -O3
> > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
> -g0
> > > -fPIC -Wpointer-arith -Wmissing-declarations -Wformat=2
> -Wstrict-prototypes
> > > -Wmissing-prototypes -Wnested-externs -Wbad-function-cast
> > > -Wold-style-definition -Wdeclaration-after-statement -Wunused
> > > -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute
> > > -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull
> > > -Werror=init-self -Werror=main -Werror=missing-braces
> > > -Werror=sequence-point -Werror=return-type -Werror=trigraphs
> > > -Werror=array-bounds -Werror=write-strings -Werror=address
> > > -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
> > > -fno-strict-aliasing -Wno-int-conversion -fvisibility=hidden -MD -MQ
> > > src/libepoxy.so.0.0.0.p/dispatch_common.c.o -MF
> > > src/libepoxy.so.0.0.0.p/dispatch_common.c.o.d -o
> > > src/libepoxy.so.0.0.0.p/dispatch_common.c.o -c ../src/dispatch_common.c
> > > In file included from include/epoxy/egl_generated.h:11,
> > > from ../include/epoxy/egl.h:46,
> > > from ../src/dispatch_common.h:59,
> > > from ../src/dispatch_common.c:174:
> > >
> > >
> .../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL/eglplatform.h:145:10:
> > > fatal error: X11/Xlib.h: No such file or directory
> > > 145 | #include <X11/Xlib.h>
> > > | ^~~~~~~~~~~~
> > > compilation terminated.
> > > ninja: build stopped: subcommand failed.
> > > make[1]: *** [package/pkg-generic.mk:292:
> > >
> /home/seiderer/Work/Buildroot/build_imx8mmevk_qt5_001/build/libepoxy-1.5.9/.stamp_built]
> > > Error 1
> > > make: *** [Makefile:23: _all] Error 2
> > >
> > > Regards,
> > > Peter
> > >
> > > >
> > > > Thanks,
> > > > Avijit
> > >
> > >
>
>
[-- Attachment #1.2: Type: text/html, Size: 8705 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-16 19:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAHYcJGqtHhDF7zKDak-+V2w_=PmbL5T7iB7P7ZV-paMbkWBBVA@mail.gmail.com>
2022-03-16 1:04 ` [Buildroot] Not able to enable GUI library on Buildroot Avijit Das
2022-03-16 18:35 ` Peter Seiderer
[not found] ` <CAHYcJGqRkrG9mCSMydrOojaz8Cp8GSZW557DZNK8Rgscn=nj7A@mail.gmail.com>
2022-03-16 19:49 ` Peter Seiderer
2022-03-16 19:51 ` Avijit Das
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.