Discussion:
[Libav-user] Compiling dll and lib
ganesh mundhe
2018-08-21 06:35:44 UTC
Permalink
Hello all,

For commercial use I'm compiling FFmpeg 4.0 for 64bit window application.
But when I use https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT for
windows 10 x64, but this fails to complie from VS2015 x86 x64 cross tool
command prompt.
I'm able to compile using vs2015 Dev command prompt but those ddl gives
unresolved linking error no matter what configuration I use.


Any help?

Thanks and warm regards,
Ganesh
Carl Eugen Hoyos
2018-08-21 08:43:21 UTC
Permalink
Post by ganesh mundhe
For commercial use I'm compiling FFmpeg 4.0 for 64bit window application.
But when I use https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT for
windows 10 x64, but this fails to complie from VS2015 x86 x64 cross tool
command prompt.
It fails?

You should not use cross-compilation if you compile on host x86 for target
x86 or on host x86_64 for target x86 or target x86_64.
Post by ganesh mundhe
I'm able to compile using vs2015 Dev command prompt but those ddl gives
unresolved linking error no matter what configuration I use.
You get an unresolved linking error?
Would you like to tell us which error you get in what situation?

Carl Eugen
ganesh mundhe
2018-08-21 21:49:30 UTC
Permalink
Thanks for reply Carl.

If you look up link https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT under
*window 10 x64 *it says launch Launch *VS2015 x86 x64 Cross Tools Command
Prompt*
Thn use --arch=x86_64 --target_os=32 and MD flag in config.
I did the exact same. Everything sooms good.
Used these in x64 cpp console app , build well *no error.*
But when I run app, vcruntime140_app.dll missing error shows.
I checked, have latest version of vs2015 with vcruntime140.dll and console
app running fine, if I use ffmpeg dll downloaded from shared build >ffmpeg
download. But i want lgpl version that why manually compiling them.

Even tried changing target_os=64, same result.
App throws vcruntime140_app.dll missing error on execute.

If I use vs2015 Dev command prompt to launch msys2> compile dll,thn it
throws unresolved linking errors for all ffmpeg API used.


Thank and regards
Ganesh
Post by Carl Eugen Hoyos
Post by ganesh mundhe
For commercial use I'm compiling FFmpeg 4.0 for 64bit window application.
But when I use https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT for
windows 10 x64, but this fails to complie from VS2015 x86 x64 cross tool
command prompt.
It fails?
You should not use cross-compilation if you compile on host x86 for target
x86 or on host x86_64 for target x86 or target x86_64.
Post by ganesh mundhe
I'm able to compile using vs2015 Dev command prompt but those ddl gives
unresolved linking error no matter what configuration I use.
You get an unresolved linking error?
Would you like to tell us which error you get in what situation?
Carl Eugen
_______________________________________________
Libav-user mailing list
http://ffmpeg.org/mailman/listinfo/libav-user
Loading...