[oe] Musicbrainz

Stuart Gray stuart68 at gmail.com
Sat Aug 22 10:00:54 UTC 2009


hi,

Has any one successfully compiled libmusicbrainz_3.0.2.

I have this compiling but it fails at the linking stage as it cannot find
the library libstdc++.so.6.

I have tried various EXTRA_OEMAKE, OECONF, OECMAKE, but none will add the
option to the linking stage. Can anyone give me some pointers.


|
/home/stuart/overo-oe/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld:
warning: libstdc++.so.6, needed by ../src/libmusicbrainz3.so.6.2.0, not
found (try using -rpath or -rpath-link)
| ../src/libmusicbrainz3.so.6.2.0: undefined reference to
`__cxa_allocate_exception at CXXABI_1.3'
| ../src/libmusicbrainz3.so.6.2.0: undefined reference to
`__gnu_cxx::__exchange_and_add(int volatile*, int)@GLIBCXX_3.4'
| ../src/libmusicbrainz3.so.6.2.0: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::rfind(char, unsigned int) const at GLIBCXX_3.4'
| ../src/libmusicbrainz3.so.6.2.0: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::assign(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)@GLIBCXX_3.4'


I thoungth this should the place where I could add the linrary

oe_soinstall() {
    # Purpose: Install shared library file and
    #          create the necessary links
    # Example:
    #
    # oe_
    #
    #oenote installing shared library $1 to $2
    #
    libname=`basename $1`
    install -m 755 $1 $2/$libname
    sonamelink=`arm-angstrom-linux-gnueabi-readelf -d $1 |grep 'Library
soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
    solink=`echo $libname | sed -e 's/\.so\..*/.so/'`
    ln -sf $libname $2/$sonamelink
    ln -sf $libname $2/$solink

}

Please let me know if this is the correct way to proceed.

Thanks,
Stuart



More information about the Openembedded-devel mailing list