mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Make libcups and libcupsimage get installed by my ptxdist cups.make
@ 2014-03-03 12:48 David Thomas
  2014-03-03 14:03 ` Bart Vanhaute
  0 siblings, 1 reply; 3+ messages in thread
From: David Thomas @ 2014-03-03 12:48 UTC (permalink / raw)
  To: ptxdist

Hello,

I am trying to compile cups and ghostscript for the phycore-am335x target using ptxdist.

Most of the work is done, and both packages compile and build successfully. The problem I have is that I cannot get ghostscript to create gstoraster which is needed for cups to work with non-Postscript printers.

I already know that ghostscript requires libcups and libcupsimage from the cups package. I am trying to install them with:

	# Install the libraries.
	@$(call install_lib, cups, 0, 0, 0644, libcups)
	@$(call install_lib, cups, 0, 0, 0644, libcupsimage)

To try and help install_lib find the right packages, I have added these commands into the makefile before the calls to install_lib:

	# Copy the built libraries into a place where they will be found.
	cp --recursive $(CUPS_DIR)/cups/usr $(CUPS_DIR)
	cp --recursive $(CUPS_DIR)/filter/usr $(CUPS_DIR)

CUPS puts libcups.so.2 in $(CUPS_DIR)/cups/usr/lib/ after it has built it and it makes a symbolic link from libcups.so to it there. It puts libcupsimage.so.2 in $(CUPS_DIR)/filter/usr/lib/ after it has built it and it makes a symbolic link from libcupsimage.so to it there. The above copy commands make copies of these files in $(CUPS_DIR)/usr/lib.

The call to install libcups fails with the following:

Error: ptxd_lib_install: cannot find library 'libcups'!
make: *** [/home/z/z/phyCORE-AM335x-PD13.1.0/platform-phyCORE-AM335x/state/cups.targetinstall] Error 1
failed

I think I need to copy the libraries to somewhere else to get this to work, but I can't figure it out.

I saw something about the package's install stage having to be DESTDIR-aware. I'm not sure what that means, but I believe it might be related to this problem.

Thanks,

David Thomas

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-04 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-03 12:48 [ptxdist] Make libcups and libcupsimage get installed by my ptxdist cups.make David Thomas
2014-03-03 14:03 ` Bart Vanhaute
2014-03-04 15:37   ` David Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox