[ac] ld.so.conf.d - czemu u mnie nie działa ? . Ścieżki i tak trzeba dodawać w /etc/ld.so.conf :/
Mateusz Korniak
mateusz w ant.gliwice.pl
Pią, 3 Lut 2006, 12:50:51 CET
Mam wpisy (std dla Ac):
# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
# cat /etc/ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/X11R6/lib
Ale ścieżki z katalogu nie są brane pod uwagę, przykład:
[matkor w beauty PyQt-x11-gpl-3.15.1]$ g++ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I.
-I/usr/include/python2.4 -I/usr/include/qt -I/usr/X11R6/include -pipe -O2 -w
-D_REENTRANT mkfeatures.cpp -o mkfeatures -L/usr/lib -L/usr/X11R6/lib
-Wl,-rpath,/usr/lib -lqt-mt -lXext -lX11 -lm -lpthread
/usr/bin/ld: warning: libXmu.so.6, needed by /usr/lib/libqt-mt.so, not found
(try using -rpath or -rpath-link)
Plik jest:
[matkor w beauty PyQt-x11-gpl-3.15.1]$ locate libXmu.so.6
/usr/X11R6/lib/libXmu.so.6.2
/usr/X11R6/lib/libXmu.so.6
Dopiero modyfikacja:
# cat /etc/ld.so.conf
/usr/X11R6/lib
include ld.so.conf.d/*.conf
Daje poprwany oczekiwany efekt:
[matkor w beauty PyQt-x11-gpl-3.15.1]$ g++ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I.
-I/usr/include/python2.4 -I/usr/include/qt -I/usr/X11R6/include -pipe -O2 -w
-D_REENTRANT mkfeatures.cpp -o mkfeatures -L/usr/lib -L/usr/X11R6/lib
-Wl,-rpath,/usr/lib -lqt-mt -lXext -lX11 -lm -lpthread
[matkor w beauty PyQt-x11-gpl-3.15.1]$
--
Mateusz Korniak
"Black holes are where God divided by zero." - Steven Wright
Więcej informacji o liście pld-users-pl