From: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
To: Zafrullah Syed <zafrullahmehdi@gmail.com>
Cc: yocto <yocto@yoctoproject.org>
Subject: Re: bitbake with cmake recipe
Date: Fri, 23 Aug 2013 09:09:21 +0200 [thread overview]
Message-ID: <52170AA1.4000602@herbrechtsmeier.net> (raw)
In-Reply-To: <CAAGt+t3Q3GaitOuGTob0faWa4PU1sqmBAwLrdNetMK1PZLDF5Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3318 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 6050 bytes --]
next prev parent reply other threads:[~2013-08-23 7:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 10:30 bitbake with cmake recipe Zafrullah Syed
2013-08-22 10:31 ` Burton, Ross
2013-08-22 10:35 ` Zafrullah Syed
2013-08-22 13:40 ` Zafrullah Syed
2013-08-22 14:14 ` Burton, Ross
2013-08-22 14:20 ` Philip Balister
2013-08-22 18:13 ` Zafrullah Syed
2013-08-23 7:01 ` Lukas Bulwahn
2013-08-23 7:09 ` Stefan Herbrechtsmeier [this message]
2013-08-25 15:03 ` Zafrullah Syed
2013-08-25 18:10 ` Stefan Herbrechtsmeier
2013-08-26 12:42 ` Zafrullah Syed
2013-08-26 15:55 ` Stefan Herbrechtsmeier
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=52170AA1.4000602@herbrechtsmeier.net \
--to=stefan@herbrechtsmeier.net \
--cc=yocto@yoctoproject.org \
--cc=zafrullahmehdi@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.