[FFmpeg-devel] QSV dynamically linked on linux
On Fri, Oct 16, 2015 at 12:10 PM, Ivan Uskov wrote: > Hello Julien, > > Thursday, October 15, 2015, 7:08:10 PM, you wrote: > > JF> Hi all, > > JF> I'm using QuickSync and FFmpeg on linux. > JF> It works well for encoding and decoding when I build it with > JF> --enable-static. > > JF> But when I build it with --enable-shared, it hangs. > JF> So my question is: is it supposed to work when dynamically linked? > As far as I understanding, here only libmfx library can be the reason of > the > issue. Possible libmfx was compiled without -fPIC flag. > There are two source of libmfx possible, original Intel distributive and > mfx_dispatch project: https://github.com/lu-zero/mfx_dispatch > For both cases libmfx delivers in sources so you can double-check how > it > compiles, and try to recompile libmfx with forced -fPIC compiler option. > In general linker should to reject libs compiled without > position-independent > code option so the reason may be more deep and complex but -fPIC is first > what > necessary to check. > > > -- > Best regards, > Ivanmailto:ivan.us...@nablet.com > > Thanks Ivan. You're right, it works when I compile the mfx_dispatch project with: --enable-static --disable-shared --with-pic Regards, Julien ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] QSV dynamically linked on linux
Hello Julien, Thursday, October 15, 2015, 7:08:10 PM, you wrote: JF> Hi all, JF> I'm using QuickSync and FFmpeg on linux. JF> It works well for encoding and decoding when I build it with JF> --enable-static. JF> But when I build it with --enable-shared, it hangs. JF> So my question is: is it supposed to work when dynamically linked? As far as I understanding, here only libmfx library can be the reason of the issue. Possible libmfx was compiled without -fPIC flag. There are two source of libmfx possible, original Intel distributive and mfx_dispatch project: https://github.com/lu-zero/mfx_dispatch For both cases libmfx delivers in sources so you can double-check how it compiles, and try to recompile libmfx with forced -fPIC compiler option. In general linker should to reject libs compiled without position-independent code option so the reason may be more deep and complex but -fPIC is first what necessary to check. -- Best regards, Ivanmailto:ivan.us...@nablet.com ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] QSV dynamically linked on linux
Hi all, I'm using QuickSync and FFmpeg on linux. It works well for encoding and decoding when I build it with --enable-static. But when I build it with --enable-shared, it hangs. So my question is: is it supposed to work when dynamically linked? Thanks in advance, Julien ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel