[Ffmpeg-devel] Gray Scale decoding of MPEG4 data anddebugginglibavcodec

Diego Biurrun diego
Tue May 16 20:14:33 CEST 2006


On Mon, May 15, 2006 at 04:02:13PM -0700, Matt Schuckmann wrote:
> 
> It looks like the addition of the version number to the shared library file
> names (i.e. avcodec.dll.51) messes with the Microsoft linker. The only way I
> could get MSVC to link with the shared libraries was to do away with the
> SLIBNAME_WITH_MAJOR target in common.mak and restore it to the way it was in
> rev 1.267 of common.mak, then link would create the lib file for the dll and
> everything played nice. 

Please try the attached patch.

> I'm not real familiar with the rules of link so maybe somebody else can tell
> me if the avcodec.dll.51 should have worked and was just doing something
> wrong. This seems like kind of an odd way to do versioning of a shared
> library file. 

Welcome to the world of Unix.

Diego

P.S.: Please teach your Outlook not to top-post.
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.274
diff -u -r1.274 configure
--- configure	16 May 2006 18:06:28 -0000	1.274
+++ configure	16 May 2006 18:14:28 -0000
@@ -930,6 +930,8 @@
     SLIBPREF=""
     SLIBSUF=".dll"
     EXESUF=".exe"
+    SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'
+    SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'
     if test "$force_prefix" != yes; then prefix="/c/Program Files/FFmpeg"; fi
     if test "$force_libdir" != yes; then bindir="$prefix"; fi
 fi



More information about the ffmpeg-devel mailing list