From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] raspberry pi distrokit & cmake question
Date: Thu, 21 Nov 2013 06:52:43 +0100 [thread overview]
Message-ID: <20131121055243.GB6293@pengutronix.de> (raw)
In-Reply-To: <2802670.4rTpZPOmFB@hydra>
Hi,
On Wed, Nov 20, 2013 at 10:18:54PM +0100, Tim Sander wrote:
> Thanks for your hints.
> > On Wed, Nov 20, 2013 at 12:21:09AM +0100, Tim Sander wrote:
> > > As one of my private tinkering projects I have a rather nice distrokit
> > > based ptxdist rpi repository on:
> > >
> > > https://gitorious.org/ptxdist-raspberry-pi
> > >
> > > I thought it might be of interest some of you.
> > >
> > > It has pretty recent software like qt5.2-beta and opencv.
> > > Its based on distrokit but i kicked out the submodules and integrated it
> > > into one repository as i found it much easier to use.
> > >
> > > No i would like to compile the sample which comes with raspicam:
> > > CMakeLists.txt:
> > >
> > > cmake_minimum_required (VERSION 2.8)
> > > project (raspicam_test)
> > > find_package(raspicam REQUIRED)
> > > add_executable (simpletest_raspicam simpletest_raspicam.cpp)
> > > target_link_libraries (simpletest_raspicam ${raspicam_LIBS})
> > >
> > > But cmake tells me that:
> > > Could not find a package configuration file provided by "raspicam" with
> > > any
> > > of the following names: raspicamConfig.cmake
> > >
> > > find -name raspicamConfig.cmake
> > > ./platform-
> > > raspberrypi/packages/raspicam-0.0.3/usr/lib/cmake/raspicamConfig.cmake
> > > ./platform-raspberrypi/build-target/raspicam-0.0.3-build/raspicamConfig.cm
> > > ake
> > > ./platform-raspberrypi/sysroot-target/usr/lib/cmake/raspicamConfig.cmake
> > >
> > > Especally the last line looks like a reasonable place to put such a file.
> > > But still with the rules in
> > > raspicamtest.make fail to locate the raspicamConfig.cmake file.
> > > RASPICAMTEST_CONF_TOOL := cmake
> > > RASPICAMTEST_CONF_OPT := $(CROSS_CMAKE_USR)
> >
> > I think it should work. Try with more debugging: start ptxdist with "-" and
> > add "--trace" (I think) to RASPICAMTEST_CONF_OPT. cmake should tell you
> > more about what it's doing.
> I had my problems starting ptxdist with "-" but the trace gave an awful lot of
> cmake debug output which is appended.
Sorry typo, I meant with "-v". That way you see the full cmake commandline.
> As far as i understand CMAKE_MODULE_PATH should be set? But i can't find this
> variable in the output log?
>
> Unfortunatly my cmake foo is pretty weak. So i am confused if i need another
> FindRaspicam.cmake file as described there
> http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
> or if the pathes (which look good to me on the first glimpse) are wrong.
I thought setting CMAKE_FIND_ROOT_PATH was enough. However the
<something>Config.cmake files didn't exist when I last worked with cmake,
so I could be wrong. You could try adding CMAKE_MODULE_PATH in
platform-raspberrypi/state/config/toolchain-target.cmake.
It's generated in scripts/lib/ptxd_make_cmake_toolchain.sh from
config/cmake/toolchain-target.cmake.in
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2013-11-21 5:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 23:21 Tim Sander
2013-11-20 7:53 ` Michael Olbrich
2013-11-20 21:18 ` Tim Sander
2013-11-21 5:52 ` Michael Olbrich [this message]
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=20131121055243.GB6293@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--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