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

David R. Robison david.robison at openroadsconsulting.com
Mon Jul 28 21:32:17 CEST 2014


Using the MXE tool chain, I tried to compile the contrib and I get the 
error:

cd caca && make -C caca install
make[1]: Entering directory `/home/david/vlc/contrib/win32/caca/caca'
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-w64-mingw32-gcc 
-DHAVE_CONFIG_H -I. -I..  -I.. -DPLUGINDIR=\"\"     -D__LIBCACA__ 
-I/home/david/vlc/contrib/x86_64-w64-mingw32/include 
-I/home/david/vlc/contrib/x86_64-w64-mingw32/include -g -g -O2 
-fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith 
-Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return 
-Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o 
libcaca_la-ncurses.lo `test -f 'driver/ncurses.c' || echo 
'./'`driver/ncurses.c
libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I.. 
-DPLUGINDIR=\"\" -D__LIBCACA__ 
-I/home/david/vlc/contrib/x86_64-w64-mingw32/include 
-I/home/david/vlc/contrib/x86_64-w64-mingw32/include -g -g -O2 
-fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith 
-Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return 
-Wmissing-prototypes -Wnested-externs -Wsign-compare -c driver/ncurses.c 
-o libcaca_la-ncurses.o
driver/ncurses.c: In function 'ncurses_init_graphics':
driver/ncurses.c:242:12: error: 'SIGWINCH' undeclared (first use in this 
function)
      signal(SIGWINCH, sigwinch_handler);
             ^
driver/ncurses.c:242:12: note: each undeclared identifier is reported 
only once for each function it appears in
driver/ncurses.c: In function 'ncurses_handle_resize':
driver/ncurses.c:382:20: error: storage size of 'size' isn't known
      struct winsize size;
                     ^
driver/ncurses.c:382:20: warning: unused variable 'size' [-Wunused-variable]
driver/ncurses.c: In function 'sigwinch_handler':
driver/ncurses.c:571:12: error: 'SIGWINCH' undeclared (first use in this 
function)
      signal(SIGWINCH, sigwinch_handler);
             ^
make[1]: *** [libcaca_la-ncurses.lo] Error 1
make[1]: Leaving directory `/home/david/vlc/contrib/win32/caca/caca'
make: *** [.caca] Error 2

Using the ffmpeg tool chain, the contribs compile but VLC fails to 
compile with:

make[5]: Entering directory `/home/david/vlc/win32/modules/video_output'
   CCLD     libgl_plugin.la
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lGL
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -ldl
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -ldrm
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lXdamage
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lX11-xcb
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxcb-glx
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxcb-dri2
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxcb-dri3
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxcb-present
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxcb-sync
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxshmfence
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lXxf86vm
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lXfixes
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lXext
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lX11
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lxcb
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lXau
/home/david/mingw-w64/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lXdmcp
collect2: error: ld returned 1 exit status
make[5]: *** [libgl_plugin.la] Error 1

I've tried 3 different sources of the tool chain with no success.
Any ideas? 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/28/2014 1:06 PM, Edward Wang wrote:
> On Mon, Jul 28, 2014 at 1:00 PM, David R. Robison
> <david.robison at openroadsconsulting.com> wrote:
>> Thanks, I've tried that according to the VLC documentation with no success.
>> I've spent over 1 solid week trying to setup an environment to cross compile
>> to Windows 64 but still do not have a successful build. Also, I did use the
>> precompiled builds above and got the error when I tried to actually do the
>> make in the vlc/win32 directory. It is my understanding that the precompiled
>> contribs do not contain the tool chain for the actual cross compile. Am I
>> missing something? David
>>
> You can always compile your own contribs.
>
> Regards,
>      Edward Wang
> _______________________________________________
> 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.




More information about the vlc-devel mailing list