From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Vj2bB-0005Yx-Sp for ptxdist@pengutronix.de; Wed, 20 Nov 2013 08:53:21 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Vj2bB-0002G4-RP for ptxdist@pengutronix.de; Wed, 20 Nov 2013 08:53:21 +0100 Date: Wed, 20 Nov 2013 08:53:21 +0100 From: Michael Olbrich Message-ID: <20131120075321.GM31417@pengutronix.de> References: <11084087.6xZikGZSvc@hydra> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <11084087.6xZikGZSvc@hydra> Subject: Re: [ptxdist] raspberry pi distrokit & cmake question 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 Hi, 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.cmake > ./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. 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