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 1VjNBz-0003kU-JM for ptxdist@pengutronix.de; Thu, 21 Nov 2013 06:52:43 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1VjNBz-00050G-Hd for ptxdist@pengutronix.de; Thu, 21 Nov 2013 06:52:43 +0100 Date: Thu, 21 Nov 2013 06:52:43 +0100 From: Michael Olbrich Message-ID: <20131121055243.GB6293@pengutronix.de> References: <11084087.6xZikGZSvc@hydra> <20131120075321.GM31417@pengutronix.de> <2802670.4rTpZPOmFB@hydra> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2802670.4rTpZPOmFB@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 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 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