[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: problems compiling kdebase-workspace-4.2.0//typos fixed
From:       sibu xolo <sibxol () btconnect ! com>
Date:       2009-02-28 10:03:13
Message-ID: 200902281003.13696.sibxol () btconnect ! com
[Download RAW message or body]

On Saturday 28 February 2009 03:36:15 am sibu xolo wrote:
> On Friday 27 February 2009 09:24:50 pm Eric MSP Veith wrote:
> > On Friday, 27. Feb 2009 sibu xolo wrote:
> > > I even  define a variable  export
> > > LD_LIBRARY_PATH=/usr/X11R7.4/lib  and it still fails.
> > 
> > Afaik, the CMAKE_SYSTEM_INCLUDE_PATH and CMAKE_SYSTEM_LIBRARY_PATH should
> > be used (i. e. modified) in such cases.
> > 
> > 		-- Eric
> 
> I tried
> export CMAKE_SYSTEM_INCLUDE_PATH=/usr/X11R7.4/include
> and
> export CMAKE_SYSTEM_LIBRARY_PATH=/usr/X11R7.4/lib
> 
> in bash  to no avail.  I even tied combinations with colon separated
> sub-directories such as
> 
> export CMAKE_SYSTEM_LIBRARY_PATH=/usr/X11R7.4/lib:/usr/X11R7.4/lib/dri
> 
> with the same result.
> 
> I noticed  from digging around on the net  there are  commands that can go
> in CMakeList.txt:-
> 
> INCLUDE_DIRECTORIES (...list of directories with headers)
> LINK_DIRECTORIES(,,,list of libraries for linking)
> 
> has anyone any experience of using this  modifying CMakeLists.txt for
> KDE-4.2.0?
> 
> Suggestions welcomed
> 
> 
> sincerely
> sibuxolo
> 
> > > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > > unsubscribe <<

I doscovered that the  appropriate ENVVARS are CMAKE_INCLUDE_PATH  and
CMAKE_LIBRARY_PATH

when 

> export CMAKE_INCLUDE_PATH=/usr/X11R7.4/include
> and
> export CMAKE_LIBRARY_PATH=/usr/X11R7.4/lib

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/libXft.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/libXft.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-workspace-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


###  B0 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/plasma_package_ggl_automoc.o
 [ 73%] Building CXX object 
plasma/scriptengines/google_gadgets/CMakeFiles/plasma_package_ggl.dir/ggl_package.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-workspace-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


sincerely
sibuXolo
 
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic