Red Hat Bugzilla – Bug 193258
qt4: /usr/bin/ld: cannot find -lXi
Last modified: 2007-11-30 17:11:33 EST
You have create package where it is not possible to build apps using Qt4.
When I use the orginal packe from TT all works fine. When using your package it
is not posible to compile apps. Because you have modifed the linker paramter.
And so linking fails at FC4 with /usr/bin/ld: cannot find -lXi
Looks like -lXi needs to be stripped from the output of
pkgconfig --libs QtGui
No that is not the problem. You Qt packe search in the wrong place for the lib.
When I use my own QT build the lib Xi will be linked correct.
Either solution works, but I prefer stripping the extra lib baggage.
Try (as root),
sed -i -e "s|-lXi ||g" /usr/lib/qt4/lib/*.pc
and you should be fine.
So I have found that the error you must include the libdir for the X11R6 libs.
-L/usr/X11R6/lib is missing in your qt compiler profile
I'm planning on putting -L/usr/X11R6/lib back (to be safe(r)), and remove -lXi.
no that will be wrong -lXi and -L/usr/X11R6/lib is needed.
new build queue'd, to appear soon in a repo near you...
* Fri May 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.1.3-5
- strip -lXi from .pc files (#193258)
- simplify sql plugin builds via %buildSQL macro
- -libdir %qt_libdir