[FFmpeg-user] build ffmpegin AIX -failed

Wang, Liqin, M.S. Wang.Liqin at mayo.edu
Thu Jun 11 15:57:02 CEST 2015


When I build ffmpeg in AIX, I got:

In file included from libavdevice/avdevice.c:27:0:
./libavutil/ffversion.h:3:24: warning: missing terminating " character
"#define FFMPEG_VERSION "2.6.git
                        ^
./libavutil/ffversion.h:4:1: warning: missing terminating " character
 #endif /* AVUTIL_FFVERSION_H */
 ^
./libavutil/ffversion.h:4:1: error: missing terminating " character
libavdevice/avdevice.c:28:1: error: missing terminating " character
 const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
 ^
common.mak:57: recipe for target 'libavdevice/avdevice.o' failed
gmake: *** [libavdevice/avdevice.o] Error 1
bash-4.2$ more ./libavutil/ffversion.h 
#ifndef AVUTIL_FFVERSION_H
#define AVUTIL_FFVERSION_H
#define FFMPEG_VERSION "2.6.git^M"
#endif /* AVUTIL_FFVERSION_H */

The file  ./libavutil/ffversion.h is dynamically generated and it contains "^M" which AIX does not like it. I tried manually remove this character, but does not help.

Here are the commands:
--------------------------------------------------------------
cat ffversion.h |tr -d '\r' > ffversion.h.aix
mv ffversion.h ffversion.h.old
mv ffversion.h.aix ffversion.h
------------------------------------------------------------

The similar message appears in  version.sh. Manually edit this file and the errors disappear.

Thanks

Liqin




More information about the ffmpeg-user mailing list