building kde-4.4.2 with xorg75 not in /usr//// this seems to work

lux-integ lux-integ at btconnect.com
Thu Apr 15 23:57:06 CEST 2010


On Wednesday 14 April 2010 09:58:50 pm lux-integ wrote:
> Thanks for the quick reply.  My setup has kde in /opt and Xorg7.5
> in /usr/X11R7.5.  It is a cblfs  based machine (pure 64 bit (not multilib)
> with nouveau-drm.  

.... this now seems to work

cd  kdebase-workspace-4.4.2
cat >cmake/modules/FindlibXi.cmake<<"EOF"
###########################################
FIND_PATH(LIBXi_INCLUDE_DIR XI.h $XORG_PREFIX/include/X11/extensions )
FIND_LIBRARY(LIBXi_LIBRARY NAMES libXi.so libXi.so.6 libXi.so.6.1.0  PATH 
$XORG_PREFIX/lib $XORG_PREFIX/lib64 ) 

IF (LIBXi_INCLUDE_DIR AND LIBXi_LIBRARY)
  IF (NOT WIN32)
       find_package(PkgConfig)    
    #pkg_check_modules(PC_XI QUIET Xi)  
    # QUIET  if you dont want to see if the  correct version of libXi was 
detected 
    pkg_check_modules(PC_XI   xi)
    ENDIF (NOT WIN32)
   SET(LIBXi_FOUND TRUE)
ENDIF (LIBXi_INCLUDE_DIR AND LIBXi_LIBRARY)
IF (LIBXi_FOUND)
   IF (NOT libXi_FIND_QUIETLY)
      message(STATUS "Found libXi: ${LIBXi_LIBRARY}")
   ENDIF (NOT libXi_FIND_QUIETLY)
ELSE (LIBXi_FOUND)
   IF (libXi_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find libXi")
   ENDIF (libXi_FIND_REQUIRED)
ENDIF (LIBXi_FOUND)
MARK_AS_ADVANCED(LIBXi_INCLUDE_DIR  LIBXi_LIBRARY)
EOF

cd  $SOURCES/kdebase-workspace-4.4.2

cat  CMakeLists.txt | sed -e '25 i find_package(libXi REQUIRED)' 
>CMakeLists.txt2
mv -v CMakeLists.txt2 CMakeLists.txt

cd  cmake/modules
cat  CMakeLists.txt | sed  -e 's/^/               /' -e  '6 i FindlibXi.cmake' 
>CMakeLists.txt3
mv -v CMakeLists.txt3 CMakeLists.txt

#(last sed tried to  insert 15 paces amd line insertion;  it didt not work 
perhaps using tabs is better )

########### findi libXi not in /usr
-- checking for module 'xi'
--   found xi, version 1.3
-- Found libXi: $XORG_PREFIX/lib64/libXi.so

# the compilation then goes to completion

Generating bgrender.moc
Generating krootimage.moc
[100%] Built target krootimage_automoc
Scanning dependencies of target krootimage
[100%] Building CXX object 
kdm/kfrontend/CMakeFiles/krootimage.dir/krootimage_automoc.o
[100%] Building CXX object 
kdm/kfrontend/CMakeFiles/krootimage.dir/krootimage.o
[100%] Building CXX object 
kdm/kfrontend/CMakeFiles/krootimage.dir/__/__/kcontrol/kdm/background/bgrender.o
[100%] Building CXX object 
kdm/kfrontend/CMakeFiles/krootimage.dir/__/__/kcontrol/kdm/background/bgsettings.o
Linking CXX executable krootimage
[100%] Built target krootimage


More information about the Kde-buildsystem mailing list