Discussion:
[mitk-users] Problems getting started using Ubuntu 14/16
Andre Mastmeyer
2017-03-15 17:29:43 UTC
Permalink
Hi,
I have spent a couple of hours to get the binaries running
following some of the obvious steps:
1. install gcc-4.9 and libstdc++6.0.20

2. install Qt 5.6.2 in a out of system directory

3. adapt the launcher shell script MitkWorkbench.sh:
#!/bin/sh
*export QT_DEBUG_PLUGINS=1**
**export QT_QPA_PLATFORM=''**
**export
QT_PLUGIN_PATH=/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins**
**export
QT_QPA_PLUGIN_PATH=/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins*

binpath=$(dirname "$(readlink -f "$0")")
appname=$(basename "$0" .sh)
export
LD_LIBRARY_PATH="$binpath/bin":"$binpath/bin/plugins":"*/usr/lib/gcc/x86_64-linux-gnu/4.9*":$LD_LIBRARY_PATH
"$binpath/bin/$appname" "$@"

4. Hopy and try it - now I am stuck with:
Cannot load library
/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so:
(/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5:
symbol _ZN20QEventDispatcherUNIX6selectEiP6fd_setS1_S1_P8timespec,
version Qt_5_PRIVATE_API not defined in file libQt5Core.so.5 with link
time reference)
QLibraryPrivate::loadPlugin failed on
"/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms*/libqxcb.so"
: "Cannot load library
/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so:
(/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5:
symbol _ZN20QEventDispatcherUNIX6selectEiP6fd_setS1_S1_P8timespec,
*version Qt_5_PRIVATE_API not defined in file libQt5Core.so.5 with link
time reference)"
This application failed to start because it could not find or load the
Qt platform plugin "xcb"
in "".

5. Test it on a Ubuntu 16.04 - also problems with libqxcb.so:
Qt_5_PRIVATE_API not found.

Maybe someone has already gone through this and can share his experience?

Best,
Andre
--
Dr. Andre Mastmeyer
Wissenschaftlicher Mitarbeiter
Research Assistant

UNIVERSITÄT ZU LÜBECK
UNIVERSITY OF LUEBECK, GERMANY
INSTITUT FÜR MEDIZINISCHE INFORMATIK
INSTITUTE OF MEDICAL INFORMATICS

Ratzeburger Allee 160
Rm. 064.100 2000 010.00
23538 LÃŒbeck
GERMANY

Tel +49 451 3101 5608
Fax +49 451 3101 5604
***@imi.uni-luebeck.de

www.imi.uni-luebeck.de
Dinkelacker, Stefan
2017-03-15 20:23:03 UTC
Permalink
Hi,


is it possible that you linked MITK with the system Qt but now are trying to point Qt to another installed version in your directory? When you didn't give a hint to CMake, the FindQt script has most probably found the system-version of Qt. Check the Qt variables like Qt5_Core_DIR or similar in CMake to see which one was selected by the script. To manually chose the right Qt version, you would have to set CMAKE_PREFIX_PATH to /data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64 before (!) the first configure run. You would now need to delete *all* Qt-related cache variables and set CMAKE_PREFIX_PATH before configuring again. Double check the found Qt location then.


Hope that helps,

Stefan

________________________________
Von: Andre Mastmeyer <***@imi.uni-luebeck.de>
Gesendet: Mittwoch, 15. März 2017 18:29
An: mitk-***@lists.sourceforge.net
Betreff: [mitk-users] Problems getting started using Ubuntu 14/16



Hi,
I have spent a couple of hours to get the binaries running
following some of the obvious steps:
1. install gcc-4.9 and libstdc++6.0.20

2. install Qt 5.6.2 in a out of system directory

3. adapt the launcher shell script MitkWorkbench.sh:
#!/bin/sh
export QT_DEBUG_PLUGINS=1
export QT_QPA_PLATFORM=''
export QT_PLUGIN_PATH=/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins
export QT_QPA_PLUGIN_PATH=/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins

binpath=$(dirname "$(readlink -f "$0")")
appname=$(basename "$0" .sh)
export LD_LIBRARY_PATH="$binpath/bin":"$binpath/bin/plugins":"/usr/lib/gcc/x86_64-linux-gnu/4.9":$LD_LIBRARY_PATH
"$binpath/bin/$appname" "$@"

4. Hopy and try it - now I am stuck with:
Cannot load library /data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so: (/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZN20QEventDispatcherUNIX6selectEiP6fd_setS1_S1_P8timespec, version Qt_5_PRIVATE_API not defined in file libQt5Core.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so: (/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZN20QEventDispatcherUNIX6selectEiP6fd_setS1_S1_P8timespec, version Qt_5_PRIVATE_API not defined in file libQt5Core.so.5 with link time reference)"
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

5. Test it on a Ubuntu 16.04 - also problems with libqxcb.so: Qt_5_PRIVATE_API not found.

Maybe someone has already gone through this and can share his experience?

Best,
Andre

--
Dr. Andre Mastmeyer
Wissenschaftlicher Mitarbeiter
Research Assistant

UNIVERSITÄT ZU LÜBECK
UNIVERSITY OF LUEBECK, GERMANY
INSTITUT FÜR MEDIZINISCHE INFORMATIK
INSTITUTE OF MEDICAL INFORMATICS

Ratzeburger Allee 160
Rm. 064.100 2000 010.00
23538 Lübeck
GERMANY

Tel +49 451 3101 5608
Fax +49 451 3101 5604
***@imi.uni-luebeck.de<mailto:***@imi.uni-luebeck.de>

www.imi.uni-luebeck.de<http://www.imi.uni-luebeck.de>
Andre Mastmeyer
2017-03-16 09:57:34 UTC
Permalink
Hi Stefan,

thank you for the quick reply! I don't want to compile Mitk myself right
now.
I just downloaded the provided installation package from here:
http://www.mitk.org/download/releases/MITK-2016.11/Linux/

I extract it, and try to run the program via the modified launcher
script, where
I point to the "right" QT5.6.2.

If I need to exactly start with the QT you compiled against, you need to
provide
the shared libs (*.so) additionally (zip-file?). The best would be an
all-in package with all dependencies.
There are tools on the www to automatically generate such packages with
all dependencies, which are then as convenient as MS Windows installers.
Just extract and run from the folder...

Best regards,
Andre
Post by Dinkelacker, Stefan
Hi,
is it possible that you linked MITK with the system Qt but now are trying to point Qt to another installed version in your directory? When you didn't give a hint to CMake, the FindQt script has most probably found the system-version of Qt. Check the Qt variables like Qt5_Core_DIR or similar in CMake to see which one was selected by the script. To manually chose the right Qt version, you would have to set CMAKE_PREFIX_PATH to /data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64 before (!) the first configure run. You would now need to delete *all* Qt-related cache variables and set CMAKE_PREFIX_PATH before configuring again. Double check the found Qt location then.
Hope that helps,
Stefan
________________________________
Gesendet: Mittwoch, 15. März 2017 18:29
Betreff: [mitk-users] Problems getting started using Ubuntu 14/16
Hi,
I have spent a couple of hours to get the binaries running
1. install gcc-4.9 and libstdc++6.0.20
2. install Qt 5.6.2 in a out of system directory
#!/bin/sh
export QT_DEBUG_PLUGINS=1
export QT_QPA_PLATFORM=''
export QT_PLUGIN_PATH=/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins
export QT_QPA_PLUGIN_PATH=/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins
binpath=$(dirname "$(readlink -f "$0")")
appname=$(basename "$0" .sh)
export LD_LIBRARY_PATH="$binpath/bin":"$binpath/bin/plugins":"/usr/lib/gcc/x86_64-linux-gnu/4.9":$LD_LIBRARY_PATH
Cannot load library /data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so: (/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZN20QEventDispatcherUNIX6selectEiP6fd_setS1_S1_P8timespec, version Qt_5_PRIVATE_API not defined in file libQt5Core.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/libqxcb.so: (/data_kruemel2/mastmeyer/Qt5.6.2/5.6/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZN20QEventDispatcherUNIX6selectEiP6fd_setS1_S1_P8timespec, version Qt_5_PRIVATE_API not defined in file libQt5Core.so.5 with link time reference)"
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
5. Test it on a Ubuntu 16.04 - also problems with libqxcb.so: Qt_5_PRIVATE_API not found.
Maybe someone has already gone through this and can share his experience?
Best,
Andre
--
Dr. Andre Mastmeyer
Wissenschaftlicher Mitarbeiter
Research Assistant
UNIVERSITÄT ZU LÜBECK
UNIVERSITY OF LUEBECK, GERMANY
INSTITUT FÜR MEDIZINISCHE INFORMATIK
INSTITUTE OF MEDICAL INFORMATICS
Ratzeburger Allee 160
Rm. 064.100 2000 010.00
23538 Lübeck
GERMANY
Tel +49 451 3101 5608
Fax +49 451 3101 5604
www.imi.uni-luebeck.de<http://www.imi.uni-luebeck.de>
--
Dr. Andre Mastmeyer
Wissenschaftlicher Mitarbeiter
Research Assistant

UNIVERSITÄT ZU LÜBECK
UNIVERSITY OF LUEBECK, GERMANY
INSTITUT FÜR MEDIZINISCHE INFORMATIK
INSTITUTE OF MEDICAL INFORMATICS

Ratzeburger Allee 160
Rm. 064.100 2000 010.00
23538 Lübeck
GERMANY

Tel +49 451 3101 5608
Fax +49 451 3101 5604
***@imi.uni-luebeck.de

www.imi.uni-luebeck.de
Continue reading on narkive:
Loading...