[yocto] How to include packages for the cmake build process?

S.Jaritz at esa-grimma.de S.Jaritz at esa-grimma.de
Thu May 19 07:17:48 PDT 2016


Hej

I have some general question. Actual I am try to build an older software. 
It is based on cmake. At the build process doxygen, python, sed, 
dbusxx-xml2cpp are called. They are included via the 
"findprogram"/"find_package" command.

How to include external programs like python, sed etc. in my build 
toolchain? Do I use DPENDS = " python"?

The weak points are in the Makefile.txt when:

find_package(PythonInterp REQUIRED)

As example I add a non working recipe for doxygen:

####### doxygen_1.8.bb #######
DESCRIPTION = "Utilities for generating documentation from source code"
HOMEPAGE = "http://www.doxygen.org/"
SECTION = "console/utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b380c86cea229fa42b9e543fc491f5eb"

DEPENDS = "flex-native bison-native python-native"

inherit cmake

SRCREV = "a6d4f4df45febe588c38de37641513fd576b998f"
SRC_URI = "git://github.com/doxygen/doxygen.git"

S = "${WORKDIR}/git"

#EXTRA_OECONF = "--prefix ${prefix}"

BBCLASSEXTEND = "native"
#####################

Mit freundlichen Grüßen

Stefan Jaritz
Entwickler

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz at esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160519/4e5af2e0/attachment.html>


More information about the yocto mailing list