[Ffmpeg-devel] Re: [RFC] ffmpeg-windows mailinglist?

Diego Biurrun diego
Thu Aug 3 22:36:04 CEST 2006


On Thu, Aug 03, 2006 at 07:51:16PM +0200, V?ctor Paesa wrote:
> >
> > So where is the problem?  The command
> >
> >   ln -sf avutil-49.0.0.dll "C:\Program Files/FFmpeg/lib/avutil-49.dll"
> >
> > creates a link pointing to avutil-49.0.0.dll with the name
> > "C:\Program Files/FFmpeg/lib/avutil-49.dll" and
> > "C:\Program Files/FFmpeg/lib/avutil-49.0.0.dll" was created by the
> > install command ...
> 
> The problem is that "ln" is emulated in MinGW by "cp", so you're
> really attempting
> 
> cp -f \
> /home/wzrlpy/src/FFMpeg-20060802-5893/ffmpeg/libavutil/avutil-49.0.0.dll \
> "C:\Program Files/FFmpeg/lib/avutil-49.dll"
> 
> and that fails, because there is no
> /home/wzrlpy/src/FFMpeg-20060802-5893/ffmpeg/libavutil/avutil-49.0.0.dll

OK, try the attached patch, please.

Diego
-------------- next part --------------
Index: common.mak
===================================================================
--- common.mak	(revision 5921)
+++ common.mak	(working copy)
@@ -59,16 +59,10 @@
 
 install-lib-shared: $(SLIBNAME)
 	install -d "$(shlibdir)"
-ifeq ($(CONFIG_MINGW),yes)
-	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
-else
-	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
-		$(shlibdir)/$(SLIBNAME_WITH_VERSION)
-	ln -sf $(SLIBNAME_WITH_VERSION) \
-	       $(shlibdir)/$(SLIBNAME_WITH_MAJOR)
-	ln -sf $(SLIBNAME_WITH_VERSION) \
-	       $(shlibdir)/$(SLIBNAME)
-endif
+	cd "$(shlibdir)"
+	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(SLIBNAME_WITH_VERSION)
+	ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
+	ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
 
 install-lib-static: $(LIB)
 	install -d "$(libdir)"
@@ -83,13 +77,9 @@
 uninstall: uninstall-libs uninstall-headers
 
 uninstall-libs:
-ifeq ($(CONFIG_MINGW),yes)
-	-rm -f $(prefix)/$(SLIBNAME)
-else
 	-rm -f $(libdir)/$(SLIBNAME_WITH_MAJOR) \
 	       $(libdir)/$(SLIBNAME)            \
 	       $(libdir)/$(SLIBNAME_WITH_VERSION)
-endif
 	-rm -f $(libdir)/$(LIB)
 
 uninstall-headers:



More information about the ffmpeg-devel mailing list