Issues linking libav (FFMPEG) #2
|
I setup libav with I'll have to think about this some more. |
|
I think what I should do is build both in release mode with debug symbols, and in roborio-packages have a step to strip out the symbols automagically. We already have such a step, but it's only executed on things that are installed, and not packages like this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In branch libav, built with libav from this branch in roborio-packages.
Basically, it looks like if libav is setup for shared libraries, you end up with something like this:
The error is something like...
And if you look at the rpath entries for libopencv_ libs, it points at the correct path to find the libav modules. However, the link fails, so I suspect for some reason LD isn't recursively adding the rpath as it encounters a new library. When running the compile command with an additional
-Wl,-rpath-link,/path/to/libavflag, then it succeeds -- but I can't figure out how to convince cmake to add that for me.I've spent a bit more time on this than I would like, so I'm giving up for now -- but I'm going to see if statically linking libav will work instead.