probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.22k stars 414 forks source link

exclude dependencies for libqxcb.so #527

Open thefastman opened 2 years ago

thefastman commented 2 years ago

Hello, I've experienced issue with skip some of libraries ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found" 20:15:19 ERROR: for binary: "/opt/Qt515/5.15.2/gcc_64/plugins/platforms/libqxcb.so"

Is there any way to exclude lib/libs or set flag to ignore missing dependencies ? Thanks.

probonopd commented 2 years ago

Hello, please give some more context about your system so that we can help.

Where did you get your Qt from and which Linux distribution and version are you running linuxdeployqt on?

Where is libxcb-xinerama.so.0 located on your system?

thefastman commented 2 years ago

Thanks for the quick response.

  1. Qt 5.15.2 was installed with aqt tool (https://github.com/miurahr/aqtinstall)
  2. It's Linux worker based on ubuntu 18.04
  3. linuxdeployqt downloaded from continuous release

Unfortunately, there is no way to change/install SW on linux worker. I did dirty hack and just commented exit on error

image

Yes, I see errors:

WARNING: Plugin "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/platformthemes/libqgtk2.so" not found, skipping
19:52:06   WARNING: Plugin "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/styles/libqgtk2style.so" not found, skipping
19:52:06   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:06   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/platforms/libqxcb.so"
19:52:06   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:06   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/platforms/libqxcb.so"
19:52:06   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:06   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/lib/libQt5XcbQpa.so.5"
19:52:06   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:06   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/release/lib//libQt5XcbQpa.so.5"
19:52:17   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:17   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so"
19:52:17   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:17   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so"
19:52:17   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:17   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/release/lib/libQt5XcbQpa.so.5"
19:52:17   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:17   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/release/lib/libQt5XcbQpa.so.5"
19:52:19   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:19   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
19:52:19   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:19   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/Qt515/5.15.2/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
19:52:19   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:19   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/release/lib/libQt5XcbQpa.so.5"
19:52:19   ERROR: ldd outputLine: "libxcb-xinerama.so.0 => not found"
19:52:19   ERROR: for binary: "/opt/teamcity/agent_2/work/55c6c5013baf7a09/release/lib/libQt5XcbQpa.so.5"
19:52:26   appimagetool, continuous build (commit a2d9cfc), build <local dev build> built on 2021-11-10 17:45:54 UTC
19:52:26   NOTE: Using the output of 'git rev-parse --short HEAD' as the version:

But final appImage works well.

probonopd commented 2 years ago

...on your own system. But not on others' systems, many of which probably won't have those libraries like libxcb-xinerama.so.0 installed.

probonopd commented 2 years ago

Qt 5.15.2 was installed with aqt tool (https://github.com/miurahr/aqtinstall)

Any chance you can use Qt from https://launchpad.net/~beineri instead?

Where is libxcb-xinerama.so.0 located on your system?

As a workaround, the following might work:

export LD_LIBRARY_PATH=<absolute path to the directory where libxcb-xinerama.so.0 is on your system>
VERSION=... ./linuxdeployqt*.AppImage ...
thefastman commented 2 years ago
  1. no :(
  2. /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so Thanks, I'll try. But may be it's nice to have key to ignore errors. Regards.
probonopd commented 2 years ago

But may be it's nice to have key to ignore errors.

No. It would produce broken AppImages.