[vlc] Re: about xvid surpported by vlc
chenxuekai at zju.edu.cn
chenxuekai at zju.edu.cn
Wed Jun 16 09:53:05 CEST 2004
supplement:
the the version of source code we used is 0.7.2
we only let the codes are incapable in configure.ac be active.
the original code is such as
-------------------------------------------------
dnl dnl
dnl dnl xvid decoder plugin
dnl dnl
dnl AC_ARG_ENABLE(xvid,
dnl [ --enable-xvid xvid codec (default disabled)])
dnl if test "${enable_xvid}" = "yes"
dnl then
dnl AC_ARG_WITH(xvid,
dnl [ --with-xvid=PATH path to xvid installation],[],[])
dnl if test "${with_xvid}" != "no" -a -n "${with_xvid}"
dnl then
dnl AX_ADD_CPPFLAGS([xvid],[-I${with_xvid}/include])
dnl AX_ADD_LDFLAGS([xvid],[-L${with_xvid}/lib])
dnl fi
dnl
dnl AC_ARG_WITH(xvid-tree,
dnl [ --with-xvid-tree=PATH xvid tree for static linking])
dnl if test -n "${with_xvid_tree}"
dnl then
dnl AC_MSG_CHECKING(for libxvidcore.a in ${with_xvid_tree})
dnl real_xvid_tree="`cd ${with_xvid_tree} 2>/dev/null && pwd`"
dnl if test -z "${real_xvid_tree}"
dnl then
dnl dnl The given directory can't be found
dnl AC_MSG_RESULT(no)
dnl AC_MSG_ERROR([cannot cd to ${with_xvid_tree}])
dnl fi
dnl if test -f "${real_xvid_tree}/build/generic/libxvidcore.a"
dnl then
dnl dnl Use a custom xvid
dnl AC_MSG_RESULT(${real_xvid_tree}/build/generic/libxvidcore.a)
dnl AX_ADD_BUILTINS([xvid])
dnl AX_ADD_LDFLAGS([xvid],[-L${real_xvid_tree}/build/generic -lxvidcore])
dnl AX_ADD_CPPFLAGS([xvid],[-I${real_xvid_tree}/src])
dnl else
dnl dnl The given libxvidcore wasn't built
dnl AC_MSG_RESULT(no)
dnl AC_MSG_ERROR([cannot find ${real_xvid_tree}/build/generic/libxvidcore.a,
make sure you compiled libxvidcore in ${with_xvid_tree}])
dnl fi
dnl else
dnl CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_xvid}"
dnl LDFLAGS="${LDFLAGS_save} ${LDFLAGS_xvid}"
dnl AC_CHECK_HEADERS(xvid.h, ,
dnl [ AC_MSG_ERROR([Cannot find development headers for libxvidcore...]) ])
dnl AC_CHECK_LIB(xvidcore, xvid_init, [
dnl AX_ADD_PLUGINS([xvid])
dnl AX_ADD_LDFLAGS([xvid],[-lxvidcore]) ],
dnl [ AC_MSG_ERROR([Cannot find libxvidcore library...]) ])
dnl LDFLAGS="${LDFLAGS_save}"
dnl CPPFLAGS="${CPPFLAGS_save}"
dnl fi
dnl fi
--------------------------------------------------------------------
we delete some dnl flags.
then ./configure and make
we only want to use codec xvid in vlc.
but the last error is mentioned in last mail.
how can we use the modules of xvid?
ÔÚÄúµÄÀ´ÐÅÖÐÔø¾Ìáµ½:
>From: "" <chenxuekai at zju.edu.cn>
>Reply-To: vlc at videolan.org
>To: vlc at videolan.org
>Subject: [vlc] about xvid surpported by vlc
>Date:Wed, 16 Jun 2004 11:19:58 +0800
>
>
>
>
--------------------------------------------------------------------------------
>
> i modified the configure.ac and let the xvid can be used.At first all is ok.but
> when ld ,the errror happened.The error information is
> ---------------------------------------------------------------------------
> -DHAVE_CONFIG_H -I. -I. -I. -DSYS_LINUX -I./include `top_builddir="."
./vlc-config
> --cflags vlc` -Wsign-compare -Wall
> -finline-limit-30000 -pipe -c -o src/vlc-vlc.o `test -f 'src/vlc.c' || echo
> './'`src/vlc.c
> gcc -Wsign-compare -Wall -finline-limit-30000 -pipe -o vlc src/vlc-vlc.o
> lib/libvlc.a ./modules/misc/memcpy/libmemcpymmx.a
> ./modules/video_chroma/libi420_rgb_mmx.a
./modules/video_chroma/libi422_yuy2_mmx.a
> ./modules/video_chroma/libi420_ymga_mmx.a
> ./modules/video_chroma/libi420_yuy2_mmx.a
./modules/misc/memcpy/libmemcpymmxext.a
> ./modules/misc/memcpy/libmemcpy3dn.a
> ./modules/audio_filter/converter/libmpgatofixed32.a
> ./modules/codec/ffmpeg/libffmpeg.a
./modules/stream_out/libstream_out_transcode.a
> -L/usr/local/lib -lrt -lpthread -ldl -lm -lmad
> -L/home/VideoLen/vlcsrc/libmad-0.15.0b/.libs
> -L/home/VideoLen/vlcsrc/ffmpeg-20040520/libavformat -lavformat -lz
> -L/home/VideoLen/vlcsrc/ffmpeg-20040520/libavcodec -lavcodec -lm
> -L/home/VideoLen/vlcsrc/ffmpeg-20040520/libavcodec -lm
> -L/opt/xvidcore-1.0.0/build/generic -lxvidcore
> lib/libvlc.a(lib_libvlc_a-modules.o)(.text+0x13f7): In function
> `__module_LoadBuiltins':
> : undefined reference to `vlc_entry(long long, void, int, double)'
> collect2: ld returned 1 exit status
> -------------------------------------------------------------------------------
> can someone help us?
>
>
>
> --
> This is the vlc mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://www.videolan.org/support/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>
>
>
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc
mailing list