When I to compile mpeg4ip-1.0, i get the following errors, complaining that some xvid-stuff is broken: g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I.. -I../.. -I../../../lib -I../../../../lib/SDL/include -I../../../../include -I../../../../lib -I../../../../player/src -I../../../../lib/mp4v2 -I../../../../lib/sdp -I../../../../lib/mp4av -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror -Wmissing-prototypes -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -march=athlon-xp -O3 -pipe -DUSE_MMX -DMPEG4IP -c xvid_file.cpp -MT xvid_file.lo -MD -MP -MF .deps/xvid_file.TPlo -fPIC -DPIC -o .libs/xvid_file.lo xvid_file.cpp: In function `codec_data_t* xvid_file_check(void (*)(int, const char*, const char*, ...), const char*, double*, char**)': xvid_file.cpp:191: error: `XVID_INIT_PARAM' undeclared (first use this function) xvid_file.cpp:191: error: (Each undeclared identifier is reported only once for each function it appears in.) xvid_file.cpp:191: error: parse error before `;' token xvid_file.cpp:209: error: `xvid_param' undeclared (first use this function) xvid_file.cpp:210: error: `xvid_init' undeclared (first use this function) xvid_file.cpp:256: error: `XVID_DEC_PARAM' undeclared (first use this function) xvid_file.cpp:256: error: parse error before `;' token xvid_file.cpp:257: error: `param' undeclared (first use this function) xvid_file.cpp:265: error: `XVID_ERR_OK' undeclared (first use this function) make[5]: *** [xvid_file.lo] Fehler 1 make[5]: *** Warte auf noch nicht beendete Prozesse... ourxvid.cpp: In function `int parse_vovod(xvid_codec_t*, char*, int, unsigned int)': ourxvid.cpp:116: error: `XVID_DEC_PARAM' undeclared (first use this function) ourxvid.cpp:116: error: (Each undeclared identifier is reported only once for each function it appears in.) ourxvid.cpp:116: error: parse error before `;' token ourxvid.cpp:117: error: `param' undeclared (first use this function) ourxvid.cpp:122: error: `XVID_ERR_OK' undeclared (first use this function) ourxvid.cpp:161: error: `XVID_DEC_FRAME' undeclared (first use this function) ourxvid.cpp:161: error: parse error before `;' token ourxvid.cpp:162: error: `frame' undeclared (first use this function) ourxvid.cpp: In function `codec_data_t* xvid_create(const char*, int, int, format_list_t*, video_info_t*, const uint8_t*, unsigned int, video_vft_t*, void*)': ourxvid.cpp:188: error: `XVID_INIT_PARAM' undeclared (first use this function) ourxvid.cpp:188: error: parse error before `;' token ourxvid.cpp:189: error: `xvid_param' undeclared (first use this function) ourxvid.cpp:190: error: `xvid_init' undeclared (first use this function) ourxvid.cpp: In function `int xvid_decode(codec_data_t*, long long unsigned int, int, int*, uint8_t*, unsigned int, void*)': ourxvid.cpp:288: error: parse error before `;' token ourxvid.cpp:309: error: `XVID_DEC_PICTURE' undeclared (first use this function) ourxvid.cpp:309: error: parse error before `;' token ourxvid.cpp:310: error: `decpict' undeclared (first use this function) make[5]: *** [ourxvid.lo] Fehler 1 make[5]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player/plugin/video/xvid' make[4]: *** [all-recursive] Fehler 1 make[4]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player/plugin/video' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player/plugin' make[2]: *** [all-recursive] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0' make: *** [all] Fehler 2 !!! ERROR: media-video/mpeg4ip-1.0 failed. !!! Function src_compile, Line 78, Exitcode 2 !!! make failed It has obviously something to do with the xvid.h include file. I have the latest xvid installed(xvid-1.0.0_rc2). Reproducible: Always Steps to Reproduce: 1. emerge xvid-1.0.0_rc2 2. emerge mpeg4ip-1.0 Actual Results: ... g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I.. -I../.. -I../../../lib -I../../../../lib/SDL/include -I../../../../include -I../../../../lib -I../../../../player/src -I../../../../lib/mp4v2 -I../../../../lib/sdp -I../../../../lib/mp4av -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror -Wmissing-prototypes -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -march=athlon-xp -O3 -pipe -DUSE_MMX -DMPEG4IP -c xvid_file.cpp -MT xvid_file.lo -MD -MP -MF .deps/xvid_file.TPlo -fPIC -DPIC -o .libs/xvid_file.lo xvid_file.cpp: In function `codec_data_t* xvid_file_check(void (*)(int, const char*, const char*, ...), const char*, double*, char**)': xvid_file.cpp:191: error: `XVID_INIT_PARAM' undeclared (first use this function) xvid_file.cpp:191: error: (Each undeclared identifier is reported only once for each function it appears in.) xvid_file.cpp:191: error: parse error before `;' token xvid_file.cpp:209: error: `xvid_param' undeclared (first use this function) xvid_file.cpp:210: error: `xvid_init' undeclared (first use this function) xvid_file.cpp:256: error: `XVID_DEC_PARAM' undeclared (first use this function) xvid_file.cpp:256: error: parse error before `;' token xvid_file.cpp:257: error: `param' undeclared (first use this function) xvid_file.cpp:265: error: `XVID_ERR_OK' undeclared (first use this function) make[5]: *** [xvid_file.lo] Fehler 1 make[5]: *** Warte auf noch nicht beendete Prozesse... ourxvid.cpp: In function `int parse_vovod(xvid_codec_t*, char*, int, unsigned int)': ourxvid.cpp:116: error: `XVID_DEC_PARAM' undeclared (first use this function) ourxvid.cpp:116: error: (Each undeclared identifier is reported only once for each function it appears in.) ourxvid.cpp:116: error: parse error before `;' token ourxvid.cpp:117: error: `param' undeclared (first use this function) ourxvid.cpp:122: error: `XVID_ERR_OK' undeclared (first use this function) ourxvid.cpp:161: error: `XVID_DEC_FRAME' undeclared (first use this function) ourxvid.cpp:161: error: parse error before `;' token ourxvid.cpp:162: error: `frame' undeclared (first use this function) ourxvid.cpp: In function `codec_data_t* xvid_create(const char*, int, int, format_list_t*, video_info_t*, const uint8_t*, unsigned int, video_vft_t*, void*)': ourxvid.cpp:188: error: `XVID_INIT_PARAM' undeclared (first use this function) ourxvid.cpp:188: error: parse error before `;' token ourxvid.cpp:189: error: `xvid_param' undeclared (first use this function) ourxvid.cpp:190: error: `xvid_init' undeclared (first use this function) ourxvid.cpp: In function `int xvid_decode(codec_data_t*, long long unsigned int, int, int*, uint8_t*, unsigned int, void*)': ourxvid.cpp:288: error: parse error before `;' token ourxvid.cpp:309: error: `XVID_DEC_PICTURE' undeclared (first use this function) ourxvid.cpp:309: error: parse error before `;' token ourxvid.cpp:310: error: `decpict' undeclared (first use this function) make[5]: *** [ourxvid.lo] Fehler 1 make[5]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player/plugin/video/xvid' make[4]: *** [all-recursive] Fehler 1 make[4]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player/plugin/video' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player/plugin' make[2]: *** [all-recursive] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/player' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0' make: *** [all] Fehler 2 !!! ERROR: media-video/mpeg4ip-1.0 failed. !!! Function src_compile, Line 78, Exitcode 2 !!! make failed Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 mobile AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.3.13p1 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa arts avi berkdb bonobo cdr crypt cups dga directfb dvd dvdr encode fam fbcon flac flash foomaticdb gdbm ggi gif gnome gpm gstreamer gtk gtk2 imap imlib java jpeg kde ldap libg++ libwww linguas_de lirc mad mikmod mmx mozilla mpeg mpi mysql nas ncurses nls oggvorbis opengl pam pcmcia pda pdflib png pnp ppds prelude python qt quicktime readline samba sdl slang spell sse ssl svga tcpd truetype usb video_cards_radeon x86 xinerama xml xml2 xmms xosd xv zlib"
Since no one else will respond, I'll give you a link to a forum thread where a guy has run into similar problems and posted his findings: http://forums.gentoo.org/viewtopic.php?t=125999 I moved my xvid.h header file like he mentioned, but now I get some goofiness about undefined references in mp4live.o to something. I don't know. I'm have the very latest xvid installed, 1.0.0_rc4. I'm going to downgrade it and see what happens.
Now I'm stuck at this: ranlib .libs/libmp4live.a creating libmp4live.la (cd .libs && rm -f libmp4live.la && ln -s ../libmp4live.la libmp4live.la) /bin/sh ../../libtool --mode=link g++ -DADD_XVID_ENCODER -DADD_LAME_ENCODER -DADD_FAAC_ENCODER -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror -Wmissing-prototypes -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -march=pentium4 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -DUSE_MMX -DMPEG4IP -o mp4live audio_encoder.o audio_encoder_tables.o video_encoder.o video_encoder_tables.o mp4live.o -L/usr/lib -lglib libmp4live.la -lfaac -lmp3lame -lvorbis ../../lib/xvid/libmpeg4ip_xvid.la ../../common/video/libmpeg32/libmpeg3.la ../../lib/msg_queue/libmsg_queue.la ../../lib/mp4v2/libmp4v2.la ../../lib/mp4av/libmp4av.la ../../lib/rtp/libuclmmbase.la ../../lib/sdp/libsdp.la ../../lib/gnu/libmpeg4ip_gnu.la ./h261/libmp4live_h261.la -lpthread ../../lib/SDL/src/libSDLmpeg4ip.la -lpthread ../../lib/SDL/src/main/libSDLmpeg4ipmain.a -ldl g++ -DADD_XVID_ENCODER -DADD_LAME_ENCODER -DADD_FAAC_ENCODER -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror -Wmissing-prototypes -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -march=pentium4 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -DUSE_MMX -DMPEG4IP -o .libs/mp4live audio_encoder.o audio_encoder_tables.o video_encoder.o video_encoder_tables.o mp4live.o -L/usr/lib /usr/lib/libglib.so ./.libs/libmp4live.a /usr/lib/libfaac.so /usr/lib/libmp3lame.so /usr/lib/libvorbis.so /usr/lib/libogg.so ../../lib/xvid/.libs/libmpeg4ip_xvid.so ../../common/video/libmpeg32/.libs/libmpeg3.a ../../lib/msg_queue/.libs/libmsg_queue.so ../../lib/mp4v2/.libs/libmp4v2.so ../../lib/mp4av/.libs/libmp4av.so ../../lib/rtp/.libs/libuclmmbase.al ../../lib/sdp/.libs/libsdp.so ../../lib/gnu/.libs/libmpeg4ip_gnu.al ./h261/.libs/libmp4live_h261.a ../../lib/SDL/src/.libs/libSDLmpeg4ip.so -lm /usr/lib/libasound.so -L/usr/X11R6/lib -lX11 -lXext -lpthread ../../lib/SDL/src/main/libSDLmpeg4ipmain.a -ldl mp4live.o(.text+0x1836): In function `main': : undefined reference to `gui_main(int, char**, CLiveConfig*)' collect2: ld returned 1 exit status distcc[32327] ERROR: compile (null) on localhost failed make[4]: *** [mp4live] Error 1 make[4]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/server/mp4live' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/server/mp4live' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0/server' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mpeg4ip-1.0/work/mpeg4ip-1.0' make: *** [all] Error 2 !!! ERROR: media-video/mpeg4ip-1.0 failed. !!! Function src_compile, Line 79, Exitcode 2 !!! make failed
Got it installed on three machines over the last week. Really seems to want GTK and or XFree installed. I was trying to install this on a box that was earmarked for server duty (Apache, Darwin Streaming Server), and I didn't see a need to install XFree or a window manager. Sigh. Tried building directly from source but got no further. Finally, I relented and installed XFree and KDE. Emerge of mpeg4ip then went through smoothly (GTK was also installed while installing KDE). Oh well.
Please try version 1.1 and re-open if it doesnt fix the problem