All of lore.kernel.org
 help / color / mirror / Atom feed
* Issues building tinyXML
@ 2012-09-06 14:53 Jack Mitchell
  2012-09-06 14:59 ` Phil Blundell
  0 siblings, 1 reply; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 14:53 UTC (permalink / raw)
  To: openembedded-devel

I'm failing to be able to build tinyXML which it seems is required for 
XBMC after it was dropped from their internal tree. The package just has 
a Makefile and all in all seems a bit sketchy at best. Has anyone come 
across an error like this before:

    DEBUG: Executing shell function do_compile
    NOTE: make -j 7 -e MAKEFLAGS=
    arm-poky-linux-gnueabi-ld
    --sysroot=/home/jack/Projects/poky-rasp/raspberry/tmp/sysroots/raspberrypi
    -o xmltest -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed tinyxml.o
    tinyxmlparser.o xmltest.o tinyxmlerror.o tinystr.o
    arm-poky-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
    arm-poky-linux-gnueabi-ld: use the --help option for usage information
    make: *** [xmltest] Error 1
    ERROR: oe_runmake failed
    ERROR: Function failed: do_compile (see
    /home/jack/Projects/poky-rasp/raspberry/tmp/work/armv6-vfp-poky-linux-gnueabi/tinyxml-2.6.2-r0/temp/log.do_compile.23734
    for further information)


Recipe so far...

    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"


Cheers,


-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 14:53 Issues building tinyXML Jack Mitchell
@ 2012-09-06 14:59 ` Phil Blundell
  2012-09-06 15:08   ` Jack Mitchell
  0 siblings, 1 reply; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 14:59 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2012-09-06 at 15:53 +0100, Jack Mitchell wrote:
> I'm failing to be able to build tinyXML which it seems is required for 
> XBMC after it was dropped from their internal tree. The package just has 
> a Makefile and all in all seems a bit sketchy at best. Has anyone come 
> across an error like this before:
> 
>     DEBUG: Executing shell function do_compile
>     NOTE: make -j 7 -e MAKEFLAGS=
>     arm-poky-linux-gnueabi-ld
>     --sysroot=/home/jack/Projects/poky-rasp/raspberry/tmp/sysroots/raspberrypi
>     -o xmltest -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed tinyxml.o
>     tinyxmlparser.o xmltest.o tinyxmlerror.o tinystr.o
>     arm-poky-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
>     arm-poky-linux-gnueabi-ld: use the --help option for usage information
>     make: *** [xmltest] Error 1

It's using ${LD} where it should be using ${CCLD}.  This is, admittedly,
confusing since one would tend to naïvely assume that ${LDFLAGS} is
intended for consumption by ${LD} but that is not in fact the case.

I'm not actually sure that there are any places where ${LD} is the right
thing to use.  Maybe that variable should be deleted.

p.





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 14:59 ` Phil Blundell
@ 2012-09-06 15:08   ` Jack Mitchell
  2012-09-06 15:09     ` Phil Blundell
  0 siblings, 1 reply; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 15:08 UTC (permalink / raw)
  To: openembedded-devel

On 06/09/12 15:59, Phil Blundell wrote:
> On Thu, 2012-09-06 at 15:53 +0100, Jack Mitchell wrote:
>> I'm failing to be able to build tinyXML which it seems is required for
>> XBMC after it was dropped from their internal tree. The package just has
>> a Makefile and all in all seems a bit sketchy at best. Has anyone come
>> across an error like this before:
>>
>>      DEBUG: Executing shell function do_compile
>>      NOTE: make -j 7 -e MAKEFLAGS=
>>      arm-poky-linux-gnueabi-ld
>>      --sysroot=/home/jack/Projects/poky-rasp/raspberry/tmp/sysroots/raspberrypi
>>      -o xmltest -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed tinyxml.o
>>      tinyxmlparser.o xmltest.o tinyxmlerror.o tinystr.o
>>      arm-poky-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
>>      arm-poky-linux-gnueabi-ld: use the --help option for usage information
>>      make: *** [xmltest] Error 1
> It's using ${LD} where it should be using ${CCLD}.  This is, admittedly,
> confusing since one would tend to naïvely assume that ${LDFLAGS} is
> intended for consumption by ${LD} but that is not in fact the case.
>
> I'm not actually sure that there are any places where ${LD} is the right
> thing to use.  Maybe that variable should be deleted.
>
> p.

So, would the best way to fix it be something like:

do_compile() {
     run_oemake LD="${CCLD}"
}

I'm really only just getting into this so please excuse my naivety.

Thanks,

-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 15:08   ` Jack Mitchell
@ 2012-09-06 15:09     ` Phil Blundell
  2012-09-06 15:15       ` Jack Mitchell
  0 siblings, 1 reply; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 15:09 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2012-09-06 at 16:08 +0100, Jack Mitchell wrote:
> So, would the best way to fix it be something like:
> 
> do_compile() {
>      run_oemake LD="${CCLD}"
> }

Yes, probably.  Or I guess you can just do:

LD = "${CCLD}"

somewhere else in your .bb file.

p.





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 15:09     ` Phil Blundell
@ 2012-09-06 15:15       ` Jack Mitchell
  2012-09-06 15:16         ` Phil Blundell
  0 siblings, 1 reply; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 15:15 UTC (permalink / raw)
  To: openembedded-devel

On 06/09/12 16:09, Phil Blundell wrote:
> On Thu, 2012-09-06 at 16:08 +0100, Jack Mitchell wrote:
>> So, would the best way to fix it be something like:
>>
>> do_compile() {
>>       run_oemake LD="${CCLD}"
>> }
> Yes, probably.  Or I guess you can just do:
>
> LD = "${CCLD}"
>
> somewhere else in your .bb file.
>
> p.
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Urgh, that gets me past that error message but it seems to make it worse!

http://pastebin.com/AUVFKBTs

Does that mean that it's not linking the files properly, which is why it 
can't find the functions?

-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 15:15       ` Jack Mitchell
@ 2012-09-06 15:16         ` Phil Blundell
  2012-09-06 15:19           ` Jack Mitchell
  0 siblings, 1 reply; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 15:16 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2012-09-06 at 16:15 +0100, Jack Mitchell wrote:
> On 06/09/12 16:09, Phil Blundell wrote:
> > On Thu, 2012-09-06 at 16:08 +0100, Jack Mitchell wrote:
> >> So, would the best way to fix it be something like:
> >>
> >> do_compile() {
> >>       run_oemake LD="${CCLD}"
> >> }
> > Yes, probably.  Or I guess you can just do:
> >
> > LD = "${CCLD}"
> >
> > somewhere else in your .bb file.

Oh, right.  It's a C++ program so what you actually need is LD="${CXX}".

p.





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 15:16         ` Phil Blundell
@ 2012-09-06 15:19           ` Jack Mitchell
  2012-09-06 15:57             ` Jack Mitchell
  0 siblings, 1 reply; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 15:19 UTC (permalink / raw)
  To: openembedded-devel

On 06/09/12 16:16, Phil Blundell wrote:
> On Thu, 2012-09-06 at 16:15 +0100, Jack Mitchell wrote:
>> On 06/09/12 16:09, Phil Blundell wrote:
>>> On Thu, 2012-09-06 at 16:08 +0100, Jack Mitchell wrote:
>>>> So, would the best way to fix it be something like:
>>>>
>>>> do_compile() {
>>>>        run_oemake LD="${CCLD}"
>>>> }
>>> Yes, probably.  Or I guess you can just do:
>>>
>>> LD = "${CCLD}"
>>>
>>> somewhere else in your .bb file.
> Oh, right.  It's a C++ program so what you actually need is LD="${CXX}".
>
> p.
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Perfect, I had CC=${CXX} so I was almost there!! : P

Thanks for the help!

-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 15:19           ` Jack Mitchell
@ 2012-09-06 15:57             ` Jack Mitchell
  2012-09-06 16:08               ` Phil Blundell
  0 siblings, 1 reply; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 15:57 UTC (permalink / raw)
  To: openembedded-devel

On 06/09/12 16:19, Jack Mitchell wrote:
> On 06/09/12 16:16, Phil Blundell wrote:
>> On Thu, 2012-09-06 at 16:15 +0100, Jack Mitchell wrote:
>>> On 06/09/12 16:09, Phil Blundell wrote:
>>>> On Thu, 2012-09-06 at 16:08 +0100, Jack Mitchell wrote:
>>>>> So, would the best way to fix it be something like:
>>>>>
>>>>> do_compile() {
>>>>>        run_oemake LD="${CCLD}"
>>>>> }
>>>> Yes, probably.  Or I guess you can just do:
>>>>
>>>> LD = "${CCLD}"
>>>>
>>>> somewhere else in your .bb file.
>> Oh, right.  It's a C++ program so what you actually need is LD="${CXX}".
>>
>> p.
>>
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> Perfect, I had CC=${CXX} so I was almost there!! : P
>
> Thanks for the help!
>

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?

Regards,


-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 15:57             ` Jack Mitchell
@ 2012-09-06 16:08               ` Phil Blundell
  2012-09-06 16:15                 ` Jack Mitchell
  0 siblings, 1 reply; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 16:08 UTC (permalink / raw)
  To: openembedded-devel

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.





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:08               ` Phil Blundell
@ 2012-09-06 16:15                 ` Jack Mitchell
  2012-09-06 16:19                   ` Jack Mitchell
  2012-09-06 16:19                   ` Phil Blundell
  0 siblings, 2 replies; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 16:15 UTC (permalink / raw)
  To: openembedded-devel

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@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}?

-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:15                 ` Jack Mitchell
@ 2012-09-06 16:19                   ` Jack Mitchell
  2012-09-06 16:19                   ` Phil Blundell
  1 sibling, 0 replies; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 16:19 UTC (permalink / raw)
  To: openembedded-devel

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@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@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:15                 ` Jack Mitchell
  2012-09-06 16:19                   ` Jack Mitchell
@ 2012-09-06 16:19                   ` Phil Blundell
  2012-09-06 16:36                     ` Jack Mitchell
  1 sibling, 1 reply; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 16:19 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2012-09-06 at 17:15 +0100, Jack Mitchell wrote:
>     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)

You need to get -fpic into ${CXXFLAGS} and/or ${CFLAGS} so that it's
used to build the individual objects as well.

>     FILES_${PN} = "libtinyxml.so.0.${PV}}"

That should be ${libdir}/lib${PN}.so.0, with fewer }s on the end.  The
name of the file you ship needs to match the soname that you give it, or
at least be symlinked to that name.

p.





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:19                   ` Phil Blundell
@ 2012-09-06 16:36                     ` Jack Mitchell
  2012-09-06 16:42                       ` Koen Kooi
                                         ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Jack Mitchell @ 2012-09-06 16:36 UTC (permalink / raw)
  To: openembedded-devel

On 06/09/12 17:19, Phil Blundell wrote:
> On Thu, 2012-09-06 at 17:15 +0100, Jack Mitchell wrote:
>>      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)
> You need to get -fpic into ${CXXFLAGS} and/or ${CFLAGS} so that it's
> used to build the individual objects as well.
>
>>      FILES_${PN} = "libtinyxml.so.0.${PV}}"
> That should be ${libdir}/lib${PN}.so.0, with fewer }s on the end.  The
> name of the file you ship needs to match the soname that you give it, or
> at least be symlinked to that name.
>
> p.
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Right, I've almost got the little swine.

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}/usr/{lib,include}
   install -m 0755 lib${PN}.so.0.${PV} ${D}${libdir}
   install -m 0644 ${PN}.h tinystr.h ${D}${includedir}

   (cd ${D}/usr/lib
     ln -s lib${PN}.so.0.${PV} lib${PN}.so.0
     ln -s lib${PN}.so.0.${PV} lib${PN}.so
   )

}

FILES_${PN}-dbg = "/usr/src/debug \
                    ${libdir}/.debug \
"


[jack@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

One last thing though, should the libtinyxml.so be in the -dbg package?

-- 

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

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:36                     ` Jack Mitchell
@ 2012-09-06 16:42                       ` Koen Kooi
  2012-09-06 16:44                       ` Phil Blundell
                                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 19+ messages in thread
From: Koen Kooi @ 2012-09-06 16:42 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 06-09-12 18:36, Jack Mitchell schreef:

> 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}/usr/{lib,include}

${libdir}
${includedir}

> install -m 0755 lib${PN}.so.0.${PV} ${D}${libdir} install -m 0644 ${PN}.h
> tinystr.h ${D}${includedir}
> 
> (cd ${D}/usr/lib

${libdir}

> ln -s lib${PN}.so.0.${PV} lib${PN}.so.0 ln -s lib${PN}.so.0.${PV}
> lib${PN}.so )
> 
> }
> 
> FILES_${PN}-dbg = "/usr/src/debug \ ${libdir}/.debug \

Both should be in already, no?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFQSNKAMkyGM64RGpERAiQYAJ4vU59XUZ1Ae+8BQaH1ejZ2DjK97QCeL8PL
sogMu1ndRf9XyrUgi0O6PbY=
=1PxS
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:36                     ` Jack Mitchell
  2012-09-06 16:42                       ` Koen Kooi
@ 2012-09-06 16:44                       ` Phil Blundell
  2012-09-06 19:47                         ` Burton, Ross
  2012-09-06 16:46                       ` Phil Blundell
  2012-09-07  8:16                       ` Jack Mitchell
  3 siblings, 1 reply; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 16:44 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2012-09-06 at 17:36 +0100, Jack Mitchell wrote:
> One last thing though, should the libtinyxml.so be in the -dbg package?

No, -dev is correct.

I think you're still missing -fpic in C(XX)FLAGS.

p.





^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:36                     ` Jack Mitchell
  2012-09-06 16:42                       ` Koen Kooi
  2012-09-06 16:44                       ` Phil Blundell
@ 2012-09-06 16:46                       ` Phil Blundell
  2012-09-07  8:16                       ` Jack Mitchell
  3 siblings, 0 replies; 19+ messages in thread
From: Phil Blundell @ 2012-09-06 16:46 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2012-09-06 at 17:36 +0100, Jack Mitchell wrote:
>    install -d -m 0755 ${D}/usr/{lib,include}

That should be ${prefix} not "/usr", otherwise you will lose if the
distro sets a different prefix (micro does). 

> FILES_${PN}-dbg = "/usr/src/debug \
>                     ${libdir}/.debug \
> "

Do you need that?  I would have thought the default would work.

p.




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:44                       ` Phil Blundell
@ 2012-09-06 19:47                         ` Burton, Ross
  0 siblings, 0 replies; 19+ messages in thread
From: Burton, Ross @ 2012-09-06 19:47 UTC (permalink / raw)
  To: openembedded-devel

On 6 September 2012 17:44, Phil Blundell <philb@gnu.org> wrote:
> On Thu, 2012-09-06 at 17:36 +0100, Jack Mitchell wrote:
>> One last thing though, should the libtinyxml.so be in the -dbg package?
>
> No, -dev is correct.
>
> I think you're still missing -fpic in C(XX)FLAGS.

And people wonder why I give disapproving looks at people who say that
automake is too complex and they prefer to roll their own makefiles...

Ross



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-06 16:36                     ` Jack Mitchell
                                         ` (2 preceding siblings ...)
  2012-09-06 16:46                       ` Phil Blundell
@ 2012-09-07  8:16                       ` Jack Mitchell
  2012-09-13 18:01                         ` Andrei Gherzan
  3 siblings, 1 reply; 19+ messages in thread
From: Jack Mitchell @ 2012-09-07  8:16 UTC (permalink / raw)
  To: openembedded-devel

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@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@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Issues building tinyXML
  2012-09-07  8:16                       ` Jack Mitchell
@ 2012-09-13 18:01                         ` Andrei Gherzan
  0 siblings, 0 replies; 19+ messages in thread
From: Andrei Gherzan @ 2012-09-13 18:01 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Sep 7, 2012 at 11:16 AM, Jack Mitchell <ml@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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-09-13 18:14 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-06 14:53 Issues building tinyXML Jack Mitchell
2012-09-06 14:59 ` Phil Blundell
2012-09-06 15:08   ` Jack Mitchell
2012-09-06 15:09     ` Phil Blundell
2012-09-06 15:15       ` Jack Mitchell
2012-09-06 15:16         ` Phil Blundell
2012-09-06 15:19           ` Jack Mitchell
2012-09-06 15:57             ` Jack Mitchell
2012-09-06 16:08               ` Phil Blundell
2012-09-06 16:15                 ` Jack Mitchell
2012-09-06 16:19                   ` Jack Mitchell
2012-09-06 16:19                   ` Phil Blundell
2012-09-06 16:36                     ` Jack Mitchell
2012-09-06 16:42                       ` Koen Kooi
2012-09-06 16:44                       ` Phil Blundell
2012-09-06 19:47                         ` Burton, Ross
2012-09-06 16:46                       ` Phil Blundell
2012-09-07  8:16                       ` Jack Mitchell
2012-09-13 18:01                         ` Andrei Gherzan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.