[oe] Issues building tinyXML

Andrei Gherzan andrei at gherzan.ro
Thu Sep 13 18:01:17 UTC 2012


On Fri, Sep 7, 2012 at 11:16 AM, Jack Mitchell <ml at communistcode.co.uk>wrote:

> I think this has it cracked now.Phil, note the -fpic, is that in the right
> place?
>
>
> DESCRIPTION = "A simple, small, C++ XML parser that can be easily
> integrated into other programs"
>
> LICENSE = "zlib"
> LIC_FILES_CHKSUM = "file://tinyxml.cpp;endline=**23;md5=**
> b97285d8fafcc49b761ca785816cc3**97"
>
> SRC_URI = "http://ftp.debian.org/debian/**pool/main/t/tinyxml/${PN}_${**
> PV}.orig.tar.gz<http://ftp.debian.org/debian/pool/main/t/tinyxml/$%7BPN%7D_$%7BPV%7D.orig.tar.gz>
> "
>
> SRC_URI[md5sum] = "**c1b864c96804a10526540c664ade67**f0"
> SRC_URI[sha256sum] = "**15bdfdcec58a7da30adc87ac2b078e**
> 4417dbe5392f3afb719f9ba6d06264**5593"
>
> S = "${WORKDIR}/tinyxml"
>
> TINYXML_USE_STL = "YES"
>
> do_compile() {
>   oe_runmake LD="${CXX}"
>
>   ${CXX} -fpic -shared -o lib${PN}.so.0.${PV} \
>     -Wl,-soname,lib${PN}.so.0 $(ls *.o | grep -v xmltest)
>
> }
>

I would define:
LD = "${CXX}"
And then use a append not overwrite the whole compile rule.


> do_install() {
>
>   install -d -m 0755 ${D}${libdir}
>   install -d -m 0755 ${D}${includedir}
>
>   install -m 0755 lib${PN}.so.0.${PV} ${D}${libdir}
>   install -m 0644 ${PN}.h tinystr.h ${D}${includedir}
>
>   (cd ${D}${libdir}
>
>     ln -s lib${PN}.so.0.${PV} lib${PN}.so.0
>     ln -s lib${PN}.so.0.${PV} lib${PN}.so
>   )
>
What are these parentheses for?

>
> }
>
>
ag



More information about the Openembedded-devel mailing list