Re: [ptxdist] finding includes with cmake based projects

2011-01-20 Thread Michael Olbrich
On Thu, Jan 20, 2011 at 01:54:00PM +0100, Alexander Dahl wrote: > Hei hei, > > >> Are you sure you prepare all the necessary parameters? I had to add the > >> following line before: > >> > >> FOO_CMAKE += -DCMAKE_FIND_ROOT_PATH=$(SYSROOT) > > > > We actually use that, just not wenn you call cm

Re: [ptxdist] finding includes with cmake based projects

2011-01-20 Thread Alexander Dahl
Hei hei, >> Are you sure you prepare all the necessary parameters? I had to add the >> following line before: >> >> FOO_CMAKE += -DCMAKE_FIND_ROOT_PATH=$(SYSROOT) > > We actually use that, just not wenn you call cmake like this... You have > two options: > > 1. Remove the prepare stage. The de

Re: [ptxdist] finding includes with cmake based projects

2011-01-19 Thread Michael Olbrich
Hi, On Thu, Jan 13, 2011 at 01:16:34PM +0100, Alexander Dahl wrote: > >> You should use find_path(...). If you use the default prepare stage, > >> then > >> cmake is called with the proper parameters to find stuff in > >> sysroot-target. > > > > This looks only slightly different in our rule: > >

Re: [ptxdist] finding includes with cmake based projects

2011-01-13 Thread Alexander Dahl
Me again, >> You should use find_path(...). If you use the default prepare stage, >> then >> cmake is called with the proper parameters to find stuff in >> sysroot-target. > > This looks only slightly different in our rule: > > $(STATEDIR)/foo.prepare: > @$(call targetinfo, $@) >

Re: [ptxdist] finding includes with cmake based projects

2011-01-12 Thread Alexander Dahl
Hello there, >> So does someone have a hint, how to successfully include the right >> header files from the cross compiling build tree and linking against >> the appropriate libraries then in our cmake files? > > The problem occurs when running cmake, right? How do you search for the > headers? E

Re: [ptxdist] finding includes with cmake based projects

2011-01-11 Thread Marc Kleine-Budde
On 01/11/2011 05:12 PM, Alexander Dahl wrote: > Hello, > > we are including our own cmake project in ptxdist which works quite > well regarding our own code and libraries. But we have problems > linking against some other libraries, namely net-snmp, libcgi and > libusb. Despite configured with `pt

Re: [ptxdist] finding includes with cmake based projects

2011-01-11 Thread Michael Olbrich
On Tue, Jan 11, 2011 at 05:12:13PM +0100, Alexander Dahl wrote: > we are including our own cmake project in ptxdist which works quite > well regarding our own code and libraries. But we have problems > linking against some other libraries, namely net-snmp, libcgi and > libusb. Despite configured wi

[ptxdist] finding includes with cmake based projects

2011-01-11 Thread Alexander Dahl
Hello, we are including our own cmake project in ptxdist which works quite well regarding our own code and libraries. But we have problems linking against some other libraries, namely net-snmp, libcgi and libusb. Despite configured with `ptxdist menuconfig` and successfully build (files of net-snm