[Ffmpeg-devel] Bug in libavutil Makefile (or maybe just mystupidity? Be gentle...)
Michel Bardiaux
mbardiaux
Mon Feb 13 11:33:44 CET 2006
Diego Biurrun wrote:
>
> I've considerably reworked and simplified the build system today. This
> issue should be solved now. Reports welcome, I could not test on Win32.
******* MINGW SHARED ***********
make distclean
./configure --enable-shared --disable-static --disable-strip
--enable-memalign-hack
make
make install
Result:
make -C libavutil all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make -C libavcodec all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make -C libavformat all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
gcc -Wl,--warn-common -g -o ffmpeg_g.exe ffmpeg.o cmdutils.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -L./libavutil
-lavutil -lm
Info: resolving _ffm_nopts by linking to __imp__ffm_nopts (auto-import)
Info: resolving _loop_input by linking to __imp__loop_input (auto-import)
Info: resolving _first_image_format by linking to
__imp__first_image_format (auto-import)
Info: resolving _first_avcodec by linking to __imp__first_avcodec
(auto-import)
Info: resolving _first_oformat by linking to __imp__first_oformat
(auto-import)
Info: resolving _first_iformat by linking to __imp__first_iformat
(auto-import)
Info: resolving _first_protocol by linking to __imp__first_protocol
(auto-import)
cp -p ffmpeg_g.exe ffmpeg.exe
echo ignoring strip ffmpeg.exe
ignoring strip ffmpeg.exe
install -d /c/Program Files/FFmpeg/lib
./install: line 2: syntax error near unexpected token `1)'
./install: line 2: `1) Type './configure' create the configuration (use
'./configure'
make: *** [install-libs] Error 2
The problem being probably that on a Windows machine, "INSTALL" and
"install" are the same file. I have renamed the file to install.txt (no
cvs update of course!). Done everything again:
make -C libavutil all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make -C libavcodec all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make -C libavformat all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
gcc -Wl,--warn-common -g -o ffmpeg_g.exe ffmpeg.o cmdutils.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -L./libavutil
-lavutil -lm
Info: resolving _ffm_nopts by linking to __imp__ffm_nopts (auto-import)
Info: resolving _loop_input by linking to __imp__loop_input (auto-import)
Info: resolving _first_image_format by linking to
__imp__first_image_format (auto-import)
Info: resolving _first_avcodec by linking to __imp__first_avcodec
(auto-import)
Info: resolving _first_oformat by linking to __imp__first_oformat
(auto-import)
Info: resolving _first_iformat by linking to __imp__first_iformat
(auto-import)
Info: resolving _first_protocol by linking to __imp__first_protocol
(auto-import)
cp -p ffmpeg_g.exe ffmpeg.exe
echo ignoring strip ffmpeg.exe
ignoring strip ffmpeg.exe
install -d /c/Program Files/FFmpeg/lib
make -C libavutil install-lib-shared
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
install -m 755 avutil.dll "/c/Program Files/FFmpeg"
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make -C libavcodec install-lib-shared
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
install -m 755 avcodec.dll "/c/Program Files/FFmpeg"
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make -C libavformat install-lib-shared
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
install -m 755 avformat.dll "/c/Program Files/FFmpeg"
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
ldconfig || true
/bin/sh.exe: ldconfig: command not found
install -d "/c/Program Files/FFmpeg"
install: `/c/Program Files/FFmpeg' exists but is not a directory
make: *** [install-progs] Error 1
In my "Program Files" there is indeed no directory "FFmpeg" and there is
a file named FFmpeg which has the same size as avformat.dll.
******* MINGW STATIC ***********
<yada yada>
make -C libavutil all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make -C libavcodec all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make -C libavformat all
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
gcc -Wl,--warn-common -g -o ffmpeg_g.exe ffmpeg.o cmdutils.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -L./libavutil
-lavutil -lm
cp -p ffmpeg_g.exe ffmpeg.exe
echo ignoring strip ffmpeg.exe
ignoring strip ffmpeg.exe
install -d "/c/Program Files/FFmpeg"
install -c -m 755 ffmpeg.exe "/c/Program Files/FFmpeg"
install -d /c/Program Files/FFmpeg/lib
make -C libavutil install-lib-static
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
install -m 644 libavutil.a "/c/Program Files/FFmpeg/lib"
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavutil'
make -C libavcodec install-lib-static
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
install -m 644 libavcodec.a "/c/Program Files/FFmpeg/lib"
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavcodec'
make -C libavformat install-lib-static
make[1]: Entering directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
install -m 644 libavformat.a "/c/Program Files/FFmpeg/lib"
make[1]: Leaving directory
`//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-tutorial/libavformat'
install -d "/c/Program Files/FFmpeg/include/ffmpeg"
install -d "/c/Program Files/FFmpeg/lib/pkgconfig"
install: `/c/Program Files/FFmpeg/lib' exists but is not a directory
make: *** [install-headers] Error 1
Since you're working on the build system I wont attempt to patch, it
would only cause conflicts.
>
> Diego
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
More information about the ffmpeg-devel
mailing list