How can I link against dynamic libs when cross compiling programs for the Omega2+?
Is there some guide on how I can do it?
I managed to compile the opencv sources using the toolchain
and copied the generated lib files (shared .so) into the /usr/lib directory of the Omega2+.
It seems to work since I can run the create_samples and create_traincasscade binarys to
produce the casscade detecting files used to detect objects on pictures.
At the moment I am trying to cross compile a simple sample program that only opens an image for processing it but I am not able to build the binary because there seems to be an error when linking everything together.
I tried building it using this command:
mipsel-openwrt-linux-musl-g++ -Wall -I/home/test/omega2 -L$LD_LIBRARY_PATH -o test Test1.cpp
LD_LIBRARY_PATH is set to the folder where I have put the cross compiled library files of opencv
/home/test/omega2 is the path where the headers are.
Executing it will generate these errors:
I dont really know what to do
Thanks for any help / guid / lecture ...