Guide : How to compile ffmpeg under Windows7 and VS2012

Questions that occur when trying to compile FFmpeg.
gambr
Posts: 14
Joined: Mon Nov 19, 2012 11:51 am

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by gambr » Thu Oct 23, 2014 3:30 pm

JAYANTHI wrote:Hi,

"./configure --prefix=ffmpeg/ --enable-shared --extra-cflags=-I/c/MinGW/include --yasmexe='C:/yasm/yasm-1.2.0-win32.exe' --enable-gpl --cpu=i686 --enable-shared --toolchain=msvc"

In my case , it is not working showing error like,

c99wrap cl is unable to create an executable file.
If c99wrap cl is a cross compiler, use --enable-cross-compile option.
Only do this if u know what cross compiling means.
C compiler test failed.

can you help me to overcome this issue
I got the same error and the problem was to set correctly the $PATH for c99wrap.exe. In fact there is an error at point 6)
sdancer75 wrote: Step 6)

Extend default path with the command "export PATH=$PATH:C:/ffmpeg"
MSYS does not get a path like windows but you shoud use instead:

export PATH=$PATH:/c/ffmpeg

Hope this helps,
Gianni

SeKes
Posts: 1
Joined: Mon Nov 17, 2014 11:59 am

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by SeKes » Mon Nov 17, 2014 12:04 pm

Hi!

I got this compile to work. But what needs to be changed to build the 64 bit version?

Best Regards
mike

vishugawli
Posts: 1
Joined: Mon Dec 01, 2014 3:03 pm

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by vishugawli » Tue Dec 02, 2014 9:36 am

sdancer75 wrote:I will upload a video on youtube... I will let you know as soon as I upload it !
Can you share your youtube link where this video is uploaded

kaushal
Posts: 9
Joined: Tue Jun 27, 2017 4:13 am

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by kaushal » Mon Jul 03, 2017 6:27 am

hello There,

I have reached up to Step 8

Step 8) Now under "C:\ffmpeg\ffmpeg\lib" you should see some *.def and *.a files. Its time to convert *.a to standard MS *.lib files.
Change directory using the command "cd .\ffmpeg\lib"


but when i apply the command "Take a file list with "ls -l" command."

in the directory "C:\ffmpeg-3.3\ffmpeg\lib" i have only libavdevice.a file

so what left behind , the only difference between your post and my process is as i am using windows 64bit so insted of this command

./configure --prefix=ffmpeg/ --enable-shared --extra-cflags=-I/c/MinGW/include --yasmexe='C:/yasm/yasm-1.2.0-win32.exe' --enable-gpl --cpu=i686"

my configuration command is

./configure --prefix=ffmpeg/ --enable-shared --extra-cflags=-I/c/MinGW/include --yasmexe='C:\vsyasm-1.3.0/vsyasm.exe' --enable-gpl --cpu=x86-64"


and in ffmpeg folder i have only two forlder
1> lib
2> share

regards

kaushal

kaushal
Posts: 9
Joined: Tue Jun 27, 2017 4:13 am

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by kaushal » Tue Jul 04, 2017 3:28 am

at Step 8

i didn't got c:\\ffmpeg\ffmpeg folder, so stoped at step 8 plz suggest what went wrong?
Attachments
Guide-how-to-Step-8.jpg
Guide-how-to-Step-8.jpg (450.58 KiB) Viewed 3113 times

kaushal
Posts: 9
Joined: Tue Jun 27, 2017 4:13 am

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by kaushal » Tue Jul 04, 2017 6:16 am

issue sorted out as the second ffmpeg folder need to create our-self in ffmpeg folder only and give path to "./configure --prefix=ffmpeg/" and after the complete installation process we will have all the lib and include files available with in this folder

kaushal
Posts: 9
Joined: Tue Jun 27, 2017 4:13 am

Re: Guide : How to compile ffmpeg under Windows7 and VS2012

Post by kaushal » Tue Jul 04, 2017 6:21 am

gambr wrote:
Thu Oct 23, 2014 3:30 pm
JAYANTHI wrote:Hi,

"./configure --prefix=ffmpeg/ --enable-shared --extra-cflags=-I/c/MinGW/include --yasmexe='C:/yasm/yasm-1.2.0-win32.exe' --enable-gpl --cpu=i686 --enable-shared --toolchain=msvc"

In my case , it is not working showing error like,

c99wrap cl is unable to create an executable file.
If c99wrap cl is a cross compiler, use --enable-cross-compile option.
Only do this if u know what cross compiling means.
C compiler test failed.

can you help me to overcome this issue
I got the same error and the problem was to set correctly the $PATH for c99wrap.exe. In fact there is an error at point 6)
sdancer75 wrote: Step 6)

Extend default path with the command "export PATH=$PATH:C:/ffmpeg"
MSYS does not get a path like windows but you shoud use instead:

export PATH=$PATH:/c/ffmpeg

Hope this helps,
Gianni
a little change i have made is instead of win34 i use yasm-1.2.0-win64 HIGHLIGHTED WIN64


"./configure --prefix=ffmpeg/ --enable-shared --extra-cflags=-I/c/MinGW/include --yasmexe='C:/yasm/yasm-1.2.0-win64.exe' --enable-gpl --cpu=i686 --enable-shared

work fine but when i add the "--toolchain=msvc" it start giving error saying "c99conv.exe has stopped working"

plz suggest what went wrong in whole process

Post Reply
'