Need to cross compile the OF apps in Linux Ubuntu

Dear All,

I’ve tried to cross compile the OF apps in Linux Ubuntu for my RPi3 board and I got the build/linker error.

I’ve referred to this links.
http://openframeworks.cc/setup/raspberrypi/raspberry-pi-cross-compiling-guide-wheezy/
http://openframeworks.cc/setup/raspberrypi/raspberry-pi-cross-compiling-guide/

make -j3 RPI_TOOLS=$RPI_TOOLS RPI_ROOT=$RPI_ROOT GST_VERSION=1.0 PLATFORM_OS=Linux PLATFORM_ARCH=armv7l

home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(PurgeStrategy.o): In function Poco::PurgeStrategy::list(std::__cxx11::basic_string<char,
std::char_traits, std::allocator >
const&, std::vector<Poco::File, std::allocatorPoco::File

&)’:
PurgeStrategy.cpp:(.text+0x1c6): undefined reference tostd::__cxx11::basic_string, std::allocator >::_M_append(char const, unsigned int)’

PurgeStrategy.cpp:(.text+0x1ee): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::compare(unsigned int, unsigned int,
std::__cxx11::basic_string<char, std::char_traits,
std::allocator > const&) const’
PurgeStrategy.cpp:(.text+0x26c): undefined reference tostd::__cxx11::basic_string, std::allocator >::_M_create(unsigned int&, unsigned int)’

/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(RWLock.o): In function Poco::RWLockImpl::RWLockImpl()’:
RWLock.cpp:(.text+0x4c): undefined reference tostd::__cxx11::basic_string, std::allocator >::_M_create(unsigned int&, unsigned int)’

/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(TextConverter.o):
In function `Poco::TextConverter::convert(std::__cxx11::basic_string,
std::allocator > const&, std::__cxx11::basic_string,
std::allocator >&, int ()(int))’:

TextConverter.cpp:(.text+0x86): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_append(char const*, unsigned int)’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(TextConverter.o): In functionPoco::TextConverter::convert(void const, int, std::__cxx11::basic_string, std::allocator >&, int ()(int))’:

TextConverter.cpp:(.text+0x1da): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_append(char const*, unsigned int)’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(FileStreamFactory.o):
In functionvoid std::__cxx11::basic_string, std::allocator >::_M_construct(char, char, std::forward_iterator_tag) [clone .isra.15]’:

FileStreamFactory.cpp:(.text+0x90): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_create(unsigned int&, unsigned int)’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(FileStreamFactory.o):
In functionPoco::FileStreamFactory::open(Poco::URI const&)’:

FileStreamFactory.cpp:(.text+0x286): undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::compare(char const*) const’
FileStreamFactory.cpp:(.text+0x2a8): undefined reference tostd::__cxx11::basic_string, std::allocator >::_M_erase(unsigned int, unsigned int)’

FileStreamFactory.cpp:(.text+0x2f6): undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::compare(char const*) const’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(DeflatingStream.o):
In functionstd::__cxx11::basic_string, std::allocator >::basic_string(char const, std::allocator const&) [clone .isra.29]’:

char> >::basic_string(char const, std::allocator const&) [clone .isra.29]’:

DeflatingStream.cpp:(.text+0x5a): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_create(unsigned int&, unsigned int)’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(DeflatingStream.o):
In functionPoco::DeflatingStreamBuf::readFromDevice(char, int)’:

DeflatingStream.cpp:(.text+0x202): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_create(unsigned int&, unsigned int)’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(DeflatingStream.o):
In functionPoco::DeflatingStreamBuf::writeToDevice(char const, int)’:

DeflatingStream.cpp:(.text+0x380): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_create(unsigned int&, unsigned int)’
/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(DeflatingStream.o):
In functionPoco::DeflatingStreamBuf::sync()’:

DeflatingStream.cpp:(.text+0x5e6): undefined reference to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_create(unsigned int&, unsigned int)’
DeflatingStream.cpp:(.text+0x622): undefined reference tostd::__cxx11::basic_string, std::allocator >::_M_create(unsigned int&, unsigned int)’

/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/poco/lib/linuxarmv7l/libPocoFoundation.a(DeflatingStream.o):DeflatingStream.cpp:(.text+0xe22):
more undefined references to std::__cxx11::basic_string<char,
std::char_traits, std::allocator

::_M_create(unsigned int&, unsigned int)’ follow
/home/titus/workdir/usr_pi/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): In functiondlsym’:

(.text+0xc): undefined reference to __dlsym’
/home/titus/Downloads/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/…/lib/gcc/arm-linux-gnueabihf/4.9.3/…/…/…/…/arm-linux-gnueabihf/bin/ld:
bin/audioOutputExample: No symbol version section for versioned symbolpthread_cond_destroy@@GLIBC_2.4

/home/titus/Downloads/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/…/lib/gcc/arm-linux-gnueabihf/4.9.3/…/…/…/…/arm-linux-gnueabihf/bin/ld:
final link failed: Nonrepresentable section on output

collect2: error: ld returned 1 exit status

/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:382:
recipe for target ‘bin/audioOutputExample’ failed

make[1]: *** [bin/audioOutputExample] Error 1

make[1]: Leaving directory ‘/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/examples/sound/audioOutputExample’

/home/titus/workdir/OF/of_v0.9.3_linuxarmv7l_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125:
recipe for target ‘Release’ failed

make: *** [Release] Error 2

titus@titus-PC:~/workdir/OF/of_v0.9.3_linuxarmv7l_release/examples/sound/audioOutputExample$ ls

Regards,
Titus S.