On 01/21/2014 07:50 PM, David C. Rankin wrote:
On 01/21/2014 06:35 PM, Slávek Banko wrote:
> And value of XSS_LIBRARIES variable is
what?
>
> Slavek
I don't know ... :-) Where would I look?
./karm/CMakeLists.txt:58: LINK kcal_resourceremote-shared tdeprint-shared
${XSS_LIBRARIES}
OK,
What do I do, add some type of print line? of just append -lXss
That's what I did with sed in the build script:
sed -i 's/XSS_LIBRARIES}/XSS_LIBRARIES} -lXss/' tdepim/karm/CMakeLists.txt
I still don't know why this was necessary, and haven't picked the
CMakeLists.txt/ConfigureChecks.cmake files apart enough to find out why
${XSS_LIBRARIES} isn't finding or including -lXss. For completeness, the libxss
package on Arch installs xscrnsaver.pc in /usr/lib/pkgconfig:
20:51 phoinix:/dat_e/ch14> cat david/usr/lib/pkgconfig/xscrnsaver.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: XScrnSaver
Description: The XScrnSaver Library
Version: 1.2.2
Requires: scrnsaverproto
Requires.private: x11 xext
Cflags: -I${includedir}
Libs: -L${libdir} -lXss
pkg-config returns the correct library information:
20:57 phoinix:/dat_e/ch14> pkg-config --libs xscrnsaver
-lXss
However, pkg-config seems to fail to return any other useful information and I
am not familiar enough with it to know why:
20:59 phoinix:/dat_e/ch14> pkg-config --libs-only-l xscrnsaver
-lXss
21:00 phoinix:/dat_e/ch14> pkg-config --libs-only-L xscrnsaver
21:00 phoinix:/dat_e/ch14> pkg-config --cflags xscrnsaver
21:02 phoinix:/dat_e/ch14> pkg-config --cflags-only-I xscrnsaver
21:03 phoinix:/dat_e/ch14> pkg-config --cflags-only-other xscrnsaver
Does anything appear out of whack with the .pc file? I'll have to compare it
to other files to see if I can discern any differences.
--
David C. Rankin, J.D.,P.E.