All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore
@ 2019-06-02 19:51 bugzilla at busybox.net
  2019-06-02 19:54 ` [Buildroot] [Bug 11926] " bugzilla at busybox.net
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-02 19:51 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

            Bug ID: 11926
           Summary: Cross compiled Qt applications aren't working anymore
           Product: buildroot
           Version: 2019.05
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: ramtheconqueror at gmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

Created attachment 8071
  --> https://bugs.busybox.net/attachment.cgi?id=8071&action=edit
QmlTest Code

Used Buildroot 2019.05-rc3 
Linaro 7.4.1 toolchain

Compiled fine and then installed Qt Creator and setup qmake and cross compiler.
Created a blank QML application, compiled, deployed and ran the app only to see
shared libs related errors.

# /opt/QmlTest/bin/QmlTest
/opt/QmlTest/bin/QmlTest: error while loading shared libraries:
/home/ram/work/linux-tool/buildroot-output/2019.05-rc3/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libGLESv2.so:
cannot open shared object file: No such file or directory

I'm using buildroot 2018.05 which works fine for the same application.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
@ 2019-06-02 19:54 ` bugzilla at busybox.net
  2019-06-02 19:56 ` bugzilla at busybox.net
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-02 19:54 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

ramtheconqueror at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-linux-gnueabihf

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
  2019-06-02 19:54 ` [Buildroot] [Bug 11926] " bugzilla at busybox.net
@ 2019-06-02 19:56 ` bugzilla at busybox.net
  2019-06-02 20:14 ` bugzilla at busybox.net
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-02 19:56 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #1 from ramtheconqueror at gmail.com ---
Tried setting up LD_LIBRARY_PATH with export.
Added qt.conf file as well.

[Paths]
Prefix=/usr
Libraries=lib
Headers=include/qt5
Plugins=lib/qt/plugins
Examples=lib/qt/examples

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
  2019-06-02 19:54 ` [Buildroot] [Bug 11926] " bugzilla at busybox.net
  2019-06-02 19:56 ` bugzilla at busybox.net
@ 2019-06-02 20:14 ` bugzilla at busybox.net
  2019-06-03  7:01 ` bugzilla at busybox.net
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-02 20:14 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #2 from ramtheconqueror at gmail.com ---
Even the Qt cinematic experience which is compiled as part of the buildroot is
not working a well.

# CinematicExperience-demo
/usr/share/Qt5/CinematicExperience/Qt5_CinematicExperience: error while loading
shared libraries:
/home/ram/work/Linux-tool/buildroot-output/2019.05-rc3/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libGLESv2.so:
cannot open shared object file: No such file or directory

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2019-06-02 20:14 ` bugzilla at busybox.net
@ 2019-06-03  7:01 ` bugzilla at busybox.net
  2019-06-03 14:07 ` bugzilla at busybox.net
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-03  7:01 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Could you try reverting 951d438ddd212eb8163a67670383f2c86a8abc1b and see if it
helps ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2019-06-03  7:01 ` bugzilla at busybox.net
@ 2019-06-03 14:07 ` bugzilla at busybox.net
  2019-06-06 10:39 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-03 14:07 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #4 from ramtheconqueror at gmail.com ---
(In reply to Thomas Petazzoni from comment #3)
Hello Thomas,

I've reverted that change and still no use.

[Paths]
Prefix=@@HOST_DIR@@
Sysroot=@@STAGING_DIR@@
Headers=/usr/include/qt5
Libraries=/usr/lib
LibraryExecutables=/usr/libexec
Binaries=/usr/bin
Plugins=/usr/lib/qt/plugins
Examples=/usr/lib/qt/examples
Qml2Imports=/usr/qml
Imports=/usr/imports
Translations=/usr/translations
Examples=/usr/lib/qt/examples
Demos=/usr/lib/qt/examples
Tests=/usr/tests
Settings=/usr
Documentation=/usr/doc
ArchData=/usr
Data=/usr

Anything else please? Thanks for your help.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2019-06-03 14:07 ` bugzilla at busybox.net
@ 2019-06-06 10:39 ` bugzilla at busybox.net
  2020-02-05 15:40 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2019-06-06 10:39 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #5 from ramtheconqueror at gmail.com ---
Hello,

2019.05 released with this P5 blocker?

Any workaround for this problem please?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2019-06-06 10:39 ` bugzilla at busybox.net
@ 2020-02-05 15:40 ` bugzilla at busybox.net
  2020-02-05 22:34 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2020-02-05 15:40 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #6 from Martin <martinv1985@gmail.com> ---
I was having similar issues when compiling a image with qt for arm. Even
qtdiag, which was also build using buildroot, had the error that the EGL/GLES
libraries where linked using the absolute paths of the machine running
buildroot. However, when testing Qt version 5.14 this problem seems to be
resolved. The qtdiag works again and i can also compile and run one of the
example programs myself.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2020-02-05 15:40 ` bugzilla at busybox.net
@ 2020-02-05 22:34 ` bugzilla at busybox.net
  2020-02-06  9:36 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2020-02-05 22:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #7 from Peter Seiderer <ps.report@gmx.net> ---
Never observed the problem myself..., can you provide a .config or defconfig
file to reproduce the problem (and report the used buildroot version and/or
additional patches)? Do your use a buildroot toolchain or an extenal one? Is
your buildroot compile in-tree or out-of-tree?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (7 preceding siblings ...)
  2020-02-05 22:34 ` bugzilla at busybox.net
@ 2020-02-06  9:36 ` bugzilla at busybox.net
  2020-02-06  9:49 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2020-02-06  9:36 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #8 from Martin <martinv1985@gmail.com> ---
Created attachment 8361
  --> https://bugs.busybox.net/attachment.cgi?id=8361&action=edit
defconfig file to reproduce bug

See the attached custom_qt_link_bug_defconfig for a minimal configuration for
this bug.

I used buildroot master (cloned on Tue Feb 4, commit
4fb3c69854b01fd8f6483a8dbbb73d05ef26e96a) with 2 patches i found on patchwork.
The patches are '[RFC,v3,1/2] package/qt5: bump latest version to 5.13.2' and
'[RFC,v3,2/2] package/qt5: bump latest version to 5.14.1'. I did need to
slightly adjust the patches to get them working with that specific commit. I
still need to look up the best way to give the feedback on those patches, but
for now i will mention it here.
I had to change the patch for the files
'package/qt5/qt5x11extras/5.13.2/qt5serialport.hash' and
'package/qt5/qt5x11extras/5.13.2/qt5x11extras.hash'. These
files where changed in master after the patch was created. The first line in
each files where changed, ending in '.sha256' instead of '.mirrorlist'.

I used a toolchain that buildroot compiled. I did change the host dir to an
out-of-tree folder.

With buildroot-2019.11.1 qtdiag did not work. The output of 'readelf -d'
already showed that libGLES is linked using absolute paths and on the target
device i also got the "no such file or directory" errors. Using the
buildroot-master & qt5.14 patches readelf did not show absolute paths and
qtdiag worked on the target device.

I hope this is enough information. I am still learning to use buildroot etc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (8 preceding siblings ...)
  2020-02-06  9:36 ` bugzilla at busybox.net
@ 2020-02-06  9:49 ` bugzilla at busybox.net
  2020-02-17 12:04 ` bugzilla at busybox.net
  2020-02-17 12:42 ` bugzilla at busybox.net
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2020-02-06  9:49 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #9 from Martin <martinv1985@gmail.com> ---
(In reply to Martin from comment #8)

Small copy-paste error in comment #8.
'package/qt5/qt5x11extras/5.13.2/qt5serialport.hash' should be
'package/qt5/qt5serialport/5.13.2/qt5serialport.hash'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (9 preceding siblings ...)
  2020-02-06  9:49 ` bugzilla at busybox.net
@ 2020-02-17 12:04 ` bugzilla at busybox.net
  2020-02-17 12:42 ` bugzilla at busybox.net
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2020-02-17 12:04 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #10 from Peter Seiderer <ps.report@gmx.net> ---
(In reply to Martin from comment #9)

Hello Martin,

can reproduce your problem with the given defconfig (independent of the custom
setting BR2_HOST_DIR or using the default).

Using sunxi-mali-mainline I get:

    $ readelf -d target/usr/bin/qtdiag | grep libGLESv2
    0x00000001 (NEEDED)                     Shared library:
[/my_build_path/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libGLESv2.so]


Same defconfig changed to rpi-userland leads to:

    $ readelf -d target/usr/bin/qtdiag | grep libGLESv2
    0x00000001 (NEEDED)                     Shared library: [libGLESv2.so]


For sunxi-mali-mainline:

    $ cat
host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/pkgconfig/glesv2.pc
    prefix=/usr
    exec_prefix=${prefix}
    libdir=${exec_prefix}/lib
    includedir=${prefix}/include

    Name: glesv2
    Description: ARM Mali implementation of OpenGL ESv2
    Version: 2.0
    Requires:
    Libs: -L${libdir} -lGLESv2 -lGLESv1_CM
    Cflags: -I${includedir}


For rpi-userland:

    $ cat
host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/pkgconfig/glesv2.pc 
    prefix=/usr
    exec_prefix=${prefix}
    libdir=${exec_prefix}/lib
    includedir=${prefix}/include

    Name: glesv2
    Description: RasberryPi implementation of OpenGL ESv2
    Version: 2.0
    Libs: -L${libdir} -lGLESv2
    Cflags: -I${includedir}/


Did not see where the different linking comes from...

Regards,
Peter

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 11926] Cross compiled Qt applications aren't working anymore
  2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
                   ` (10 preceding siblings ...)
  2020-02-17 12:04 ` bugzilla at busybox.net
@ 2020-02-17 12:42 ` bugzilla at busybox.net
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2020-02-17 12:42 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11926

--- Comment #11 from Peter Seiderer <ps.report@gmx.net> ---
Yes, seems to be fixed with the Qt-5.14.1 update, one difference I see is:

    $ diff -u
build_qt_5_12_7/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5OpenGLExtensions.prl
build_qt_5_14_1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5OpenGLExtensions.prl
    ---
build_qt_5_12_7/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5OpenGLExtensions.prl
  2020-02-17 12:28:55.931270726 +0100
    +++
build_qt_5_14_1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5OpenGLExtensions.prl
  2020-02-17 13:25:00.047405910 +0100
@@ -1,6 +1,7 @@
    -QMAKE_PRL_BUILD_DIR =
/.../build_qt_5_12_7/build/qt5base-5.12.7/src/openglextensions
    +QMAKE_PRL_BUILD_DIR =
/.../build_qt_5_4_1/build/qt5base-5.14.1/src/openglextensions
    [...]
    -QMAKE_PRL_VERSION = 5.12.7
    -QMAKE_PRL_LIBS = -latomic $$[QT_INSTALL_LIBS]/libQt5Gui.so
$$[QT_INSTALL_LIBS]/libQt5Core.so -lpthread $$[QT_INSTALL_LIBS]/libGLESv2.so
-lrt -lpthread -ldl

    +QMAKE_PRL_VERSION = 5.14.1
    +QMAKE_PRL_LIBS = -latomic $$[QT_INSTALL_LIBS]/libQt5Gui.so
$$[QT_INSTALL_LIBS]/libQt5Core.so -lpthread -L$$[QT_INSTALL_LIBS] -lGLESv2
-lGLESv1_CM -lrt -lpthread -ldl

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-02-17 12:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-02 19:51 [Buildroot] [Bug 11926] New: Cross compiled Qt applications aren't working anymore bugzilla at busybox.net
2019-06-02 19:54 ` [Buildroot] [Bug 11926] " bugzilla at busybox.net
2019-06-02 19:56 ` bugzilla at busybox.net
2019-06-02 20:14 ` bugzilla at busybox.net
2019-06-03  7:01 ` bugzilla at busybox.net
2019-06-03 14:07 ` bugzilla at busybox.net
2019-06-06 10:39 ` bugzilla at busybox.net
2020-02-05 15:40 ` bugzilla at busybox.net
2020-02-05 22:34 ` bugzilla at busybox.net
2020-02-06  9:36 ` bugzilla at busybox.net
2020-02-06  9:49 ` bugzilla at busybox.net
2020-02-17 12:04 ` bugzilla at busybox.net
2020-02-17 12:42 ` bugzilla at busybox.net

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.