I am having trouble building the avifile library and associated samples
(from http://avifile.sourceforge.net/avifile-0.6.0-20011220admin.tgz).
I have a Redhat 7.1 installation on an SMP Pentium-4 system. I have
included the output of the autogen.sh, configure, and make commands. If
anyone can help me compile this library, I would appreciate it.
I have also tried downloading the binaries with partial success. I have
installed these: avifile-0.6.0-1.i386.rpm
avifile-binaries-001222-1.i586.rpm
avifile-codecs-20011106-1.i386.rpm
divx4linux-20011025-1.i386.rpm
with the following complaint from installing avifile codecs (which I
overcame with --force):
"file /usr/lib/win32/m3jpeg32.dll from install of
avifile-codecs-20011106-1 conflicts with file from package
avifile-binaries-001222-1"
I was then able to compile and run the sample files which I downloaded
with the source distribution, but avimake fails with the following:
avimake ki31.jpg ki32.jpg
fs seg 0x400ae000
Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm
1694.878000 MHz Intel(R) Xeon(TM) CPU 1700MHz processor detected
AviWriteFile: FATAL: No known video codecs for this fourcc
If anyone can help, I would appreciate it. I am basically trying to use
the library to make AVI files from C (or C++) code ,and hopefully make
compressed AVIs. My previous method is to make jpegs in my C code, and
then use Matlab to combine the jpegs to an AVI, but that is highly
inefficient and requires the Windows version of Matlab in order to get
compressed AVIs.
Thanks
Doug Thompson
[EMAIL PROTECTED]
loading cache ./config.cache
avifile configure options:
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for dlopen in -ldl... (cached) yes
checking for nanosleep in -lposix4... (cached) no
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for kstat_open in -lkstat... (cached) no
checking for lseek64 in -lc... (cached) yes
checking for pthreads... -lpthread yes
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for limits.h... (cached) yes
checking for malloc.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/ioccom.h... (cached) no
checking for sys/time.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for valid sysinfo struct... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking return type of signal handlers... (cached) void
checking for vprintf... (cached) yes
checking for ftime... (cached) yes
checking for gettimeofday... (cached) yes
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for scandir... (cached) yes
checking for nanosleep... (cached) yes
checking if gcc supports -finline-limit-200 flag(s)... yes
checking if malloc debugging is wanted... no
checking C compiler version... gcc 2.96
checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for Qt... (cached) no
*** WARNING: Could not find usable Qt on your system! If it _is_ installed,
*** delete ./config.cache and re-run ./configure, specifying path to
*** Qt headers and libraries in configure options. Also possible reason
*** could be you are trying to link Qt libraries compiled with different
*** compiler - Qt libraries compiled with different compiler then the one
*** used right now can't be linked TOGETHER - see ./config.log for the reason
*** Switching off compilation of Qt utilities.
checking for jpeglib.h... (cached) yes
checking for jpeg_start_compress in -ljpeg... (cached) yes
checking for XF86DGAQueryExtension in -lXxf86dga... (cached) yes
checking for XF86VidModeSwitchMode in -lXxf86vm... (cached) yes
checking for DPMSQueryExtension in -lXdpms... (cached) no
checking for XGetExtensionVersion in -lXi... (cached) yes
checking for /usr/X11R6/include/X11/Xft/Xft.h... (cached) yes
checking for XftDrawString32 in -lXft... (cached) yes
checking for X11/extensions/Xv.h... (cached) yes
checking for /usr/X11R6/include/X11/extensions/dpms.h... (cached) yes
checking whether system declares DPMS functions in X11/extensions/dpms.h... (cached)
yes
checking for sdl-config... no
checking for sdl11-config... no
checking for sdl-config... (cached) no
checking for SDL - version >= 1.1.3... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: warning: Could not find SDL >= 1.1.3!
checking for OSS audio support... (cached) yes
checking for _oss_ioctl in -lossaudio... (cached) no
checking for Sun audio support... (cached) no
checking for lame_decode_init in -lmp3lame... (cached) no
checking for Ogg... yes
checking for Vorbis... yes
checking for mad_stream_init in -lmad... (cached) no
checking for decore in -ldivxdecore... (cached) yes
checking for encore in -ldivxencore... (cached) yes
checking for decore.h... (cached) yes
checking for encore2.h... (cached) yes
checking whether to build ac3 decoder module... no
=== configuring ffmpeg ===
Install prefix NONE
C compiler gcc
CPU x86
MMX enabled yes
gprof enabled no
grab enabled yes
Creating config.mak and config.h
checking for configure in libmmxnow ...... checking whether to use --tag=CXX with
libtool... no
creating ./config.status
creating plugins/Makefile
creating plugins/libwin32/loader/Makefile
creating plugins/libwin32/loader/wine/Makefile
creating plugins/libwin32/loader/dshow/Makefile
creating plugins/libwin32/videocodec/Makefile
creating plugins/libwin32/Makefile
creating plugins/libwin32/audiodec/Makefile
creating plugins/libac3pass/Makefile
creating plugins/libaudiodec/Makefile
creating plugins/libmpeg_audiodec/Makefile
creating plugins/libdivx4/Makefile
creating plugins/libffmpeg/Makefile
creating plugins/libffmpeg/libav/Makefile
creating plugins/libffmpeg/libavcodec/Makefile
creating plugins/libffmpeg/libavcodec/i386/Makefile
creating plugins/libffmpeg/libavcodec/libac3/Makefile
creating plugins/libmp3lame_audioenc/Makefile
creating plugins/libmp3lame_audioenc/lame3.70/Makefile
creating plugins/libmp3lamebin_audioenc/Makefile
creating plugins/libmad/Makefile
creating plugins/libvorbis/Makefile
creating lib/Makefile
creating lib/aviread/Makefile
creating lib/aviwrite/Makefile
creating lib/aviplay/Makefile
creating lib/common/Makefile
creating lib/subtitle/Makefile
creating lib/video/Makefile
creating player/Makefile
creating doc/Makefile
creating debian/Makefile
creating include/Makefile
creating samples/Makefile
creating samples/misc/Makefile
creating samples/mjpeg_plugin/Makefile
creating samples/qtrecompress/Makefile
creating samples/qtvidcap/Makefile
creating samples/artsplug/Makefile
creating bin/Makefile
creating drivers/Makefile
creating libavqt/Makefile
creating Makefile
creating avifile-config
creating avifile.spec
creating include/config.h
include/config.h is unchanged
configuring in plugins/libmad/libmad
running /bin/sh ./configure --cache-file=../../.././config.cache --srcdir=.
loading cache ../../.././config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... (cached) gawk
checking whether make sets ${MAKE}... (cached) yes
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for style of include used by make... GNU
checking dependency style of gcc... (cached) gcc3
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for limits.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for pid_t... (cached) yes
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking whether to optimize for speed or for accuracy... default
checking for architecture-specific fixed-point math routines... INTEL
checking for ISO/IEC interpretation... best accepted practices
checking whether to enable profiling... no
checking whether to enable debugging... default
checking whether to enable experimental code... no
updating cache ../../.././config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
configuring in libmmxnow
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
libmmxnow configure options: --cache-file=.././config.cache --srcdir=.
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
/disk/home1/dgthomp/avifile0.6-20011220/missing: Unknown `--run' option
Try `/disk/home1/dgthomp/avifile0.6-20011220/missing --help' for more information
configure: warning: `missing' script is too old or missing
checking for mawk... (cached) gawk
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for style of include used by make... GNU
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... (cached) gcc -E
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... (cached) no
creating libtool
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for 8-bit clean memcmp... (cached) yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating include/Makefile
creating src/Makefile
creating src/generic/Makefile
creating src/generic/video/Makefile
creating src/i386/Makefile
creating src/i386/video/Makefile
creating test/Makefile
creating mmxnow-config
creating include/config.h
include/config.h is unchanged
Configuration:
Compiler C: gcc -g -march=i586 -ffast-math -pipe
Compiler C++: c++ -g -march=i586 -ffast-math -pipe
Install path: /usr/local
Qt: no
Sdl: no
Xft: yes
Oss audio: yes
Sun audio: no
Mga_vid: no
Plugins:
ac3passthrough yes (with SBLive only)
divx4 yes (DivX ;-), OpenDivX, DivX4)
ffmpeg yes (DivX ;-), OpenDivX, MJPEG, AC3)
os motion jpeg yes (MJPEG)
win32 yes (DivX, WMF1/2, DV, MJPEG, Ati, Asus,...)
MAD yes (MPEG Layer I/II/III)
ogg/vorbis yes
lame runtime no
Generating build information...
Running libtoolize...
Running aclocal ...
Running autoheader...
Running autoconf...
Running automake...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
Postprocessing automake generated Makefiles
Now you are ready to run ./configure
Making all in .
make[1]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220'
Making all in libmmxnow
make[1]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow'
Making all in .
make[2]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow'
Making all in doc
make[2]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/doc'
Making all in include
make[2]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/include'
make all-am
make[3]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/include'
make[3]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/include'
make[2]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/include'
Making all in src
make[2]: Entering directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/src'
Making all in generic
make[3]: Entering directory
`/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/src/generic'
Making all in video
make[4]: Entering directory
`/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/src/generic/video'
source='create.c' object='create.lo' libtool=yes \
depfile='.deps/create.Plo' tmpdepfile='.deps/create.TPlo' \
depmode=gcc3 /bin/sh ../../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I.. -I../.. -c -o create.lo `test -f create.c || echo './'`create.c
../../../../depcomp: ../../../../depcomp: No such file or directory
make[4]: *** [create.lo] Error 127
make[4]: Leaving directory
`/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/src/generic/video'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/src/generic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/disk/home1/dgthomp/avifile0.6-20011220/libmmxnow'
make: *** [all-recursive] Error 1