Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxcb-xinerama not found #779

Closed
GoldSnake2100 opened this issue Oct 17, 2023 · 8 comments
Closed

libxcb-xinerama not found #779

GoldSnake2100 opened this issue Oct 17, 2023 · 8 comments
Assignees
Labels
Awaiting This task depends on the other not QuasarApp task. Linux Linux version Wontfix This will not be worked on

Comments

@GoldSnake2100
Copy link

I built my app installer on ubuntu220.0.4, and it works on the machine. But I run the installer on other machine runs ubuntu 22.0.4, the installer does not work.
This is the log when I run the installer.

./InstallerCOMINT.run: error while loading shared libraries: libxcb-xinerama.so.0: cannot open shared object file: No such file or directory

I tried to add extraLibs option, but it results same.

This is deploy command I used.

cqtdeployer -bin COMINT -qmake /home/hkc/Qt/6.5.2/gcc_64/bin/qmake -qmlDir /home/hkc/Comint/COMINT/resource/qml -extraLibs libxcb-xinerama qif

@EndrII
Copy link
Member

EndrII commented Oct 18, 2023

@GoldSnake2100 can you send me verbose log of cqtdeployer tool ?
just add -verbose 3 to your deploy command

@EndrII EndrII self-assigned this Oct 18, 2023
@GoldSnake2100
Copy link
Author

Here is attacted the verbose log file.
verbose-log.txt

@EndrII
Copy link
Member

EndrII commented Oct 18, 2023

Hm, libxcb-xinerama.so.0 is dependency of the system xcb library that is a depends on the qt plugins, so just mark this lib as a depends on your executable.
Use the new extraDepends option

-extraDepends libxcb-xinerama.so.0

Its library ignored because, add all xcb libs into distribution it is not safe, so CQtDeployer ignore it by default.

@GoldSnake2100
Copy link
Author

Thanks, I just tried to use the extraDepends option, but the result is same.
This is the deploy command and verbose log file
verbose-log.txt

@GoldSnake2100
Copy link
Author

The problem is just not running .run installer file, I am not sure the libxcb-xinerama lib is related with my application itself.
When I manually install libxcb-xinerama library to target machine, the installer just run and my application also works.
but I can't tell users to install the lib manually before use the installer.

@EndrII
Copy link
Member

EndrII commented Oct 18, 2023

@GoldSnake2100
I thought that the problem was in launching your program directly, and the problem was in launching the installer,
Unfortunately, you will not be able to solve it except by changing the installer type to zip or deb,

This is a problem with Qt and Ubuntu, Qt is linked to the optional library of ubuntu OS.

There is a difficult way with replacing the installer base and rebuilding qt and the qt installer framework, but this is too complicated a process, I don’t think it’s worth it.


note

this problem is not, actually, because Ubuntu and another distributions move to Wayland,
in theory, these problems should not be on Wayland. Just try to run installer with option

-platform wayland

update

i was tried to launch standard qt installers (based on QIFW 4.6) with Wayland option, but installer not support this platform (

andrei@andrei-X570-GAMING-X:~/Downloads$ ./CQtDeployer_1.6.2320.097d82b_Linux_x86_64\(1\).run -platform wayland 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, xcb.

so you can run it with minimal plugin... but it is console only.

@EndrII EndrII added Wontfix This will not be worked on Linux Linux version and removed Need more info labels Oct 18, 2023
@EndrII
Copy link
Member

EndrII commented Oct 18, 2023

@GoldSnake2100 we should wait for solve this issue by Qt Installer team

@EndrII EndrII added the Awaiting This task depends on the other not QuasarApp task. label Oct 18, 2023
@EndrII
Copy link
Member

EndrII commented May 30, 2024

i close this issue, because it is qt installer framework issue.

@EndrII EndrII closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting This task depends on the other not QuasarApp task. Linux Linux version Wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants