[oe] Issues building tinyXML
Jack Mitchell
ml at communistcode.co.uk
Thu Sep 6 16:19:15 UTC 2012
On 06/09/12 17:15, Jack Mitchell wrote:
> On 06/09/12 17:08, Phil Blundell wrote:
>> On Thu, 2012-09-06 at 16:57 +0100, Jack Mitchell wrote:
>>> I take this back, It built correctly but it seems the makefile doesn't
>>> build the shared library to link against?!
>>>
>>> The Archlinux package has something similar to:
>>>
>>> ${CXX} -shared -o lib${PN}.so.0.${PV} \
>>> -Wl,-soname,lib${PN}.so.0 $(ls *.o | grep -v xmltest)
>>>
>>> Which seems to collect all the objects and link them together into a
>>> shared object? Is there anywhere else in OE we do this so I could see
>>> how it is formally done?
>> Yeah, pretty much that. If you're going to make it into a DSO then you
>> also need to make sure that all the objects are compiled -fpic.
>>
>> p.
>>
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> Ok, so this is where I am at:
>
> 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)
>
> }
>
> FILES_${PN} = "libtinyxml.so.0.${PV}}"
>
>
> However, libtinyxml.so.0.${PV} doesn't get packaged, even though it is
> listed in the {S} directory. Am I missing something with the FILES_${PN}?
>
And it's not the double curly braces typo in FILES_${PN}. ; )
--
Jack Mitchell (jack at embed.me.uk)
Embedded Systems Engineer
http://www.embed.me.uk
--
More information about the Openembedded-devel
mailing list