building and running under cygwin

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

building and running under cygwin

technomage
Could someone point me to the most recent documentation on building  
under cygwin, if any?

It seems most windows users are doing mingw32 + msys + etc; I've  
already got a full cygwin environment, which obviates the need for  
msys, at least for configuration purposes.  I'm invoking gcc with "-
mno-cygwin" passed to both compiler and linker, which is sufficient  
to omit all cygwin library shims.

../configure --extra-cflags="-mno-cygwin" --extra-ldflags="-mno-
cygwin" --enable-memalign-hack --enable-shared --disable-static --
disable-vhook

The above configure gets the config and most of the build working;  
unfortunately it generates dlls prefixed with "cyg", which presumably  
is incorrect when using the "-mno-cygwin" flags.  Renaming these  
allows the build to complete.  I've eventually gotten everything to  
compile, but then ffmpeg.c chokes missing a lot of include files,  
which looks like a major configuration error.

If there isn't anything out there, I'm willing to tweak the config/
build to make it work.

In the meantime I'll probably be using a linux or OSX build to do my  
evaluation testing.

Timothy Wall
http://abbot.sf.net


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

Ví­ctor Paesa
Hi,

> Could someone point me to the most recent documentation on building
> under cygwin, if any?
>
> It seems most windows users are doing mingw32 + msys + etc; I've
> already got a full cygwin environment, which obviates the need for
> msys, at least for configuration purposes.  I'm invoking gcc with "-
> mno-cygwin" passed to both compiler and linker, which is sufficient   to
> omit all cygwin library shims.
>
> ../configure --extra-cflags="-mno-cygwin" --extra-ldflags="-mno-
> cygwin" --enable-memalign-hack --enable-shared --disable-static --
> disable-vhook
>
> The above configure gets the config and most of the build working;
> unfortunately it generates dlls prefixed with "cyg", which presumably
> is incorrect when using the "-mno-cygwin" flags.  Renaming these
> allows the build to complete.  I've eventually gotten everything to
> compile, but then ffmpeg.c chokes missing a lot of include files,
> which looks like a major configuration error.
>
> If there isn't anything out there, I'm willing to tweak the config/
> build to make it work.
>
> In the meantime I'll probably be using a linux or OSX build to do my
> evaluation testing.

Did you try the (only slightly different) configure command at
http://ffmpeg.mplayerhq.hu/general.html#SEC17 ?

Regards,
Víctor


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

technomage

On Dec 15, 2007, at 12:17 PM, Víctor Paesa wrote:

>>
>> ../configure --extra-cflags="-mno-cygwin" --extra-ldflags="-mno-
>> cygwin" --enable-memalign-hack --enable-shared --disable-static --
>> disable-vhook
>>
> Did you try the (only slightly different) configure command at
> http://ffmpeg.mplayerhq.hu/general.html#SEC17 ?
>

Thank you.   Adding "--target-os=mingw32" made the build complete  
successfully.

I skipped right over that section upon seeing "cross-compile"...


Timothy Wall
http://abbot.sf.net


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

Michel Bardiaux-2
Timothy Wall a écrit :

> On Dec 15, 2007, at 12:17 PM, Víctor Paesa wrote:
>
>>> ../configure --extra-cflags="-mno-cygwin" --extra-ldflags="-mno-
>>> cygwin" --enable-memalign-hack --enable-shared --disable-static --
>>> disable-vhook
>>>
>> Did you try the (only slightly different) configure command at
>> http://ffmpeg.mplayerhq.hu/general.html#SEC17 ?
>>
>
> Thank you.   Adding "--target-os=mingw32" made the build complete  
> successfully.
>
> I skipped right over that section upon seeing "cross-compile"...
>
2 questions about what one can do with the result of that build:

1. Since the resulting dll's and exe's dont depend on cygwin.dll, they
remain LGPL, right?

2. To link a Visual-C application to the lav libs, the dlls plus def are
enough, or do I have to create .lib files manually (or patch the ffmpeg
build scripts to do it...)

--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

technomage

On Dec 17, 2007, at 10:05 AM, Michel Bardiaux wrote:

> 2 questions about what one can do with the result of that build:

(referring to a mingw32 build under cygwin)

>
> 2. To link a Visual-C application to the lav libs, the dlls plus  
> def are
> enough, or do I have to create .lib files manually (or patch the  
> ffmpeg
> build scripts to do it...)

It appears that the .lib files are generated; I haven't tried linking  
against them with msvc, though.


Timothy Wall
http://abbot.sf.net


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

Michel Bardiaux-2
Timothy Wall a écrit :

> On Dec 17, 2007, at 10:05 AM, Michel Bardiaux wrote:
>
>> 2 questions about what one can do with the result of that build:
>
> (referring to a mingw32 build under cygwin)
>
>> 2. To link a Visual-C application to the lav libs, the dlls plus  
>> def are
>> enough, or do I have to create .lib files manually (or patch the  
>> ffmpeg
>> build scripts to do it...)
>
> It appears that the .lib files are generated; I haven't tried linking  
> against them with msvc, though.
>
I dont have any .lib. Please check you get them when starting from a
pristine svn co. If you do, then I have some setup problem.

Greetings,
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

technomage

On Dec 17, 2007, at 11:42 AM, Michel Bardiaux wrote:

>>
>> It appears that the .lib files are generated; I haven't tried linking
>> against them with msvc, though.
>>
> I dont have any .lib. Please check you get them when starting from a
> pristine svn co. If you do, then I have some setup problem.

Here is my config line, invoked from a "build" subdirectory:

../configure --target-os=mingw32 --extra-cflags="-mno-cygwin" --extra-
ldflags="-mno-cygwin" --enable-memalign-hack --enable-shared --
disable-static --disable-vhook

A clean build results in generated .def and .lib files.


Timothy Wall
http://abbot.sf.net


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

Ví­ctor Paesa
Hi,

Timothy Wall said:

>
> On Dec 17, 2007, at 11:42 AM, Michel Bardiaux wrote:
>
>>>
>>> It appears that the .lib files are generated; I haven't tried linking
>>> against them with msvc, though.
>>>
>> I dont have any .lib. Please check you get them when starting from a
>> pristine svn co. If you do, then I have some setup problem.
>
> Here is my config line, invoked from a "build" subdirectory:
>
> ../configure --target-os=mingw32 --extra-cflags="-mno-cygwin" --extra-
> ldflags="-mno-cygwin" --enable-memalign-hack --enable-shared --
> disable-static --disable-vhook
>
> A clean build results in generated .def and .lib files.

I bet Timothy had the lib command somewhere in his PATH, and Michel hadn't.

Regards,
Víctor


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: building and running under cygwin

Michel Bardiaux-2
Víctor Paesa a écrit :

> Hi,
>
> Timothy Wall said:
>> On Dec 17, 2007, at 11:42 AM, Michel Bardiaux wrote:
>>
>>>> It appears that the .lib files are generated; I haven't tried linking
>>>> against them with msvc, though.
>>>>
>>> I dont have any .lib. Please check you get them when starting from a
>>> pristine svn co. If you do, then I have some setup problem.
>> Here is my config line, invoked from a "build" subdirectory:
>>
>> ../configure --target-os=mingw32 --extra-cflags="-mno-cygwin" --extra-
>> ldflags="-mno-cygwin" --enable-memalign-hack --enable-shared --
>> disable-static --disable-vhook
>>
>> A clean build results in generated .def and .lib files.
>
> I bet Timothy had the lib command somewhere in his PATH, and Michel hadn't.
>
Indeed, MSVC was not correctly installed.

--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user