[FFmpeg-devel] How to change the *.dll name?

华々光影 313520084
Mon Mar 14 10:17:22 CET 2011


Recently, I wants to change the *.dll name like avformat.dll to jwavformat.dll after 


"make" in MINGW in Win7.But, I has a trouble in changing the *.dll name. I had tried many times .Once I altered the configure like below.
@@ -2214 +2221 @@ 
         disable ffserver
         SLIBPREF="jw"
         SLIBSUF=".dll"
-        SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
-        SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
+        SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'
+        SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'
         SLIB_EXTRA_CMD='-lib.exe /machine:$(LIBTARGET) /def:$$(@:$(SLIBSUF)=.def) 


/out:$(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)'
         SLIB_INSTALL_EXTRA_CMD='-install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:


$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"; \
             install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) 


"$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"; \
@@ -2239 +2253 @@
     cygwin*)
         target_os=cygwin
         shlibdir_default="$bindir_default"
-        SLIBPREF="cyg"
+        SLIBPREF="jw"
         SLIBSUF=".dll"
-        SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
-        SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
-        SHFLAGS='-shared -Wl,--enable-auto-image-base'
+        SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'
+        SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'
+        SLIB_EXTRA_CMD='-lib.exe /machine:ARM /subsystem:WINDOWSCE /def:$$(@:


$(SLIBSUF)=.def) /out:$(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)'
+        SLIB_INSTALL_EXTRA_CMD='-install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:


$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"; \
+            install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) 


"$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"'
+        SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"'
+        SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -Wl,--out-implib,


$(SUBDIR)lib$(SLIBNAME:$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc -Wl,--


enable-auto-image-base'
         objformat="win32"
         enable dos_paths
         check_cflags -fno-common
But it is a failure.


Error message?CC      libavutil/utils.o
make: Circular libavutil/jwavutil.dll <- libavutil/jwavutil.dll dependency dropp
ed.
LD      libavutil/jwavutil.dll
Creating library file: libavutil/libjwavutil.dll.a
lib.exe /machine:i386 /def:libavutil/jwavutil.def /out:libavutil/jwavutil.lib
make: lib.exe: Command not found
make: [libavutil/jwavutil.dll] Error 127 (ignored)
LD      libavcodec/jwavcodec.dll
d:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot fin
d -lavutil
collect2: ld returned 1 exit status
make: *** [libavcodec/jwavcodec.dll] Error 1


How should I do?



More information about the ffmpeg-devel mailing list