[Ffmpeg-devel] Shared libraries on AMD64

Dominik 'Rathann' Mierzejewski dominik
Fri Jan 5 10:26:11 CET 2007


On Thursday, 04 January 2007 at 22:05, Josh Mahonin wrote:
> Hi,
> 
> I'm curious if anyone has dynamic loading of shared libraries for ffmpeg
> working in a Linux/AMD64 environment.  The app seems to load the
> libavcodec.so fine and finds all the functions, but on the
> avcodec_encode_video() call the thread locks up.  This is using the
> mpeg4_encoder.  I have a suspicion this is due to PIC, as I had a
> similar problem with the OpenH323/Opal implementation of ffmpeg and H.263.
> 
> I saw the thread on building dynamic libraries on Darwin and it had some
> good pointers, but I didn't manage to have any success.  I've tried
> configuring with pretty much every subset of the following:
> 
> {--enable-shared, --disable-mmx, --enable-gpl, --disable-strip,
> --disable-ffplay, --disable-ffserver, --extra-cflags="-fno-common",
> --extra-cflags="-Wl,search_paths_first",
> --extra-cflags="-Wl,-current_version\$(VERSION_NUMERIC),-install_name,${prefix}/lib/"}

How about NOT using any of the weird cflags you're passing?
See livna RPMs for a working example.

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan




More information about the ffmpeg-devel mailing list