Hello,
I attempted to develop a simple camera viewer(using OpenCV 2.3.4) on my Debian 7 running on VirtualBox and run it on another machine(physical this time) without OpenCV and that is very minimalistic.
It ran fine where it was develepoed, but not on another machine. The executable is 11KB(obvious that it links to a bunch of ".so" shared libraries).
The obvious thing one would do is to copy the libraries along with the executable and install them as appropriate, which I tried to do until it kept asking and asking on about 7-th or 8-th execution, weird libraries like "libtbb.so" "libImath.so" etc.
I imagine it could have linked to tens of even a hundred of those. I can't just keep copying every single one it complaints about(discovering them from errors by executing the program on another machine).
I tried to google how to include all libraries from Eclipse C++ into an executable, but it seems you can't do that with shared libraries and enforcing "-static" flag brings millions of errors(seemingly of missing corresponding static libraries).
Even if I manage to somehow(still would be a huge help from current situation) copy all involved libraries automatically, I would still need to set up links or them in correct locations.
I doubt my case is unique as it seems to be a general notion of "developing under Linux with shared libraries".
Anyone has any ideas?