Page 1 of 1

Vlc Win32 compiling

Posted: 02 Oct 2008 15:23
by draba
Hi,
it's days I try to compile Vlc for windows:
I get every possible error!
here is the last one:
method: cross-compiling under linux
compiler: mingw 3.4.5
vlc: 0.8.6h
contrib: contrib-20070530-win32-bin-gcc-3.4.5-only
configuration:

Code: Select all

./bootstrap && \ PATH=/usr/win32/bin:$PATH \ PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \ CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \ LDFLAGS=-L/usr/win32/lib \ CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \ ./configure --host=i586-mingw32msvc --build=i386-linux \ --disable-gtk \ --enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \ --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \ --with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \ --with-wx-config-path=/usr/win32/bin \ --with-freetype-config-path=/usr/win32/bin \ --with-fribidi-config-path=/usr/win32/bin \ --enable-live555 --with-live555-tree=/usr/win32/live.com \ --enable-caca --with-caca-config-path=/usr/win32/bin \ --with-xml2-config-path=/usr/win32/bin \ --with-dvdnav-config-path=/usr/win32/bin \ --disable-cddax --disable-vcdx --enable-goom \ --enable-twolame --enable-dvdread \ --enable-debug \ --with-libdca-path=/usr/win32 --enable-dca
after starting compilation I get the error:

Code: Select all

i586-mingw32msvc-gcc -Wsign-compare -Wall -mms-bitfields -pipe -o libdtstofloat32_plugin.dll -g -shared -u _vlc_entry__0_8_6 -L/usr/win32/lib libdtstofloat32_plugin.a -L/usr/local/lib -ldts_pic libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o): In function `Open':/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:219: undefined reference to `_dca_init' libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o): In function `DoWork':/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:303: undefined reference to `_dca_syncinfo' :/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:312: undefined reference to `_dca_frame' :/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:331: undefined reference to `_dca_blocks_num' :/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:335: undefined reference to `_dca_block' :/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:341: undefined reference to `_dca_samples' :/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:331: undefined reference to `_dca_blocks_num' libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o): In function `Destroy':/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:376: undefined reference to `_dca_free' libdtstofloat32_plugin.a(libdtstofloat32_plugin_a-dtstofloat32.o): In function `CloseFilter':/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter/dtstofloat32.c:430: undefined reference to `_dca_free' collect2: ld returned 1 exit status make[6]: *** [libdtstofloat32_plugin.dll] Error 1 make[6]: Leaving directory `/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/home/diego/build3/vlc-0.8.6h/modules/audio_filter/converter' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/diego/build3/vlc-0.8.6h/modules/audio_filter' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/diego/build3/vlc-0.8.6h/modules/audio_filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/diego/build3/vlc-0.8.6h/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/diego/build3/vlc-0.8.6h' make: *** [all] Error 2
even if the configuration should contain the path for libdca...

Actually I tried to compile the 0.8.6g, 0.8.6h, 0.8.6i, 0.9.0, 0.9.1, 0.9.2
crosscompiling under Linux, compiling under Cigwin, trying different configurations
and different contrib packages and I always get a different error.
Since the activex plugin of the 0.9.x is not working I need to compile a 0.8.6x...
Is there any special way for succeeding in this complex task? (please don't tell me to
read INSTALL.win32 or the wiki Win32Compile :!: )

Thanks in advance.

Re: Vlc Win32 compiling

Posted: 02 Oct 2008 15:53
by VLC_help
dca points to DTS support. If you don't need it, just disable it.

Re: Vlc Win32 compiling

Posted: 02 Oct 2008 17:13
by draba
Thanks!
after disabling dts I had to recompile ffmpeg with postprocess eneabled and finally compiled!
I think the configure script has to be performed a bit (at least for cross-compilation).
Anyway... thanks for the help... Vlc is a good and flexible media player!