On Sunday 25 April 2010 10:55:59 pm [email protected] wrote:
> -----Original Message-----
> From: lux-integ <[email protected]>
> To: [email protected]
> Cc: [email protected]; [email protected]
> Sent: Sun, Apr 25, 2010 5:33 pm
> Subject: Re: Problem in cmake on kdeadmin-4.4.2
>
> 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
>
> Tried this but doesn't work, also tried flagging and a link to
> /opt/kde/lib!  No luck
>
> >b) dispense withe the FindSystemConfigPrinter.cmake in kde and create
>
> one (in
>
> >the modules-directory) like this:-
>
> Thanks for the script - this works, I'm now getting
> 'system-config-printer' recognised:
>
> -- Found system-config-printer:
> /usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py,
>
> >nb
> >#########  you might want to try a similar less elaborate find for
>
> pyCUPS
>
> >(beforehand)
>
> Tried a script for this but no luck, just cannot get cmake find cups.so

try this
dispense with the kde4 supplied   FindpyCUPS.cmake  (it needs updating)

create this file
cat>/path/to/kdeadmin-4.4.2/modules/Findblfs_pyCUPS.cmake<<"EOF"
###############################################################
FIND_LIBRARY(
  blfs_pyCUPS_LIBRARY 
  NAMES cups.so  
  PATH 
  /usr/lib/python2.6/site-packages 
  /usr/local/lib 
    ) 

IF (  blfs_pyCUPS_LIBRARY)
   SET(blfs_pyCUPS_FOUND TRUE)
   MESSAGE(STATUS "Found pycups: ${blfs_pyCUPS_LIBRARY}")
ENDIF (  blfs_pyCUPS_LIBRARY)

IF (blfs_pyCUPS_FOUND)
   IF (cups_FIND_QUIETLY)
      MESSAGE(STATUS "Found pycups: ${blfs_pyCUPS_LIBRARY}")
   ENDIF ( cups_FIND_QUIETLY)
ELSE (blfs_pyCUPS_FOUND)
   IF (cups_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find pycups")
   ENDIF (cups_FIND_REQUIRED)
ENDIF (blfs_pyCUPS_FOUND)
MARK_AS_ADVANCED( blfs_pyCUPS_LIBRARY)
EOF

AS with FindSystemConfigPrinter.cmake:-
###A  add  this line :- 
find_package(blfs_pyCUPS REQUIRED)
(line 7)
to   kdeadmin-4.4.2/CMakeLists.txt

###B change
macro_optional_find_package(PyCups)
to 
macro_optional_find_package(blfs_pyCUPS)
in  kdeadmin-4.4.2/system-config-printer-kde/CMakeLists.txt

##########
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