mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Cross-compiling gstoraster
@ 2014-03-04 12:13 David Thomas
  2014-03-04 13:03 ` Alexander Aring
  0 siblings, 1 reply; 6+ messages in thread
From: David Thomas @ 2014-03-04 12:13 UTC (permalink / raw)
  To: ptxdist

Hello,

I have got further now. I saw that the path was wrong for installation of libraries. I have fixed that so please disregard my previous question.

My libcups.so library is now installed to the following directories:

platform-phyCORE-AM335x/root/usr/lib
platform-phyCORE-AM335x/root-debug/usr/lib
platform-phyCORE-AM335x/sysroot-target/usr/lib

My raster.h header file is installed to these:

platform-phyCORE-AM335x/root/usr/include/cups
platform-phyCORE-AM335x/root-debug/usr/include/cups
platform-phyCORE-AM335x/sysroot-target/usr/include/cups

Ghostscript's configure still fails to pick it up:

checking cups/raster.h usability... no
checking cups/raster.h presence... no
checking for cups/raster.h... no

It must therefore be looking somewhere else for the files.

Questions are:

1. Where is it looking? (I suppose this is the --sysroot used by gcc and the binutils.)
2. What would a typical macro look like to install a library there?

Thanks.

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Cross-compiling gstoraster
  2014-03-04 12:13 [ptxdist] Cross-compiling gstoraster David Thomas
@ 2014-03-04 13:03 ` Alexander Aring
  2014-03-04 14:23   ` David Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Aring @ 2014-03-04 13:03 UTC (permalink / raw)
  To: ptxdist

Hi,

On Tue, Mar 04, 2014 at 12:13:24PM +0000, David Thomas wrote:
> Hello,
> 
> I have got further now. I saw that the path was wrong for installation of libraries. I have fixed that so please disregard my previous question.
> 
> My libcups.so library is now installed to the following directories:
> 
> platform-phyCORE-AM335x/root/usr/lib
> platform-phyCORE-AM335x/root-debug/usr/lib
> platform-phyCORE-AM335x/sysroot-target/usr/lib
> 
> My raster.h header file is installed to these:
> 
> platform-phyCORE-AM335x/root/usr/include/cups
> platform-phyCORE-AM335x/root-debug/usr/include/cups
> platform-phyCORE-AM335x/sysroot-target/usr/include/cups
> 

Normally you should not have any non runtime files like header files on
you target root. This is only needed at compile time.

> Ghostscript's configure still fails to pick it up:
> 
> checking cups/raster.h usability... no
> checking cups/raster.h presence... no
> checking for cups/raster.h... no
> 
> It must therefore be looking somewhere else for the files.
> 
> Questions are:
> 
> 1. Where is it looking? (I suppose this is the --sysroot used by gcc and the binutils.)
> 2. What would a typical macro look like to install a library there?
> 
Difficult to say if we don't know what you doing in the rule files,
please send it as RFC to this list and I can check it. Please use
"git send-email" for that and we need all rule files including
dependencies, maybe we can get these rules mainline then.

I see in ghostscript configure some options like:

--enable-cups
--with-pdftoraster

do you acitvated that in the rule file of ghostscript?

- Alex

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Cross-compiling gstoraster
  2014-03-04 13:03 ` Alexander Aring
@ 2014-03-04 14:23   ` David Thomas
  2014-03-05  8:54     ` Alexander Aring
  0 siblings, 1 reply; 6+ messages in thread
From: David Thomas @ 2014-03-04 14:23 UTC (permalink / raw)
  To: ptxdist

Hi Alex,

Thanks for the info about sysroot-target.

I have added --enable-cups and --with-install-cups to the configure options. I will check whether more are needed but configure needs to find raster.h to allow ghostscript to build gstoraster.

I am running a Linux virtualbox on Windows and I don't know how to set up the mailing parameters for git send-email so I have instead used git format-patch and I will copy the patches into the two next emails.

Thanks,

David

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Cross-compiling gstoraster
  2014-03-04 14:23   ` David Thomas
@ 2014-03-05  8:54     ` Alexander Aring
  2014-03-05 10:01       ` David Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Aring @ 2014-03-05  8:54 UTC (permalink / raw)
  To: ptxdist

Hi David,

I looked last night a little bit deeper into cups and ghostscript
buildsystems and it seems that cross-compiling these tools is a mess.

I will see what I can do for it. Don't believe that I can do miracles.
Of course there must a way to cross compiling it. :-)

- Alex

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Cross-compiling gstoraster
  2014-03-05  8:54     ` Alexander Aring
@ 2014-03-05 10:01       ` David Thomas
  2014-03-05 15:17         ` David Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: David Thomas @ 2014-03-05 10:01 UTC (permalink / raw)
  To: ptxdist

Hi Alex,

Thank you so much for looking into this, whether or not you get anywhere with it.

I'm looking at stepping outside the Ghostscript make system and producing a custom command to run in the ptxdist build rules to make my version, perhaps after the standard make system has built everything else (which now works, at least as far as compiling goes). I don't consider it the correct approach but I can't see how else to proceed at this time.

Thanks,
David

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Cross-compiling gstoraster
  2014-03-05 10:01       ` David Thomas
@ 2014-03-05 15:17         ` David Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: David Thomas @ 2014-03-05 15:17 UTC (permalink / raw)
  To: ptxdist

Hello,

I would like to express my thanks to all of you, and especially Juergen. With minor modifications, his patches for Ghostscript worked fine on my end, and I now have CUPS and Ghostscript working fine on my target!

I have provided Juergen with a copy of my rules and patches. It would be really nice to see CUPS and GS make it into the main PTXdist and I hope what I have done helps.

Many thanks,
David

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04 12:13 [ptxdist] Cross-compiling gstoraster David Thomas
2014-03-04 13:03 ` Alexander Aring
2014-03-04 14:23   ` David Thomas
2014-03-05  8:54     ` Alexander Aring
2014-03-05 10:01       ` David Thomas
2014-03-05 15:17         ` David Thomas

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