On Saturday 28 February 2009 10:13:00 am lux-integ wrote: > On Friday 27 February 2009 02:26:56 pm Ken Moffat wrote: > > On Fri, Feb 27, 2009 at 01:03:42AM +0000, lux-integ wrote: > > > On Thursday 26 February 2009 05:56:38 pm Ken Moffat wrote: > > > > It's part of kdebindings, is it not ? > > > > > > yes it is. I was trying to compile the pyKDE4 as kde-workspace-4.2.0 > > > needed it as an OPTION. However the cmake did not work one had to use > > > python. For some unknown reason, the machine ran out of memory. i am > > > using a machine with 1G RAM. Anyway I solved to problem by installing > > > kdebindings-4.2.0. I then run into the problem compiling > > > kde-workspace-4.2.0 as shown below. > > > > > > ###problems compiling kdebase-workspace-4.2.0 > > > (host clfs pure-64bit-amd64 linux-kernel 2.6.27.7 gcc 4.3.2) ### > > > > > > Linking CXX shared module ../../../lib/plasma_package_ggl.so > > > /usr/bin/ld: cannot find -lSM > > > > so, where is libSM.so ? > > > > From memory, QT (and therefore kde, I suppose) assumes xorg is in > > /usr/X11R6. Horribly anachronistic, but not a problem for those of > > us who build X in /usr. If you have built some, or all, of xorg in > > a different prefix, you may need to tell the build process. > > > > With traditional 'configure' that's just a matter of looking at the > > script and working out how to force it (e.g. LDFLAGS=-L/path/to/lib) > > when there is not an easier way to override it. With cmake, I have > > no idea. Presumably, it doesn't actually test for libSM in any of > > the cmake files (both those already installed in /usr/share, and > > those in the workspace tarball), otherwise it should have already > > fixed this. > > > > Actually, I'm on the box with a fullish 4.2.0 installed. Nothing > > useful in the cmake files that I can see. Grepping in the > > kdebase-workspace code, I guess the problem is in ksmserver but I > > can't see any ways to add options there. > > > > Perhaps you can provide a symlink for libSM.so from wherever the > > build process is looking (I guess /usr/lib is probably easiest). > > I'm sorry, I find cmake to be an abomination and more or less > > impossible to debug. > > > > ĸen > > -- > > das eine Mal als Tragödie, das andere Mal als Farce > > On Friday 27 February 2009 02:26:56 pm Ken Moffat wrote: > > Perhaps you can provide a symlink for libSM.so from wherever the > > build process is looking (I guess /usr/lib is probably easiest). > > I'm sorry, I find cmake to be an abomination and more or less > > impossible to debug. > > when the libraries libICE.so libSM.so et al in /usr/X11R7.4/lib are > linked to equivalents in /usr/lib cmake complains of the symlink but > the make proceeds pass failing at finding these libraries (it fails > at the next one to be symlinked!) > > when > export CMAKE_INCLUDE_PATH=/usr/X11R7.4/include > and > export CMAKE_LIBRARY_PATH=/usr/X11R7.4/lib > are done in bash prior to the cmake command > > cmake now recognises /usr/X11R7.4 (see below) BUT the compile still > fails. It is as if some makefile somewhere has these libraries hardwired > to be in /usr! > > > ### compiler spew building kde-workspace-4.2.0##### > ###(a) running cmake):- > > mkdir: created directory `build' > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Looking for Q_WS_X11 > -- Looking for Q_WS_X11 - found > -- Looking for Q_WS_WIN > -- Looking for Q_WS_WIN - not found. > -- Looking for Q_WS_QWS > -- Looking for Q_WS_QWS - not found. > -- Looking for Q_WS_MAC > -- Looking for Q_WS_MAC - not found. > -- Found Qt-Version 4.4.3 (using /opt/qt-4.4.3/bin/qmake) > -- Looking for XOpenDisplay > in > /usr/X11R7.4/lib/libX11.so;/usr/X11R7.4/lib/libXext.so;/usr/X11R7.4/lib/lib >Xft.so;/usr/X11R7.4/lib/libXau.so;/usr/X11R7.4/lib/libXdmcp.so;/usr/X11R7.4/ >lib/libXpm.so -- Looking for XOpenDisplay > in > /usr/X11R7.4/lib/libX11.so;/usr/X11R7.4/lib/libXext.so;/usr/X11R7.4/lib/lib >Xft.so;/usr/X11R7.4/lib/libXau.so;/usr/X11R7.4/lib/libXdmcp.so;/usr/X11R7.4/ >lib/libXpm.so - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for connect > -- Looking for connect - found > -- Looking for remove > -- Looking for remove - found > -- Looking for shmat > -- Looking for shmat - found > -- Looking for IceConnectionNumber in ICE > -- Looking for IceConnectionNumber in ICE - found > -- Found X11: /usr/X11R7.4/lib/libX11.so > -- Looking for include files CMAKE_HAVE_PTHREAD_H > -- Looking for include files CMAKE_HAVE_PTHREAD_H - found > -- Looking for pthread_create in pthreads > -- Looking for pthread_create in pthreads - not found > -- Looking for pthread_create in pthread > -- Looking for pthread_create in pthread - found > -- Found Threads: TRUE > -- Found Automoc4: /opt/kde-4.2.0/bin/automoc4 > -- Found Perl: /usr/bin/perl > -- Performing Test _OFFT_IS_64BIT > -- Performing Test _OFFT_IS_64BIT - Success > -- Performing Test HAVE_FPIE_SUPPORT > -- Performing Test HAVE_FPIE_SUPPORT - Success > -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL > -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success > -- Performing Test __KDE_HAVE_GCC_VISIBILITY > -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success > -- Phonon Version: 4.3.50 > -- Found Phonon: /opt/kde-4.2.0/lib/libphonon.so > -- Found Phonon Includes: /opt/kde-4.2.0/include/KDE;/opt/kde-4.2.0/include > -- Found KDE 4.2 include dir: /opt/kde-4.2.0/include > -- Found KDE 4.2 library dir: /opt/kde-4.2.0/lib > -- Found the KDE4 kconfig_compiler > preprocessor: /opt/kde-4.2.0/bin/kconfig_compiler > -- Found automoc4: /opt/kde-4.2.0/bin/automoc4 > -- Strigi API needs 'signed char' > -- Found Strigi: /opt/kde-4.2.0/lib/libstreams.so > -- checking for module 'qimageblitz' > -- found qimageblitz, version 4.0.0 > -- Found QImageBlitz: /opt/kde-4.2.0/include/qimageblitz > -- Found ZLIB: /usr/lib/libz.so > -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig > -- Found GLIB2: /opt/lib/libglib-2.0.so > -- checking for module 'fontconfig' > -- found fontconfig, version 2.6.0 > -- Found Fontconfig: /usr/lib/libfontconfig.so > -- checking for modules 'libggadget-1.0>=0.10.5;libggadget-qt-1.0>=0.10.5' > -- found libggadget-1.0, version 0.10.5 > -- found libggadget-qt-1.0, version 0.10.5 > -- Found Googlegadgets: > ggadget-qt-1.0;ggadget-1.0;QtGui;png;SM;ICE;QtCore;z;gthread-2.0;rt;glib-2. >0;pthread;Xi;Xrender;Xrandr;freetype;fontconfig;Xext;X11;m;dl -- checking > for modules 'eet;qzion>=0.3.0;qedje>=0.3.0' > -- found eet, version 1.1.0 > -- found qzion, version 0.3.0 > -- found qedje, version 0.3.0 > -- Found > QEdje: > /opt/kde-4.2.0/lib/libqedje.so;/opt/kde-4.2.0/lib/libqzion.so;/opt/kde-4.2. >0/lib/libeet.so -- Found PythonInterp: /usr/bin/python2.5 > -- Found Python executable: /usr/bin/python2.5 > -- Found Python version: 2.5.2 > -- Found Python library: /usr/lib/libpython2.5.so > -- Found SIP version: 4.7.9 > -- Found PyQt4 version: 4.4.4 > -- Found PyKDE4 version 4.2.00 /usr/share/sip/PyKDE4 > -- Found Soprano: /opt/kde-4.2.0/lib/libsoprano.so > -- Found Soprano includes: /opt/kde-4.2.0/include > -- Found Soprano Index: /opt/kde-4.2.0/lib/libsopranoindex.so > -- Found Soprano Client: /opt/kde-4.2.0/lib/libsopranoclient.so > -- Found Soprano Plugin Dir: /opt/kde-4.2.0/share/soprano/plugins > -- Found Soprano Plugins: nquadparser nquadserializer sesame2backend > -- Found NEPOMUK: /opt/kde-4.2.0/lib/libnepomuk.so > -- Performing Test PAM_MESSAGE_CONST > -- Performing Test PAM_MESSAGE_CONST - Success > -- Found PAM: /usr/lib/libpam.so;/usr/lib/libdl.so > -- Looking for getspnam > -- Looking for getspnam - found > -- Looking for crypt in crypt > -- Looking for crypt in crypt - found > -- Looking for include files HAVE_CRYPT_H > -- Looking for include files HAVE_CRYPT_H - found > -- Looking for XkbLockModifiers in X11 > -- Looking for XkbLockModifiers in X11 - not found > -- Looking for getpassphrase > -- Looking for getpassphrase - not found > -- Looking for vsyslog > -- Looking for vsyslog - found > -- Looking for statvfs > -- Looking for statvfs - found > -- Looking for include files HAVE_LIMITS_H > -- Looking for include files HAVE_LIMITS_H - found > -- Looking for include files HAVE_SYS_TIME_H > -- Looking for include files HAVE_SYS_TIME_H - found > -- Looking for include files HAVE_STDINT_H > -- Looking for include files HAVE_STDINT_H - found > -- Looking for include files HAVE_SYS_VFS_H > -- Looking for include files HAVE_SYS_VFS_H - found > -- Looking for include files HAVE_SYS_STATVFS_H > -- Looking for include files HAVE_SYS_STATVFS_H - found > -- Looking for include files HAVE_SYS_PARAM_H > -- Looking for include files HAVE_SYS_PARAM_H - found > -- Looking for include files HAVE_SYS_MOUNT_H > -- Looking for include files HAVE_SYS_MOUNT_H - found > -- Looking for include files HAVE_SYS_STATFS_H > -- Looking for include files HAVE_SYS_STATFS_H - found > -- Looking for statfs > -- Looking for statfs - found > -- Looking for sys/types.h > -- Looking for sys/types.h - found > -- Looking for stddef.h > -- Looking for stddef.h - found > -- Check size of struct ucred > -- Check size of struct ucred - failed > -- Looking for getpeereid > -- Looking for getpeereid - not found > -- checking for module 'xrandr>=1.2' > -- found xrandr, version 1.2.3 > -- Looking for include files HAVE_SYS_PTRACE_H > -- Looking for include files HAVE_SYS_PTRACE_H - found > -- Looking for include files HAVE_SYS_ENDIAN_H > -- Looking for include files HAVE_SYS_ENDIAN_H - not found. > -- Looking for include files HAVE_BYTESWAP_H > -- Looking for include files HAVE_BYTESWAP_H - found > -- Performing Test HAVE_KSYSGUARD_SUPPORTED_REGS_STRUCT > -- Performing Test HAVE_KSYSGUARD_SUPPORTED_REGS_STRUCT - Failed > -- Looking for include files HAVE_PATHS_H > -- Looking for include files HAVE_PATHS_H - found > -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig > -- Looking for _IceTransNoListen in ICE > -- Looking for _IceTransNoListen in ICE - not found > -- Performing Test HAVE_MMMX > -- Performing Test HAVE_MMMX - Success > -- Found PNG: /usr/lib/libpng.so > -- Performing Test X86_MMX_FOUND > -- Performing Test X86_MMX_FOUND - Success > -- Found Sensors: /usr/include > -- Looking for include files SYS_INOTIFY_H_FOUND > -- Looking for include files SYS_INOTIFY_H_FOUND - found > -- Looking for addToUtmp in utempter > -- Looking for addToUtmp in utempter - not found > -- Looking for include files HAVE_UTEMPTER_H > -- Looking for include files HAVE_UTEMPTER_H - not found. > -- Looking for XF86MiscSetGrabKeysState in Xxf86misc > -- Looking for XF86MiscSetGrabKeysState in Xxf86misc - not found > -- Looking for glXChooseVisual in GL > -- Looking for glXChooseVisual in GL - not found > -- checking for one of the modules 'NetworkManager' > -- found NetworkManager, version 0.7.0 > -- checking for one of the modules 'libnm-util' > -- found libnm-util, version 0.7.0 > -- Found NetworkManager 0.7.0: > -- Found libnm-util: /usr/local/lib;/opt/lib > -- checking for module 'bluez' > -- found bluez, version 3.31 > -- Found BlueZ: /opt/bluez-3.3.1/include > -- Will build networkmanger-0.7 > -- checking for module 'xmms' > -- package 'xmms' not found > -- Found Xmms: /opt/lib/libxmms.so > -- Found XMMS: the nowplaying dataengine will support XMMS 1.x > -- Could NOT find KdepimLibs (missing: KdepimLibs_CONFIG) > -- Found Soprano: /opt/kde-4.2.0/lib/libsoprano.so > -- Found Soprano includes: /opt/kde-4.2.0/include > -- Found Soprano Index: /opt/kde-4.2.0/lib/libsopranoindex.so > -- Found Soprano Client: /opt/kde-4.2.0/lib/libsopranoclient.so > -- Found Soprano Plugin > Dir: /opt/kde-4.2.0/share/soprano/plugins/soprano/plugins > -- Found Soprano Plugins: nquadparser nquadserializer sesame2backend > -- Found Freetype: -lfreetype -lz > -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig > -- Found > LibXKlavier: -I/opt/include/glib-2.0 -I/opt/lib/glib-2.0/include > -I/usr/include/libxml2 -I/opt/include -- checking for module 'gobject-2.0' > -- found gobject-2.0, version 2.18.3 > -- Found GObject > libraries: > /opt/lib/libgobject-2.0.so;/opt/lib/libgmodule-2.0.so;/opt/lib/libgthread-2 >.0.so;/opt/lib/libglib-2.0.so -- Found GObject includes : > /opt/include/glib-2.0/gobject > -- checking for module 'libusb' > -- found libusb, version 0.1.12 > -- Found LIBUSB: /usr/lib/libusb.so > -- > /usr/src/build-08/vpn-08/sources-vpnc08/kde-vpnc-08/kde-4.2.0/kdebase-works >pace-4.2.0/kcontrol: skipped subdir $(KSMCARD_SUBDIR) > -- checking for module 'ck-connector' > -- found ck-connector, version 0.3.0 > -- Found ck-connector: /usr/lib/libck-connector.so > -- checking for module 'dbus-1' > -- found dbus-1, version 1.2.4 > -- Found D-Bus: /usr/lib/libdbus-1.so > -- Performing Test HAVE_STRUCT_PASSWD_PW_EXPIRE > -- Performing Test HAVE_STRUCT_PASSWD_PW_EXPIRE - Failed > -- Performing Test HAVE_STRUCT_UTMP_UT_USER > -- Performing Test HAVE_STRUCT_UTMP_UT_USER - Success > -- Performing Test HAVE_STRUCT_UTMP_UT_HOST > -- Performing Test HAVE_STRUCT_UTMP_UT_HOST - Success > -- Looking for include files HAVE_LASTLOG_H > -- Looking for include files HAVE_LASTLOG_H - found > -- Looking for include files HAVE_TERMIO_H > -- Looking for include files HAVE_TERMIO_H - found > -- Looking for include files HAVE_TERMIOS_H > -- Looking for include files HAVE_TERMIOS_H - found > -- Looking for sysinfo > -- Looking for sysinfo - found > -- Looking for systeminfo > -- Looking for systeminfo - not found. > -- Looking for getdomainname > -- Looking for getdomainname - not found. > -- Looking for initgroups > -- Looking for initgroups - found > -- Looking for mkstemp > -- Looking for mkstemp - found > -- Looking for getusershell > -- Looking for getusershell - found > -- Performing Test HAVE_SETLOGIN > -- Performing Test HAVE_SETLOGIN - Failed > -- Looking for seteuid > -- Looking for seteuid - found > -- Looking for include files HAVE_CRT_EXTERNS_H > -- Looking for include files HAVE_CRT_EXTERNS_H - not found. > -- Looking for _NSGetEnviron > -- Looking for _NSGetEnviron - not found > -- Looking for setusercontext > -- Looking for setusercontext - not found > -- Looking for login_getclass > -- Looking for login_getclass - not found > -- Looking for auth_timeok > -- Looking for auth_timeok - not found > -- Looking for pam_getenvlist > -- Looking for pam_getenvlist - found > -- Looking for authenticate in s > -- Looking for authenticate in s - not found > -- Looking for sched_yield in posix4 > -- Looking for sched_yield in posix4 - not found > -- Looking for connect in socket > -- Looking for connect in socket - not found > -- Looking for dn_expand in resolv > -- Looking for dn_expand in resolv - not found > -- Looking for getutent > -- Looking for getutent - found > -- Looking for updwtmp > -- Looking for updwtmp - found > -- Looking for arc4random > -- Looking for arc4random - not found > -- Looking for XdmcpWrap > -- Looking for XdmcpWrap - found > -- Looking for getifaddrs > -- Looking for getifaddrs - found > -- Looking for getloadavg > -- Looking for getloadavg - found > -- Looking for setproctitle > -- Looking for setproctitle - not found > -- Looking for strnlen > -- Looking for strnlen - found > -- Performing Test HAVE_STRUCT_SOCKADDR_IN_SIN_LEN > -- Performing Test HAVE_STRUCT_SOCKADDR_IN_SIN_LEN - Failed > -- Performing Test HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN > -- Performing Test HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN - Failed > -- > --------------------------------------------------------------------------- >-- -- The following external packages were located on your system. > -- This installation will have the extra features provided by these > packages. + glib2 > + GoogleGadgets > + QEdje > + Python > + Soprano > + Nepomuk > + libxss > + libxext > + Compositing support > + Captury framework library > + lm-sensors > + BlueZ > + NetworkManager > + XMMS > + Soprano > + FreeType > + libxklavier > + xkbfile > + libusb > + libxft > + ck-connector > Congratulations! All external packages have been found. > --------------------------------------------------------------------------- >-- > > -- Configuring done > -- Generating done > > > ### b) running make - I get this at 73% completion ####### > > [ 73%] Built target plasma_package_ggl_automoc > Scanning dependencies of target plasma_package_ggl > [ 73%] Building CXX object > plasma/scriptengines/google_gadgets/CMakeFiles/plasma_package_ggl.dir/plasm >a_package_ggl_automoc.o [ 73%] Building CXX object > plasma/scriptengines/google_gadgets/CMakeFiles/plasma_package_ggl.dir/ggl_p >ackage.o In file included > from > /opt/kde-4.2.0/include/google-gadgets/ggadget/scriptable_interface.h:22, > from /opt/kde-4.2.0/include/google-gadgets/ggadget/scriptable_helper.h:22, > > from /opt/kde-4.2.0/include/google-gadgets/ggadget/scriptable_menu.h:20, > > from /opt/kde-4.2.0/include/google-gadgets/ggadget/event.h:22, > > from /opt/kde-4.2.0/include/google-gadgets/ggadget/view_interface.h:20, > > from > /opt/kde-4.2.0/include/google-gadgets/ggadget/view_host_interface.h:21, > from /opt/kde-4.2.0/include/google-gadgets/ggadget/host_interface.h:22, > > from > /usr/src/build-08/vpn-08/sources-vpnc08/kde-vpnc-08/kde-4.2.0/kdebase-works >pace-4.2.0/plasma/scriptengines/google_gadgets/ggl_package.cpp:25: > /opt/kde-4.2.0/include/google-gadgets/ggadget/variant.h:740: warning: > unused parameter 'v' > In file included > from /opt/kde-4.2.0/include/google-gadgets/ggadget/scriptable_helper.h:23, > > from /opt/kde-4.2.0/include/google-gadgets/ggadget/scriptable_menu.h:20, > > from /opt/kde-4.2.0/include/google-gadgets/ggadget/event.h:22, > > from /opt/kde-4.2.0/include/google-gadgets/ggadget/view_interface.h:20, > > from > /opt/kde-4.2.0/include/google-gadgets/ggadget/view_host_interface.h:21, > from /opt/kde-4.2.0/include/google-gadgets/ggadget/host_interface.h:22, > > from > ~/kde-4.2.0/kdebase-workspace-4.2.0/plasma/scriptengines/google_gadgets/ggl >_package.cpp:25: > /opt/kde-4.2.0/include/google-gadgets/ggadget/signals.h:198: warning: > unused parameter 'obj' > In file included > ~/kde-vpnc-08/kde-4.2.0/kdebase-workspace-4.2.0/plasma/scriptengines/google >_gadgets/ggl_package.cpp:34: > /opt/kde-4.2.0/include/google-gadgets/ggadget/qt/qt_view_host.h:79: > warning: unused parameter 'button' > /opt/kde-4.2.0/include/google-gadgets/ggadget/qt/qt_view_host.h:79: > warning: unused parameter 'hittest' > ~/kde-4.2.0/kdebase-workspace-4.2.0/plasma/scriptengines/google_gadgets/ggl >_package.cpp:241: warning: unused parameter 'parent' > Linking CXX shared module ../../../lib/plasma_package_ggl.so > /usr/bin/ld: cannot find -lSM > collect2: ld returned 1 exit status > make[2]: *** [lib/plasma_package_ggl.so] Error 1 > make[1]: *** > [plasma/scriptengines/google_gadgets/CMakeFiles/plasma_package_ggl.dir/all] > Error 2 > make: *** [all] Error 2 > > > ##### > > like the use of LDFLAGS -l<library> in gnu configure is there an > equivalent definition with cmake? or is there some way to tell the > compiler to use the libICE.so libSM.so et al in /usr/X11R7.4/lib and > not > in /usr/lib? > > suggestions welcomed > > > > lux-integ
I have just discovered if you use the Linker-flags and the Header-flags (LDFLAGS and CPPFLAGS respectively) in front of cmake. the build goes to completion yippiee! -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page