Problems with QT

Hi Guys,

Maybe a linux expert could help me with this.

I have installed QT5 on the organelle but there seems to be come problem with it finding libQt5Core.so.5

It is there ok:

[root@organelle build]# file /usr/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5: symbolic link to libQt5Core.so.5.10.0

[root@organelle build]# file /usr/lib/libQt5Core.so.5.10.0
/usr/lib/libQt5Core.so.5.10.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=4da280cdc46f7f0e4f257556e2ecc6b2eb31afa3, for GNU/Linux 3.17.0, stripped

All its dependencies look ok:

[root@organelle build]# ldd /usr/lib/libQt5Core.so.5
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x76aae000)
	libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x76a26000)
	libz.so.1 => /usr/lib/libz.so.1 (0x76a03000)
	libicui18n.so.60 => /usr/lib/libicui18n.so.60 (0x767d4000)
	libicuuc.so.60 => /usr/lib/libicuuc.so.60 (0x7665c000)
	libpcre2-16.so.0 => /usr/lib/libpcre2-16.so.0 (0x765e1000)
	libdouble-conversion.so.1 => /usr/lib/libdouble-conversion.so.1 (0x765c4000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x765b1000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x764b3000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7636f000)
	libm.so.6 => /usr/lib/libm.so.6 (0x762e9000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x762bc000)
	libc.so.6 => /usr/lib/libc.so.6 (0x76177000)
	/lib/ld-linux-armhf.so.3 => /usr/lib/ld-linux-armhf.so.3 (0x76f71000)
	librt.so.1 => /usr/lib/librt.so.1 (0x76160000)
	libresolv.so.2 => /usr/lib/libresolv.so.2 (0x7613c000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x7610c000)
	liblz4.so.1 => /usr/lib/liblz4.so.1 (0x760ec000)
	libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x7604b000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x7602c000)
	libcap.so.2 => /usr/lib/libcap.so.2 (0x76021000)
	libicudata.so.60 => /usr/lib/libicudata.so.60 (0x74668000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x745f1000)
	libattr.so.1 => /usr/lib/libattr.so.1 (0x745e5000)

But it can’t be found:

/usr/bin/lrelease: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
[root@organelle build]# ldd /usr/lib/libQt5Gui.so
	libQt5Core.so.5 => not found
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x769fe000)
	libGL.so.1 => /usr/lib/libGL.so.1 (0x769a9000)
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7696e000)
	libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x76908000)
	libz.so.1 => /usr/lib/libz.so.1 (0x768e5000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x767a1000)
	libm.so.6 => /usr/lib/libm.so.6 (0x7671d000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x766f0000)
	libc.so.6 => /usr/lib/libc.so.6 (0x765ab000)
	/usr/lib/ld-linux-armhf.so.3 (0x76eeb000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x7659e000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x76592000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x7657b000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x7645e000)
	libGAL.so => /opt/fsl/lib/libGAL.so (0x7637f000)
	librt.so.1 => /usr/lib/librt.so.1 (0x76368000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x7626a000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x761c5000)
	libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x76194000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x7616d000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x7615a000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x760e3000)
	libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x760d2000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x760c8000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x760b3000)

Anyone got any ideas?

Thanks

Andy

why not use pacman for something as involved as QT? why do you need QT for the organelle? I mean i know what it is but what are you wanting to use that requires the QT GUI?

QT was installed with pacman.

I’m trying to get the Supercollider IDE built and that requires QT libs.

i built it for raspberry and i followed a how-to and it worked perfectly for 3.9 [but on raspberry of course]
i assume you have seen or are using this
http://supercollider.github.io/development/building-raspberrypi

Thanks for the info.

The problem is it can’t build as the libs installed by pacman don’t work.

I’m building the qt libs myself now to see if I can fix it…

When i first started with Linux if it had QT it was always a difficult build now that seems to be wxPython for me

hang in there and do let me know how you fare

pp

@andyCap - You might need to run ‘sudo ldconfig’ to rebuild the shared library cache if you have installed the shared library yourself. It should be non-destructive to do this, so even if it doesn’t work for you, it shouldn’t hurt your system.

Hope this helps. :slight_smile:

Hi Guys,

Thanks for the interest.

Yep I had run ldconfig, also ldconfig -v lists the so.

The system can find the file but not load it. The QT libs I built are just the same.

I think it is something to do with the interpreter /lib/ld-linux-armhf.so.3 installed on the organelle:

[root@organelle qt5]# file /usr/lib/libQt5Core.so.5.10.0
/usr/lib/libQt5Core.so.5.10.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=4da280cdc46f7f0e4f2

I might try building that and see what happens.

I’ll let you know how it goes…

Ok, I have got to the bottom of this.

libQt5Core.so.5.10.0 needs at least 3.15 kernel and we have 3.14 :frowning:

1 Like

Ok built QT 5.3 base and the problem goes away, looks like this is the version supercollider wants anyway.

So fingers crossed we might have the ide soon…

how did it turn out?

Thanks for the interest, I don’t like swearing on forums so I can’t give you the full and frank account of the nightmare so far :slight_smile:

I must admit if I never have to see qmake again I would be very happy.

I have the basics of QT made now but the WebKit is proving quite a problem to get built on the organelle.

During this process I have set up a linux box to cross compile everything which did work. Unfortunately the cmake files this produced are not quite right and the Supercollider build on the organelle doesn’t like them as they reference the cross compiler tools, I couldn’t get round this issue so went back to building on the organelle. Someone who understands the intricacy of qmake/cmake might know whats going on but unfortunately that isn’t me.

I have given up a couple of times so far, but keep coming back to it. Just like scratching an itch!

I am going to try a different approach at building WebKit today, I will keep you updated.

After another 2 days managed to get WebKit built, will ty the SC ide build tomorrow…