[Bug 897459] [NEW] "Multiarch support": missing libQt's symlinks when crosscompiling

David Nuñez auledoom at gmail.com
Mon Nov 28 22:52:51 UTC 2011


Public bug reported:

System: Ubuntu 11.10 amd64
libqt4-dev: 4:4.7.4-0ubuntu8 and others

Compiling a simple native app with no problems.
Trying to compile for i386(i686) arch first install the missing packages 
sudo apt-get install libqtcore4:i386 libqtgui4:i386

When compiling an app with "gcc -m32 example.o -o example -lQtCore
-lQtGui" the linker tries to link native amd64 libraries libQtGui.so and
libQtCore.so instead of i386 libs results in an error.

This happens becouse there are non symlinks to those libraries. If i create those symlinks 
cd /usr/lib/i386-linux-gnu/
sudo ln libQtCore.so.4 libQtCore.so
sudo ln libQtGui.so.4 libQtGui.so
the linker find those libs and everything works without errors.

$ apt-file -a i386 search libQtCore.so
libqt4-dbg: /usr/lib/debug/usr/lib/i386-linux-gnu/libQtCore.so.4.7.4
libqt4-dev: /usr/lib/i386-linux-gnu/libQtCore.so
libqtcore4: /usr/lib/i386-linux-gnu/libQtCore.so.4
libqtcore4: /usr/lib/i386-linux-gnu/libQtCore.so.4.7
libqtcore4: /usr/lib/i386-linux-gnu/libQtCore.so.4.7.4

The libQtCore.so symlink should be put in libqtcore4 instead of
libqt4-dev or make libqt4-dev multiarch compliant removing all binary
dependant packages.

if a try
$ sudo apt-get install libqt4-dev:i386
apt-get will need to REMOVE the native package with all symlinks and libraries to properly install the other.

** Affects: qt4-x11 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in Ubuntu.
https://bugs.launchpad.net/bugs/897459

Title:
  "Multiarch support": missing libQt's symlinks when crosscompiling

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/897459/+subscriptions




More information about the kubuntu-bugs mailing list