On Sunday 25 April 2010 03:35:05 pm [email protected] wrote:

> Maybe i need to install Pycups elsewhere as suggested by lux-integ?
>
> I've tried editing FindSystemConfigPrinter.py with
> path/to/python/site-packages/cupshelpers - this doesn't help with
> system-config-printer either.
>
> MAC


it might  be a small nut but I ended up using this sledge-hammer:

a) made this link

ln  -s  /usr/lib/python2.6/site-packages/cups.so  /usr/local/lib/cups.so
(the cmake kludge in kde4 seems to like somesuch)

b) dispense withe the FindSystemConfigPrinter.cmake in kde and create one (in 
the modules-directory) like this:-

cat>/path/to/kdeadmin-4.4.2/modules/Findblfs_systemConfigPrinter.cmake<<"EOF"
###############################################################
SET(blfs_systemConfigPrinter_BIN_PATH
   /usr/bin
  )
FIND_PROGRAM(blfs_systemConfigPrinter_RUNTIME
  NAMES system-config-printer
  PATHS ${blfs_systemConfigPrinter_BIN_PATH}
)

FIND_PROGRAM(blfs_systemConfigPrinter_PYTHON
  NAMES  cupshelpers.py ppds.py py  
  PATHS ${blfs_systemConfigPrinter_BIN_PATH}
/usr/share/system-config-printer
/usr/lib/python2.6/site-packages/cupshelpers
)


IF (blfs_systemConfigPrinter_RUNTIME AND blfs_systemConfigPrinter_PYTHON)
   SET(blfs_systemConfigPrinter_FOUND TRUE)
ENDIF (blfs_systemConfigPrinter_RUNTIME AND blfs_systemConfigPrinter_PYTHON)

IF (blfs_systemConfigPrinter_FOUND)
   IF (NOT blfs_systemConfigPrinter_FIND_QUIETLY)
      MESSAGE(STATUS "Found system-config-printer: 
${blfs_systemConfigPrinter_PYTHON}")
   ENDIF (NOT blfs_systemConfigPrinter_FIND_QUIETLY)

ENDIF (blfs_systemConfigPrinter_FOUND)

#ELSE (blfs_systemConfigPrinter_FOUND)
   IF (blfs_systemConfigPrinter_FIND_REQUIRED)
      MESSAGE( " Error: Could not find system-config-printer")
   ENDIF (blfs_systemConfigPrinter_FIND_REQUIRED)


MARK_AS_ADVANCED(
blfs_systemConfigPrinter_RUNTIME
blfs_systemConfigPrinter_PYTHON
)
EOF
c) add this line:-
find_package(blfs_systemConfigPrinter REQUIRED)
 (line 7 I think) to  kdeadmin-4.4.2/CMakeLists.txt

replace SystemConfigPrinter  with blfs_systemConfigPrinter in  
kdeadmin-4.4.2/system-config-printer-kde/CMakeLists.txt

d) start cmake

e) pray



##############################  here is a spew from cmake I obtained after 
wielding such a  hammer

-- Check if the system is big endian - little endian
-- Found PythonInterp: /usr/bin/python2.6
-- Found Python executable: /usr/bin/python2.6
-- Found Python version: 2.6.4
-- Found Python library: /usr/lib64/libpython2.6.so
-- Found SIP version: 4.10.1
-- Found PyQt4 version: 4.7.2
-- Found PyKDE4 version 4.4.2 /usr/share/sip/PyKDE4
-- Found pycups: /usr/local/lib64/cups.so
-- Found 
system-config-printer: 
/usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py
-- Configuring done
-- Generating done
-- Build files have been written to: $SOURCES/kdeadmin-4.4.2/build


nb  
#########  you might want to try a similar less elaborate find for pyCUPS  
(beforehand)


good luck

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to