[vlc-devel] Problems cross compiling to windows according to Win32Compile

David R. Robison david.robison at openroadsconsulting.com
Mon Jul 28 16:33:18 CEST 2014

Thanks for the tip. I installed MXE and built for all packages. When I 
then ran the configure, I still had to disable some packages to get the 
configure to run:

../extras/package/win32/configure.sh --host=x86_64-w64-mingw32 
--enable-static \
     --disable-dvdread \
     --disable-dca \
     --disable-schroedinger \
     --disable-caca \
     --disable-chromaprint \
     --disable-goom \
     --disable-qt \

Not sure why this should be the case, but I finally got the configure to 
finish cleanly.

However, when I run the "make" it fails with the following error:

make[2]: Entering directory `/home/david/vlc/win32/src'
   GEN      stamp-revision
make  all-am
make[3]: Entering directory `/home/david/vlc/win32/src'
   CCLD     libvlccore.la
multiple definition of `DllMain'
first defined here
collect2: error: ld returned 1 exit status

Is there something I'm still missing? David

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: david.robison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

On 7/24/2014 5:20 PM, Timothy Gu wrote:
> On Jul 24, 2014 1:32 PM, "David R. Robison" 
> <david.robison at openroadsconsulting.com 
> <mailto:david.robison at openroadsconsulting.com>> wrote:
> >
> > OK, I'm starting over with a fresh Ubuntu install and following the
> > documentation for compiling VLC on Windows to the tee.
> >
> > When I get to the configure stage, I get the error:
> >
> > configure: error: LibVLC requires mingw-runtime version 3.15 or higher,
> > or mingw-w64 version 3.0 or higher!
> >
> > I assume I need to apt-get install mingw-w63 since I am building for
> > Windows 64. Correct?
> You need to check config.log to make sure what's missing. To summarize 
> the current MinGW situation, MinGW32 (i686-pc-mingw32) supports only 
> 32-bit, but mingw-w64 (*-w64-mingw32) supports _both_ 32- and 64-bit 
> archs.
> I would never use the MinGW toolchain from Ubuntu or any other distro, 
> simply because it installs into standard system directory and 
> installing MinGW libs to system locations is a pain.
> I would either use MXE (http://mxe.cc) which contains build recipes 
> for a lot of libraries that can be used by VLC, or Zeranoe's mingw-w64 
> build script (http://ffmpeg.zeranoe.com/blog/?cat=4) which produces a 
> pristine build environment.
> Timothy
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140728/bb57b21e/attachment.html>

More information about the vlc-devel mailing list