fail loading libqxcb.so at startup of OpenDtect on linux

16 views
Skip to first unread message

Mathieu Milenkovic

unread,
Jul 17, 2023, 2:24:31 PM7/17/23
to OpendTect Developers
Hi,
At startup of OpenDtect, I have this error and have investigated what could be the reason.

Cannot load library $HOME/OpenDtect/7.0.0/bin/lux64/plugins/platforms/libqxcb.so: (/usr/lib64/libQt5XcbQpa.so.5

I activated the QT Debug feature:
export QT_DEBUG_PLUGINS=1

If I do:
ldd $HOME/OpenDtect/7.0.0/bin/lux64/plugins/platforms/libqxcb.so

linux-vdso.so.1 (0x00007ffed179d000)
libQt5XcbQpa.so.5 => /usr/lib64/libQt5XcbQpa.so.5 (0x00007fd042090000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fd042041000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fd041d32000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fd042027000)
libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x00007fd041600000)
libQt5DBus.so.5 => /usr/lib64/libQt5DBus.so.5 (0x00007fd041c9b000)
libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x00007fd041000000)

OpendTect picks up the wrong library path (the system QT5 libraries...) even if I include the proper searching path in the ~/.bashrc file
export LD_LIBRARY_PATH=$HOME/OpenDtect/7.0.0/bin/lux64/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Has someone has anyone encountered this issue?
I have another Fedora machine and it picks up the appropriate library without specifying the  LD_LIBRARY_PATH=$HOME/OpenDtect/7.0.0/bin/lux64/

Cheers,
Mathieu




Arnaud Huck

unread,
Jul 18, 2023, 8:22:48 AM7/18/23
to devel...@opendtect.org, Mathieu Milenkovic

Dear Mathieu,

The error message you get is very likely to due the presence of another, older Qt library in your path. Qt apps are very strict on this, if you have Qt 5.12 in your path, you will probably not be able to start any other Qt application based on a different version (OpendTect uses Qt v5.15.2).

Thus I have the following recommendations:
1- Do not install Qt libraries at the system level, keep only the ones installed with the Operating System, and dependencies to installed packages.
2- Remove unnecessary directories from your path (if any)
3- Do not add OpendTect paths to either LD_LIBRARY_PATH or PATH, but use the script start_dtect instead: /home/soft/OpenDtect/7.0.0/start_dtect
4- If all of the above fails, try to match the Qt version for the libraries installed at the system level.

If you cannot do -1-, you may want to try to make use of the isolation script we provide, and use that command instead: /home/soft/OpenDtect/7.0.0/bin/od_external.sh /home/soft/OpenDtect/7.0.0/start_dtect

Let me know if that helps.

Arnaud Huck, MSc
Chief Technical Officer
dGB Earth Sciences

dGB Earth Sciences
Phone: +31 53 43 15 155
E-mail: arnau...@dgbes.com
Internet: dgbes.com

--
You received this message because you are subscribed to the Google Groups "OpendTect Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@opendtect.org.
To view this discussion on the web visit https://groups.google.com/a/opendtect.org/d/msgid/developers/90d74a88-2fd6-4964-a91b-c235a3856c64n%40opendtect.org.
Reply all
Reply to author
Forward
0 new messages