[Interest] Link error while building Qt/32 on Linux 64 bits
Christian Gagneraud
chgans at gmail.com
Sun Aug 27 07:42:49 CEST 2017
On 27 August 2017 at 16:08, Thiago Macieira <thiago.macieira at intel.com> wrote:
> On Saturday, 26 August 2017 18:25:16 PDT Christian Gagneraud wrote:
>> /usr/bin/ld.gold: warning: skipping incompatible
>> //usr/lib/x86_64-linux-gnu/libSM.so while searching for SM
>> /usr/bin/ld.gold: error: cannot find -lSM
>> /usr/bin/ld.gold: warning: skipping incompatible
>> //usr/lib/x86_64-linux-gnu/libICE.so while searching for ICE
>> /usr/bin/ld.gold: error: cannot find -lICE
>> .obj/qxcbsessionmanager.o:qxcbsessionmanager.cpp:function
>> QXcbSessionManager::~QXcbSessionManager(): error: undefined reference
>> to 'SmcCloseConnection'
>
> The undefined reference is caused by the libraries listed right before it not
> being found.
Not sure to get what you mean.
Given this:
-lxcb-xinerama -L/home/krys/Projects/qt5/qtbase/lib
-lQt5ServiceSupport -lQt5ThemeSupport -lQt5EventDispatcherSupport
-lQt5FontDatabaseSupport -lfontconfig -lfreetype
-lQt5LinuxAccessibilitySupport -lQt5AccessibilitySupport -lGL -lQt5Gui
-lQt5DBus -lQt5Core -lpthread -lX11 -lX11-xcb -lXi -lSM -lICE
-lxcb-xkb -lxcb-render-util -lxcb-render -lxcb -lxcb-shm -lxcb-sync
-lxcb-xfixes -lxcb-randr -lxcb-image -lxcb-keysyms -lxcb-icccm
-lxcb-shape -lGL
Should I focus at the libs on the right or on the left of "-lSM -lICE"?
My understanding of ld tells me to look on the right (reverse dependency order).
I think I have installed all these libraries. The only weird thing i
can see comes from my libGL:
krys at krys-pc:~/Projects/qt5$ ldconfig -p | grep libGL.so
libGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-375/libGL.so.1
libGL.so.1 (libc6) => /usr/lib32/nvidia-375/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6,x86-64) => /usr/lib/nvidia-375/libGL.so
libGL.so (libc6) => /usr/lib/i386-linux-gnu/libGL.so
libGL.so (libc6) => /usr/lib32/nvidia-375/libGL.so
And apt-get always complaining with:
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link
krys at krys-pc:~/git-auklug/project/tmp$ ls -l /usr/lib*/*/libGL.*
/usr/lib*/*/mesa/libGL.*
-rw-r--r-- 1 root root 652 May 2 11:41 /usr/lib32/nvidia-375/libGL.la
lrwxrwxrwx 1 root root 10 May 6 01:13
/usr/lib32/nvidia-375/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 14 May 6 01:13
/usr/lib32/nvidia-375/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 528708 May 2 10:06 /usr/lib32/nvidia-375/libGL.so.1.0.0
lrwxrwxrwx 1 root root 13 Jun 8 19:54
/usr/lib/i386-linux-gnu/libGL.so -> mesa/libGL.so
lrwxrwxrwx 1 root root 14 Jun 8 19:54
/usr/lib/i386-linux-gnu/mesa/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root 14 Jun 8 19:54
/usr/lib/i386-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root 457224 Jun 8 19:54
/usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0
lrwxrwxrwx 1 root root 10 May 6 01:13
/usr/lib/nvidia-375/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 14 May 6 01:13
/usr/lib/nvidia-375/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 665712 May 2 09:26 /usr/lib/nvidia-375/libGL.so.1.0.0
lrwxrwxrwx 1 root root 13 Jun 8 19:54
/usr/lib/x86_64-linux-gnu/libGL.so -> mesa/libGL.so
lrwxrwxrwx 1 root root 14 Jun 8 19:54
/usr/lib/x86_64-linux-gnu/mesa/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root 14 Jun 8 19:54
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root 463424 Jun 8 19:54
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
Chris
> Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list