Am 22.08.2013 20:13, schrieb Zafrullah Syed:
Hi all,

I am newbie and I am learning stuff.

I have a c++ code and CMakeLists.txt on Github which needs to be run with Cmake. I am trying to get that code embed into my build using my own recipe. This is my first experience with Cmake. I have no clue what should I write in my recipe.

My recipe is as follows:

DESCRIPTION = "cameracapture application"
SECTION = "examples"
LICENSE = "CLOSED"
PR = "r0"

DEPENDS += "opencv"
inherit cmake pkgconfig

SRC_URI = "git://github.com/zafrullahsyed/cameracapture.git;protocol=https;tag=v0.1 <http://github.com/zafrullahsyed/cameracapture.git;protocol=https;tag=v0.1>"

do_configure() {
    ${BUILD_CXX} cameracapture.cpp -o cameracapture
    }
Why you want to compile something during configure? Remove this function.


EXTRA_OECMAKE=""
You don't need this if you don't need to pass additional definitions to cmake.


I know this recipe is wrong, I looked up many other recipes that use Cmake
http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb

each of them have their own parameters and functions.

Everytime I build my system I get this error:

ERROR: Function failed: do_configure (see /home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/temp/log.do_configure.1410 for further information) ERROR: Logfile of failure stored in: /home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/temp/log.do_configure.1410
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing shell function do_configure
| CMake Error: The source directory "/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/cameracapture-0.1" does not appear to contain CMakeLists.txt.
Are you sure this directory exists and contain the CMakeLists.txt file? Maybe you have to adjust the S variable to point to the directory of your source code.

| Specify --help for usage, or press the help button on the CMake GUI.
| ERROR: Function failed: do_configure (see /home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/temp/log.do_configure.1410 for further information) ERROR: Task 579 (/home/siguser/yocto/poky/meta-bebot/recipes-bebot/cameracapture/cameracapture_0.1.bb <http://cameracapture_0.1.bb>, do_configure) failed with exit code '1'

I have no clue what I should write in my recipe file. Yocto doesn't have any tutorial for this.

Can anyone give some hints where I am doing wrong or what should be included in my recipe?
You can take a look at one of my simple recipes:
http://opensource.cit-ec.de/projects/meta-openrobotix/repository/revisions/master/entry/recipes-connectivity/rsb/rsb_git.bb

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to