mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: David Thomas <david.thomas@ggtg.net>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] Make libcups and libcupsimage get installed by my ptxdist cups.make
Date: Mon, 3 Mar 2014 12:48:43 +0000	[thread overview]
Message-ID: <63F3A45AB9EA8943A92845E4748C0F4B010E546C@exchange-server.intranet.ggtg.net> (raw)

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

             reply	other threads:[~2014-03-03 12:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 12:48 David Thomas [this message]
2014-03-03 14:03 ` Bart Vanhaute
2014-03-04 15:37   ` David Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63F3A45AB9EA8943A92845E4748C0F4B010E546C@exchange-server.intranet.ggtg.net \
    --to=david.thomas@ggtg.net \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox