[FFmpeg-user] ffmpeg windows build

Kyle kshawkeye at gmail.com
Wed Oct 19 18:17:52 CEST 2011


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

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.


More information about the ffmpeg-user mailing list