[FFmpeg-user] [FFmpeg-devel] undefined reference to sws_getContext and others library linking question

Chau Pham chaupv79 at hotmail.com
Wed Jul 11 09:58:48 CEST 2012


Thank Nicolas,
 
I just compiled successful
 
Regards,
Chau Pham
 

Date: Wed, 11 Jul 2012 09:48:19 +0200
From: nicolas.george at normalesup.org
To: ffmpeg-devel at ffmpeg.org
CC: ffmpeg-user at ffmpeg.org
Subject: Re: [FFmpeg-user] [FFmpeg-devel] undefined reference to sws_getContext and others library linking question

Le quartidi 24 messidor, an CCXX, Chau Pham a écrit :
> LIBS = -lpostproc -lswresample -lswscale -lavfilter -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -Wl
 
Since you are about tu use static libraries (you did not put --enable-shared
and the error messages show .a files), the -l options must be in dependency
order. For example, libavfilter uses libswresample and libswscale and is
used by libavdevice, so -lavfilter must come after -lavdevice but before
-lswscale and -lswresample. You need also to explicitly add the few system
libraries ffmpeg depends on in its default build; you already added -lm and
-ldl, but you probably need also libz, and possibly the ALSA, SDL, JACK,
etc., libraries, depending on what configure has found.
 
Regards,
 
-- 
  Nicolas George

_______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user 		 	   		  


More information about the ffmpeg-user mailing list