[Ffmpeg-cvslog] CVS: ffmpeg configure,1.239,1.240
Michel Bardiaux
mbardiaux
Mon Jan 30 16:50:35 CET 2006
Michel Bardiaux wrote:
> Diego Biurrun wrote:
>
>> On Mon, Jan 30, 2006 at 11:20:54AM +0100, Michel Bardiaux wrote:
>>
>>> Diego Biurrun CVS wrote:
>>>
>>>> Modified Files:
>>>> configure Log Message:
>>>> On MinGW it is not possible to build shared and static libraries at
>>>> once.
>>>> Add means to disable building the static libraries and fix a few issues
>>>> with the MinGW build.
>>>> All the hard work done by Alexander Strasser, minor changes by myself.
>>>>
>>>
>>> I have tried and there seems to be something wrong.
>>>
>>> Virgin CVS co, then (under mingw)
>>>
>>> ./configure --enable-shared --disable-static --enable-memalign-hack
>>>
>>> make
>>>
>>> I get:
>>>
>>> make -C libavutil all
>>> make[1]: Entering directory
>>> `//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-latest/libavutil'
>>> gcc -O3 -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I..
>>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o
>>> mathematics.o mathematics.c
>>> gcc -O3 -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I..
>>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o
>>> integer.o integer.c
>>> gcc -O3 -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I..
>>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o
>>> rational.o rational.c
>>> gcc -O3 -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I..
>>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o
>>> intfloat_readwrite.o intfloat_readwrite.c
>>> rm -f C:\Program
>>> ar rc C:\Program mathematics.o integer.o rational.o intfloat_readwrite.o
>>> c:\mingw\bin\ar.exe: C:Program: No such file or directory
>>> make[1]: *** [C:\Program] Error 1
>>> make[1]: Leaving directory
>>> `//pktbes02/dsk3/people/michel/internet/ffmpeg-mingw-latest/libavutil'
>>> make: *** [lib] Error 2
>>>
>>> First, I dont see why ar shows up, since I disabled static!
>>
>>
>>
>> OK, but this is secondary for the moment.
>>
>>
>>> Net, the only place where Program (I guess Files) appears is in the
>>> 1st lines of config.mak:
>>>
>>> prefix=$(DESTDIR)/c/Program Files/FFmpeg
>>> libdir=$(DESTDIR)/c/Program Files/FFmpeg/lib
>>> bindir=$(DESTDIR)/c/Program Files/FFmpeg
>>> mandir=$(DESTDIR)/c/Program Files/FFmpeg/man
>>>
>>> I dont do install so these should not play any role.
>>>
>>> But unless one is *very* careful when using these variables, trouble
>>> will happen!
>>
>>
>>
>> Does the problem go away if you add quotes where necessary?
>
>
> It seems prefix et al. have nothing to do with the failure to build
> libavutil. What I have is this in my environment:
>
> LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
>
> Where that comes from is a mystery... I have unset it and relaunched
> configure, now it seems to loop, but there is another CPU hog on my PC
> now, so its hard to be sure. Stay tuned, I will report as soon as I have
> more info.
Latest news:
unset LIB
make distclean
./configure --enable-shared --disable-static --enable-memalign-hack
make
it goes as far as:
cp -p ffmpeg_g.exe ffmpeg.exe
strip ffmpeg.exe
c:\mingw\bin\strip.exe: ffmpeg.exe: File format not recognized
make: *** [ffmpeg.exe] Error 1
Why, no idea, could be a bug in my mingw version. But I see that the
.lib are present, and the dll sizes show clearly that avcodec is no
longer inside avformat.dll:
$ ls -al */*.dll
-rwxr-xr-x 1 michel Administ 8149751 Jan 30 16:29
libavcodec/avcodec.dll
-rwxr-xr-x 1 michel Administ 1231063 Jan 30 16:30
libavformat/avformat.dll
-rwxr-xr-x 1 michel Administ 53370 Jan 30 16:21 libavutil/avutil.dll
So:
"Here are the votes the Belgian jury. Germany: 10 points!" (Loud cheers)
Of course, I still have to sort out my shell init files under windows;
since I have both cygwin and mingw installed, and moreover the config
has been tweaked so I can rsh from a Linux machine to wrshdnt which
invokes the cygwin bash which launches MSVC...
>
>>
>> Diego
>>
--
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-cvslog
mailing list