Hi,
I updated the tarball [1] of the 2016.11 Linux installer and added the missing
plugins. Would be awesome if you guys could check if it really works for you as
expected now.
Thanks,
Stefan
[1]
http://mitk.org/download/releases/MITK-2016.11/Linux/MITK-2016.11.0-linux64.tar.gz
From: Federico Milano [mailto:fmil...@gmail.com]
Sent: Mittwoch, 19. Juli 2017 15:01
To: Sascha Zelzer
Cc: Dinkelacker, Stefan; mitk-users@lists.sourceforge.net
Subject: Re: [mitk-users] Linux package contains Qt libraries but no plugins
Hi Sascha,
I've actually found the same issue a while ago and made a curated list. I added
this to my install rules:
if(UNIX)
get_property(_qmake_location TARGET ${Qt5Core_QMAKE_EXECUTABLE}
PROPERTY IMPORT_LOCATION)
get_filename_component(_qmake_path "${_qmake_location}" DIRECTORY)
install(FILES "${_qmake_path}/../plugins/platforms/libqxcb.so"
DESTINATION "bin/plugins/platforms"
CONFIGURATIONS Release)
install(FILES "${_qmake_path}/../plugins/sqldrivers/libqsqlite.so"
DESTINATION "bin/plugins/sqldrivers"
CONFIGURATIONS Release)
install(FILES "${_qmake_path}/../plugins/iconengines/libqsvgicon.so"
DESTINATION "bin/plugins/iconengines"
CONFIGURATIONS Release)
install(FILES "${_qmake_path}/../lib/libQt5XcbQpa.so.5"
DESTINATION "bin"
CONFIGURATIONS Release)
install(FILES "${_qmake_path}/../lib/libQt5DBus.so.5"
DESTINATION "bin"
CONFIGURATIONS Release)
install(FILES "${_qmake_path}/../lib/libQt5Svg.so.5"
DESTINATION "bin"
CONFIGURATIONS Release)
endif()
Hope it helps!
Federico
On Wed, Jul 19, 2017 at 3:23 AM, Sascha Zelzer
<sascha.zel...@gmail.com<mailto:sascha.zel...@gmail.com>> wrote:
Hi Stefan,
there is linuxdeployqt, but it seems to have a couple of issues. With the
plugins, one would either need to copy all the plugins from the build machine,
or have a curated list of plugins required for the application to work. No tool
can possibly infer plugin dependencies without knowledge of the source code or
runtime behavior.
Best,
Sascha
On 07/18/2017 09:32 AM, Dinkelacker, Stefan wrote:
Hi Sascha,
you're right. It wasn't intended not to ship the Qt plugins within the package.
I'll check that and update the tarball. BTW, do you know something similar for
Linux like windeployqt.exe?
Best,
Stefan
-----Original Message-----
From: Sascha Zelzer
[mailto:sascha.zel...@gmail.com<mailto:sascha.zel...@gmail.com>]
Sent: Montag, 17. Juli 2017 18:40
To: mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
Subject: [mitk-users] Linux package contains Qt libraries but no plugins
Hi,
I just tried the MITK 2016.11 Linux binary (I have a MR dicom series to
view) and got the (kind of) common error:
This application failed to start because it could not find or load the Qt
platform plugin "xcb"
in "".
Reinstalling the application may fix this problem.
which is typically attributed to the Qt plugins not being found. Looking at the
bin folder, I saw that the Qt libraries are shipped in the binary package, but
not the required Qt plugins. Is there a particular reason for that?
In my view, you should either ship a complete self-contained set of Qt
libraries, or none at all. After I deleted all bin/libQt5* files, my system Qt
libraries were used by the MITK Workbench and hence also the system Qt plugins
were found and loaded (sure, some QT_PLUGIN_PATH env var trickery would also
work, but just hides the real issue). The workbench started just fine.
Let me know if I can help with this for the next release.
Thanks,
Sascha
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech
sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users