From: Glick, G. (GE I. Security) <gen...@ge...> - 2007-08-22 21:33:00
|
I don't know about the windows Vista problem, but it built in win2k. = Here's some things you need to know when building: Prerequisites: 1. Msys 2. MinGw 3. Ant First need to build ffmpeg binaries. The directions say to build = version 0.4.7, with a patch. The link to this source is broken. Go to = http://www.salyens.com/mingw/ for the source code, including the patch = they request. Basically, the instructions on the salyens web page = worked perfectly and it took just a few moments to build (1 ghz pentium = III). The instructions say to copy the libavcodec.dll to an 'appropriate' = directory. I assume system32 is correct - but I'm trying to sort that = out. Next, building jffmpeg.dll: =20 I ran into a couple of problems when following the jffmpeg build = directions. The file config.mak is supposed to be edited with = appropriate environment variables (JMF_HOME, JAVA_HOME, FFMPEG_DIR). = Note that the build instructions say JMFHOME, but it must be type since = the make files are all looking for JMF_HOME environment variable. = Regardless, when I set them in the config.mak file, things wouldn't = build - javac couldn't be found, for example. I commented the variables = out in the config.mak file, then set them up in msys, for example: export JMF_HOME=3D/c/progra~1/jmf2.1.1e export JAVA_HOME=3D/c/progra~1/java/jdk1.6.0_02 export FFMPEG_DIR=3D~/ffmpeg-0.4.7=20 Lastly, encoder.c threw a compiler error and it wouldn't build. Here's = the offending code, at line 42: #ifndef CODEC_FLAG_RFC2190 #define CODEC_FLAG_RFC2190 0 #define CODEC_FLAG_MODE_A_ONLY 0 #endif #define CODEC_FLAG_MODE_A_ONLY 0 =09 I added that last line to the file, and it built with a few warnings. = Since I don't know if it normally builds without warnings, I can't say = if this is normal or not. that's it. ________________________ Gene S. Glick GE Security Senior Hardware Engineer International Fiber Systems T 203 426 1180 E gen...@ge... 16 Commerce Road Newtown, CT 06470 USA |