Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Need to cross compile the OF apps in Linux Ubuntu

$
0
0

@Titus wrote:

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::basicstring<char,
std::char_traits, std::allocator >
const&, std::vector<Poco::File, std::allocator

&)':
PurgeStrategy.cpp:(.text+0x1c6): undefined reference tostd::_cxx11::basicstring, std::allocator >::Mappend(char const, unsigned int)'

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

::compare(unsigned int, unsigned int,
std::_cxx11::basicstring<char, std::char_traits,
std::allocator > const&) const'
PurgeStrategy.cpp:(.text+0x26c): undefined reference tostd::_cxx11::basicstring, std::allocator >::Mcreate(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::basicstring, std::allocator >::Mcreate(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::basicstring,
std::allocator > const&, std::_cxx11::basicstring,
std::allocator >&, int ()(int))':

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

::Mappend(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::basicstring, std::allocator >&, int ()(int))':

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

::Mappend(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::basicstring, std::allocator >::Mconstruct(char, char, std::forward_iterator_tag) [clone .isra.15]':

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

::Mcreate(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::basicstring<char, std::char_traits, std::allocator >::compare(char const*) const'
FileStreamFactory.cpp:(.text+0x2a8): undefined reference tostd::_cxx11::basicstring, std::allocator >::Merase(unsigned int, unsigned int)'

FileStreamFactory.cpp:(.text+0x2f6): undefined reference to std::_cxx11::basicstring<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::basicstring, 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::basicstring<char,
std::char_traits, std::allocator

::Mcreate(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::basicstring<char,
std::char_traits, std::allocator

::Mcreate(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::basicstring<char,
std::char_traits, std::allocator

::Mcreate(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::basicstring<char,
std::char_traits, std::allocator

::Mcreate(unsigned int&, unsigned int)'
DeflatingStream.cpp:(.text+0x622): undefined reference tostd::_cxx11::basicstring, std::allocator >::Mcreate(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::basicstring<char,
std::char_traits, std::allocator

::Mcreate(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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images