[FFmpeg-user] ffmpeg windows build

Tim Nicholson tim.nicholson at bbc.co.uk
Thu Oct 20 10:42:11 CEST 2011

On 19/10/11 17:17, Kyle wrote:
> On 10/18/2011 3:36 AM, Tim Nicholson wrote:
>> http://pastebin.com/dnAngPCR
>> http://pastebin.com/sgNUs6yq
>> ...and not a shared library in sight, that I could see....
>>> Did you edit the pkgconfig files?
>> I edited the librtmp.pc file as the prefix(es) were obviously wrong.
>> I checked the libssl/pc and libcrypto.pc files but could not see any
>> glaring errors, prefixes were correct and ldl was not listed under any
>> of the Libs/Libs.private:-
>> Libs: -L${libdir} -lrtmp -lz #librtmp
>> Libs: -L${libdir} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libssl
>> Libs: -L${libdir} -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libcrypto
> You should be compiling openssl with: ./Configure --openssldir="/prefix"
> --prefix="/prefix" --cross-compile-prefix=i686-w64-mingw32- mingw no-shared

adding --openssldir="/prefix" makes no difference to the install paths, 
nor would I expect it too after a peruse of the configure.

I found using "--cross-compile-prefix=x86_64-w64-mingw32-" instead of 
presetting CC etc as I did led to an error:-

../x86_64-w64-mingw32/bin/as: unrecognized option '--noexecstack'

which is odd as I preset AS to x86_64-w64-mingw32-as, and I presume that 
the ../x86_64-w64-mingw32/bin/* binaries are the same as the prefixed ones..

> and making rtmp with: make prefix="/prefix" SYS=mingw
> CROSS_COMPILE=i686-w64-mingw32- SHARED=no INC="-I/openssl/include
> -I/zlib/include" XLDFLAGS="-L/openssl/lib -L/zlib/lib"
> You'll obviously need to change the prefixes/dir's to meet your needs
> but that should be the basic configure.
> You might also need to change the --cross-compile-prefix and the
> CROSS_COMPILE to fit your needs as well.
> Lastly, if you are compiling for 64-bit, change the "mingw" in openssl
> to "mingw64"
> I've compiled fine with this so you shouldn't run into any issues.

I know you do and very useful they are too. However I'm just trying to 
roll my own now so I can include other things :P

> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

More information about the ffmpeg-user mailing list