From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from exchange-server.intranet.ggtg.net ([195.137.15.66]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WKSId-0002Jp-2t for ptxdist@pengutronix.de; Mon, 03 Mar 2014 13:48:51 +0100 From: David Thomas Date: Mon, 3 Mar 2014 12:48:43 +0000 Message-ID: <63F3A45AB9EA8943A92845E4748C0F4B010E546C@exchange-server.intranet.ggtg.net> Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] Make libcups and libcupsimage get installed by my ptxdist cups.make Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" 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