[yocto] how to add a new bb(xerces-c)

Bill Martin billmartin544 at gmail.com
Wed Oct 23 13:44:33 PDT 2013


Okay I dug further and got much further to pass do_install

I noticed in my Yocto 9.0.2 Dylan release I have an ICU package. Just in
case, I added the extra installs of icu and xerces-c to my local.conf

then in your xerces-c bitbake recipe you need to add
--with-icu=${STAGING_DIR_HOST} to your EXTRA_OECONF

My EXTRA_OECONF is

EXTRA_OECONF= "--with-icu=${STAGING_DIR_HOST} ICU_FLAGS=-I${STAGING_INCDIR}
LDFLAGS=-L${STAGING_BASELIBDIR} --build=x86_64-linux --host=i586-poky-linux"

To be safe I also added ICU_FLAGS=${STAGING_DIR_HOST} but I probably do not
need it. In fact that's what I tried first and it had no effect. grepping
through my config.log I traced to where ICU_FLAGS kept being set stubbornly
to -I/usr/include. I will clean this up and get rid of my LDFLAGS which I
don't need. Also the ICU_FLAGS.

The problem (and Hans Beckerus pointed out to me) was the poisonous header
files from the build machine in /usr/include. Note that icu is staged - you
can find its libraries in the usr/lib subfolder in your host staging
directory. All the pieces to the puzzle are there.

Thanks

Bill


Original post was

Date: Fri, 27 Sep 2013 13:35:55 +0800 (CST)
From: ??? <czyhit at 126.com>
To: yocto at yoctoproject.org
Subject: [yocto] how to add a new bb(xerces-c)?
Message-ID: <bfe9b2.4f09.1415dea90ad.Coremail.czyhit at 126.com>
Content-Type: text/plain; charset="gbk"

Hello, everyone!
I try to add a new bb(xerces-c) to my image, bb is as followings:


DESCRIPTION = "Xerces-C++ is a validating XML parser written in a portable
subset of C++."
HOMEPAGE = "http://xerces.apache.org/xerces-c/"
LICENSE = "Apache"
LIC_FILES_CHKSUM = "file://src/xercesc/dom/DOM.hpp;endline=22;md5=
9986d741cab88a8b7bc4a19d3c1b8106 \
file://src/xercesc/parsers/XercesDOMParser.hpp;endline=21;md5=
85be7b6e587aa51e4f30c262f1cd695e \
file://src/xercesc/xinclude/XIncludeDOMDocumentProcessor.hpp;endline=23;md5=
4236d3c0f2537b3df547a97d60f93dc0"


PR = "r1"


DEPENDS = "curl icu"


SRC_URI = "http://mirror.bit.edu.cn/apache//xerces/c/3/sources/xerces
-c-${PV}.tar.gz"


SRC_URI[md5sum] = "6a8ec45d83c8cfb1584c5a5345cb51ae"
SRC_URI[sha256sum] = "a42785f71e0b91d5fd273831c87410
ce60a73ccfdd207de1b805d26d44968736"


inherit autotools


S = "${WORKDIR}/xerces-c-${PV}/"


EXTRA_OECONF = "\
--enable-netaccessor-curl \
--enable-transcoder-icu \
--enable-msgloader-icu \
"


but when configure come into the error:
ERROR: This autoconf log indicates errors, it looked at host include and/or
library paths while determining system capabilities.
Rerun configure task after fixing this. The path was '/home/caozhiyan/fsl-
community-bsp/build-hc1200/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/
xerces-c/3.1.1-r1/xerces-c-3.1.1'
ERROR: Function failed: do_qa_configure
ERROR: Logfile of failure stored in: /home/caozhiyan/fsl-community-
bsp/build-hc1200/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/xerces
-c/3.1.1-r1/temp/log.do_configure.19932
ERROR: Task 5 (/home/caozhiyan/fsl-community-bsp/sources/meta-
fsl-hc1200/recipes-hc1200/xerces-c/xerces-c_3.1.1.bb, do_configure) failed
with exit code '1'


who can show me how to port the autotools-based project? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131023/5bf43bc0/attachment.html>


More information about the yocto mailing list