Page 1 of 1

Windows Crash

Posted: 24 Oct 2008 21:32
by davidhoyt
I'm attempting to cross-compile the absolute latest source (as of 20 min. ago) using Ubuntu 8.04 (hardy heron). I can get things to compile fine. When I run the linux compile, it works just fine. But under Windows it crashes every time in a call from libvlccore.dll to msvcrt.dll. I don't have much more to go on, because I'm not given much. Here's how I'm compiling it (it's in release mode):

1. Download the source using git

2. Install the latest contribs from: http://people.videolan.org/~jb/Contribs/
  • Don't use the link they provide you in the developer's wiki. Those contribs are old and won't work with the latest source.
  • sudo tar jxf <contrib file here> -C /
3. ./bootstrap

4. Create a configuration file named configure-vlc-windows.sh

5. Put the following in configure-vlc-windows.sh:

Code: Select all

export CONTRIBS=/usr/win32 export PREFIX=/work/vlc/compiled/windows-x86-latest/ export PKG_CONFIG_PATH=$CONTRIBS/lib/pkgconfig export CPPFLAGS="-I$CONTRIBS/include -I$CONTRIBS/include/ebml" export LDFLAGS=-L$CONTRIBS/lib ./configure \ --host=i586-mingw32msvc \ --prefix=$PREFIX \ --build=i386-linux \ --enable-mkv \ --enable-release \ --without-contrib \ --enable-nls \ --enable-shared-libvlc \ --enable-lua \ --enable-faad \ --enable-flac \ --enable-theora \ --enable-twolame \ --enable-quicktime \ --enable-real \ --enable-realrtsp \ --enable-ffmpeg \ --with-ffmpeg-mp3lame \ --with-ffmpeg-faac \ --with-ffmpeg-config-path=/usr/win32/bin \ --with-ffmpeg-zlib \ --enable-live555 \ --with-live555-tree=/usr/win32/live.com \ --disable-libgcrypt \ --disable-remoteosd \ --disable-cddax \ --disable-vcdx \ --disable-goom \ --disable-dvdread \ --disable-dvdnav \ --disable-sdl \ --disable-bonjour \
6. chmod u+x configure-vlc-windows.sh

7. ./configure-vlc-windows.sh

8. ./compile

9. make package-win32-base

Thanks for any help you can provide!

Re: Windows Crash

Posted: 25 Oct 2008 05:02
by Jean-Baptiste Kempf
what msvcrt.dll version do you have?

Re: Windows Crash

Posted: 28 Oct 2008 00:09
by davidhoyt
It works fine on the latest build I download from the nightlies, but not when I compile and run it myself. It's version 7.0.2600.5512.

Re: Windows Crash

Posted: 28 Oct 2008 18:03
by RĂ©mi Denis-Courmont
It's fairly impossible to debug without debug infos (and yes, it's difficult to get these on Windows).