Yalir / sfeMovie

sfeMovie is a simple C++ library that lets you play movies in SFML based applications. It relies on FFmpeg to read medias and remains consistent with SFML's naming conventions.
http://sfemovie.yalir.org/
GNU Lesser General Public License v2.1
114 stars 37 forks source link

Running mingw32-make from a standard Windows console fails #39

Closed Ceylo closed 10 years ago

Ceylo commented 11 years ago

When running mingw32-make from a cmd.exe console, the following error occurs:

C:\GitHub\sfeMovie_MinGW>mingw32-make
Scanning dependencies of target BuildFFMPEG
[ 14%] Generating ffmpeg-libs
'bash' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
CMakeFiles\BuildFFMPEG.dir\build.make:53: recipe for target 'ffmpeg-libs' failed

mingw32-make[2]: *** [ffmpeg-libs] Error 1
CMakeFiles\Makefile2:62: recipe for target 'CMakeFiles/BuildFFMPEG.dir/all' fail
ed
mingw32-make[1]: *** [CMakeFiles/BuildFFMPEG.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Actually, here the user tried to build sfeMovie from a classical console, whereas, as he wants to build using MinGW, he was expected to use the MinGW Shell.

See whether something should be done about this.

bluekirby0 commented 10 years ago

The purpose of mingw32-make is to provide a viable GNU-compatible "make" that can be run from a windows cmd shell (assuming all the proper environmental variables are set), and it often works for build systems that provide a simple Makefile, but it rarely works well with autotools or cmake setups because of the added complexity.

Add to that the fact that ffmpeg looks like an autotools setup but is actually a totally custom build system and it becomes increasingly difficult to support. No matter how popular ffmpeg is, nobody wants to support a fringe case in a tool that has a relatively small user-base (MSYS provides GNU make which is totally usable).

Ceylo commented 10 years ago

According to what you say, it would be very hard to support build through mingw32-make even if sfeMovie build scripts were fixed? If it is the case, sfeMovie should simply not try to support this build system, and this also means less work :D

bluekirby0 commented 10 years ago

Yes, exactly. This configuration is rarely used and was never meant to support all of the complex techniques used in modern Makefiles.

Ceylo commented 10 years ago

Ok so let's forget this issue :)