Closed Ceylo closed 11 years ago
Something like this may be helpful.
Ah thanks, the current FindFFMPEG has been hand-made by Danman and probably only works for Linux (and maybe Windows) at the moment so this should be useful.
Any Shell script seems to be runnable with the following Bat source :
PATH C:\MinGW\msys\1.0\bin;C:\MinGW\bin;%path%
bash -c "./build.sh windows"
PAUSE
MSYS and MinGW must be put in first place or the call to some commands like "find" will run the wrong find.exe. Besides, if the CMD shell crashes, the following patch must be applied : http://support.microsoft.com/kb/2458000
Confirmed to build fine with KDevelop on Linux
Here's a little sum up of current status of this story:
On Linux:
On Mac OS X:
On Windows:
The CMakeDirected branch has been merged to master and deleted.
Everything works fine on OS X (Xcode + Makefiles) now.
Everything still working fine on Linux.
On Windows with VS2012, FFmpeg build is launched but fails at link time with the following:
LD libavfilter/avfilter-3.dll
libavfilter/avf_showspectrum.o: In function `config_output':
c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:135: undefined reference to `av_rdft_end'
c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:136: undefined reference to `av_rdft_init'
libavfilter/avf_showspectrum.o: In function `plot_spectrum_column':
c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:241: undefined reference to `av_rdft_calc'
libavfilter/avf_showspectrum.o: In function `uninit':
Creating library file: libavfilter/libavfilter.dll.a
c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:78: undefined reference to `av_rdft_end'
collect2: ld a retournÚ 1 code d'Útat d'exÚcution
make: *** [libavfilter/avfilter-3.dll] Error 1
*** an error occured, aborting.
The error is reported here and the only fix seems to be updating FFmpeg. Wondering why I never got this issue though...
Tested on Linux. Building both the provided version of FFmpeg as well as linking against the system version did not result in any errors. :)
Yay! :D
Maybe this would help at fixing the build with FFmpeg 1.0 and Visual Studio 2012: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff;f=configure;h=87f16e3fe733ceddf4a18d752283ac1073a4d232;hp=8a805b1d259e828b8b9d4aa428767c4e7ff20e0b;hb=4c5a9fd65a19a893b732784dd1c4c2937705553b;hpb=0a7d4ea31b69433b1390a412540a9f072b0502a8
Seems like that at the moment, even if it builds, it also crashes.
Actually it runs fine, seems like I had made a mistake while copying the DLLs the first time.
Instead of running CMake from the build.sh script, it would be interesting (if it's possible) to to the opposite : do the whole configuration within CMake and only some parts (like building FFmpeg) in shells scripts.
Edit: AC: