[oe] Issues building tinyXML

Jack Mitchell ml at communistcode.co.uk
Fri Sep 7 08:16:22 UTC 2012


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=b97285d8fafcc49b761ca785816cc397"

SRC_URI = 
"http://ftp.debian.org/debian/pool/main/t/tinyxml/${PN}_${PV}.orig.tar.gz"

SRC_URI[md5sum] = "c1b864c96804a10526540c664ade67f0"
SRC_URI[sha256sum] = 
"15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"

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)

}

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
   )

}


[jack at archHP packages-split]$ tree
.
|-- tinyxml
|   `-- usr
|       `-- lib
|           |-- libtinyxml.so.0 -> libtinyxml.so.0.2.6.2
|           `-- libtinyxml.so.0.2.6.2
|-- tinyxml-dbg
|   `-- usr
|       |-- lib
|       `-- src
|           `-- debug
|               `-- tinyxml-2.6.2-r0
|                   `-- tinyxml
|                       |-- tinystr.cpp
|                       |-- tinystr.h
|                       |-- tinyxml.cpp
|                       |-- tinyxmlerror.cpp
|                       |-- tinyxml.h
|                       `-- tinyxmlparser.cpp
|-- tinyxml-dev
|   `-- usr
|       |-- include
|       |   |-- tinystr.h
|       |   `-- tinyxml.h
|       `-- lib
|           `-- libtinyxml.so -> libtinyxml.so.0.2.6.2
|-- tinyxml-doc
|-- tinyxml-locale
|-- tinyxml.shlibdeps
`-- tinyxml-staticdev

17 directories, 12 files


-- 

   Jack Mitchell (jack at embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--





More information about the Openembedded-devel mailing list