names etc

lux-integ lux-integ at btconnect.com
Thu Apr 15 14:41:10 CEST 2010


Greetings,

I am having difficulty compiling kdebase-workspace-4.4.2  on on a pure-64-bit 
linux (kernel-2.6.33) setup.  I already   described details of the problem ( 
http://mail.kde.org/pipermail/kde-buildsystem/2010-April/006863.html     ).

Basically I do not have Xorg-7.5 in /usr and although some X-libraries are 
found   quite a few are not  ( For example  trawling through build/cmake  
revealed (not just for libXi which aborted the compilation) the following):-

####  excerpts  from build/CMakeError.log ##############


/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common  -DCHECK_FUNCTION_EXISTS=XkbLockModifiers   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lX11 /usr/X11R7.5/lib64/libSM.so /usr/X11R7.5/lib64/libICE.so /usr/X11R7.5/lib64/libX11.so /usr/X11R7.5/lib64/libXext.so /usr/X11R7.5/lib64/libXft.so /usr/X11R7.5/lib64/libXau.so /usr/X11R7.5/lib64/libXdmcp.so /usr/X11R7.5/lib64/libXpm.so -Wl,-rpath,/usr/X11R7.5/lib64 
/usr/bin/ld: cannot find -lX11

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common  -DCHECK_FUNCTION_EXISTS=XF86MiscSetGrabKeysState   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lXxf86misc 
/usr/bin/ld: cannot find -lXxf86misc

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common  -DCHECK_FUNCTION_EXISTS=_IceTransNoListen   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lICE 
/usr/bin/ld: cannot find -lICE

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common  -DCHECK_FUNCTION_EXISTS=glXChooseVisual   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lGL 
/usr/bin/ld: cannot find -lGL

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common  -DCHECK_FUNCTION_EXISTS=XScreenSaverQueryInfo   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lXss 
/usr/bin/ld: cannot find -lXss

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common  -DCHECK_FUNCTION_EXISTS=_XiGetDevicePresenceNotifyEvent   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lXi 
/usr/bin/ld: cannot find -lXi



I   therefore am planning to have a go at using the techniques described here  
for Imagemagick  ( http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries  )  
to find the required xlibraries. I have two sets of questions:-

SET A:-
I do not know the 'names' used by kde/cmake to describe these  'packages' 

a) is it the library name  such as lX11, lXxf86misc, lICE, lGL, lXi  or are 
these prefixed by lib such as libX11, libXxf86misc, libICE, libGL, libXi ?
b) is in the 'package.config' name such as xi.pc etc ?
c) is it something else and if so what is it?

SET B:-
I do not know how pkgconfig is called by cmake  nor the search path for *.pc 
files   are handled by cmake   though I have tried reading the cmake online 
manual  Thus:-

a) is there an Environmental_variable  setting for  PkgConfigPath for cmake 
and if so what is it? OR
b) does cmake rely on the $PKG_CONFIG_PATH variable setting   in /etc/profile?
c) how is pkgconfig  called in cmake?  -is with package name (i.e. *.pc ) (or 
otherwise -and what is returned?

 
Replies would be appreciated.

sincerely

lux-integ


More information about the Kde-buildsystem mailing list