static mediainfo binary compiled from source has shared object linked
A unified display of relevant technical and tag data for A/V files
Brought to you by:
guillaumeroques,
zenitram
All these libs are system libs, and most of them depend of your compiler (e.g. libstdc++.so.6 is the standard C++ library, libgcc_s.so.1 is there because you use GCC...)
So you need to play with your compiler options ("-static-libstdc++ -static-libgcc"...) for all projects (e.g. you need to provide a static version of libz).
each sub-project has a ./configure (and also the corresponding configure.ac), you may have to adapt the ./configure options and/or edit a bit th configure.ac file in order to reach you goal (warning: static link of e.g. libstdc++.so.6 is usually not recommanded, you need to have a very good reason for trying that; on our side we never tried that).
Ticket moved from /p/mediainfo/bugs/1066/
(Note: this is not a bug as this is an uncommon compilation config and it is not supported, so I move it to support)
Thx Jerome,
My purpose was to transfer this static binary to other location and use it over there. However because of these shared objects it fails to execute.
I will try to follow your recommendations and see if i can fix it.
I don't think that it is specific to MediaInfo, just the classic way it is on Linux and all C++ software have this "issue".
this is the reason I think there is no "fix", just something not classic is tried and should be configured with options to be used the same way on all software.
Don't hesitate to open the ticket again if there is a problem specific to our delivery.