Re: [CMake] pkgconfig and cross compiling

2008-11-05 Thread Alexander Neundorf
On Wednesday 05 November 2008, Hendrik Sattler wrote: ... Maybe it was an old patch? Yes, wrong file. Next try. Alex Index: UsePkgConfig.cmake === RCS file: /cvsroot/CMake/CMake/Modules/UsePkgConfig.cmake,v retrieving revision

Re: [CMake] pkgconfig and cross compiling

2008-11-05 Thread Alexander Neundorf
On Wednesday 05 November 2008, Alan W. Irwin wrote: On 2008-11-04 20:57+0100 Alexander Neundorf wrote: On Tuesday 04 November 2008, Alan W. Irwin wrote: ... I don't get the behaviour you describe for my version of pkg-config (0.22-1). For that version of pkg-config, if I point

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Hendrik Sattler
Alexander Neundorf schrieb: -Once it found the correct pc-file, it returns the result. Problem: the results don't contain the target architecture prefix, e.g. here incdir gives /usr/include while it should be /opt/eldk-4.1/ppc_4xxFP/ppc_4xxFP/usr/include . So what to do ? Try to

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Alexander Neundorf
On Tuesday 04 November 2008, Alan W. Irwin wrote: ... I don't get the behaviour you describe for my version of pkg-config (0.22-1). For that version of pkg-config, if I point PKG_CONFIG_LIBDIR to a directory then if the required *.pc file is not in that directory, then it gives an error

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Alexander Neundorf
On Tuesday 04 November 2008, Hendrik Sattler wrote: Alexander Neundorf schrieb: -Once it found the correct pc-file, it returns the result. Problem: the results don't contain the target architecture prefix, e.g. here incdir gives /usr/include while it should be

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Hendrik Sattler
Am Tuesday 04 November 2008 22:45:57 schrieb Alexander Neundorf: So, if e.g. CMAKE_FIND_ROOT_PATH is /opt/eldk-4.1/ppc_4xxFP/ppc_4xxFP , then I would have to query pkg-config for the variable prefix, then prepend this prefix with the directory (the right one) from CMAKE_FIND_ROOT_PATH, and

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Erik de Castro Lopo
Alexander Neundorf wrote: I checked, my eldk doesn't come with an own pkg-config, so I don't have some cross-pkg-config around. How would this cross-pkg-config behave ? I blogged about this for the case of Linux to windows cross compiling:

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Alexander Neundorf
On Tuesday 04 November 2008, Hendrik Sattler wrote: Am Tuesday 04 November 2008 22:45:57 schrieb Alexander Neundorf: So, if e.g. CMAKE_FIND_ROOT_PATH is /opt/eldk-4.1/ppc_4xxFP/ppc_4xxFP , then I would have to query pkg-config for the variable prefix, then prepend this prefix with the

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Alan W. Irwin
On 2008-11-04 20:57+0100 Alexander Neundorf wrote: On Tuesday 04 November 2008, Alan W. Irwin wrote: ... I don't get the behaviour you describe for my version of pkg-config (0.22-1). For that version of pkg-config, if I point PKG_CONFIG_LIBDIR to a directory then if the required *.pc file is

Re: [CMake] pkgconfig and cross compiling

2008-11-04 Thread Hendrik Sattler
Am Wednesday 05 November 2008 00:57:36 schrieb Alexander Neundorf: On Tuesday 04 November 2008, Hendrik Sattler wrote: Am Tuesday 04 November 2008 22:45:57 schrieb Alexander Neundorf: So, if e.g. CMAKE_FIND_ROOT_PATH is /opt/eldk-4.1/ppc_4xxFP/ppc_4xxFP , then I would have to query

Re: [CMake] pkgconfig and cross compiling

2008-11-03 Thread Alan W. Irwin
On 2008-11-03 23:20+0100 Alexander Neundorf wrote: Hi, I still have an uncommitted patch lying around here, you can find it attached. It deals with pkgconfig when cross compiling. What it does it sets the environment variable PKG_CONFIG_LIBDIR to the pkgconfig subdirs of each of the