No libQt5Core.so, libQt5Widgets.so and libQt5Gui.so symlinks in the corresponding :i386 packages

Bug #1986936 reported by lvd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

While trying to link against corresponding libraries to get i386 executable like that:
> g++ -m32 -o filename ..... -lQt5Widgets -lQt5Gui -lQt5Core ...

I get the following errors:

> /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libQt5Widgets.so when searching for -lQt5Widgets
> /usr/bin/ld: cannot find -lQt5Widgets: No such file or directory
> /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libQt5Widgets.so when searching for -lQt5Widgets
> /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libQt5Gui.so when searching for -lQt5Gui
> /usr/bin/ld: cannot find -lQt5Gui: No such file or directory
> /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libQt5Gui.so when searching for -lQt5Gui
> /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libQt5Core.so when searching for -lQt5Core
> /usr/bin/ld: cannot find -lQt5Core: No such file or directory
> /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libQt5Core.so when searching for -lQt5Core

despite corresponging packages are installed (libqt5gui5:i386 and same for widgets and core).

Inspection of /usr/lib/i386-linux-gnu/ reveals that there is no symlinks named exactly libQt5Core.so (and same for two other libs).

Adding those symlinks by hand completely solves the problem.

I believe however that those symlinks must be installed by corresponding .debs.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1986936/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
lvd (lvd-mhm)
affects: ubuntu → qtbase-opensource-src (Ubuntu)
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

You probably need to install qtbase5-dev:i386, not just libqt5*:i386.

Revision history for this message
Tom (dgenr8) wrote :

This may be the wrong place to confirm this, and I don't know what package the link libQt5Core.so is supposed to be a part of, but I can confirm that this particular symlink was missing immediately after upgrading to 22.04 from 20.04.

No others were missing on my system.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

> what package the link libQt5Core.so is supposed to be a part of

qtbase5-dev

Changed in qtbase-opensource-src (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.