Page 1 of 1

Cross compilation problem with Mingw-w64

Posted: 11 Sep 2012 12:50
by Victorzinho
Hi all,

I've been trying to compile VLC for Windows using the wiki instructions [1] but I am getting the following error while performing make:

Code: Select all

... In file included from ../../../extras/package/win32/../../../modules/access/dtv/bdagraph.cpp:34:0: ../../../extras/package/win32/../../../modules/access/dtv/bdagraph.hpp:29:20: fatal error: wtypes.h: No such file or directory compilation terminated. ...
I've checked [2] but it didn't solve my problem. I'm currently using the Mingw-w64 toolchain experimental version 3.0, as suggested in [3], so I'm specifying the host triplet i686-w64-mingw32 when needed. I also managed to compile the Linux binaries without any problem, so I guess the dependencies are correct. My OS is a Ubuntu 12.04 32 bits and wtypes.h is present on my system:

Code: Select all

$ locate wtypes.h /usr/i686-w64-mingw32/include/wtypes.h /usr/x86_64-w64-mingw32/include/wtypes.h
I've uploaded the config.log file to [4] (no option for attachments?), just in case it would be of any help. Is there any way to specify the location of the wtypes.h include dir to the compiler? Am I doing anything else wrong? Any help would be greatly appreciated.

Best regards,
Víctor.

-----

[1] Win32Compile - http://wiki.videolan.org/Win32Compile
[2] mingw32 cross compile problem with configure.sh - viewtopic.php?f=32&t=102059
[3] Win32Compile -- configure error using Ubuntu 12.04 - viewtopic.php?f=32&t=101489
[4] config.log - http://dl.dropbox.com/u/62764853/config.log

Re: Cross compilation problem with Mingw-w64

Posted: 11 Sep 2012 15:25
by nkoriyama

Code: Select all

configure:6670: checking for i686-w64-mingw32-g++ configure:6700: result: no
This is an answer.

If your system has i686-w64-mingw32-g++, config.log looks like the following:

Code: Select all

configure:6680: checking for i686-w64-mingw32-g++ configure:6696: found /Users/nkoriyama/mingw/mingw-w64/bin/i686-w64-mingw32-g++ configure:6707: result: i686-w64-mingw32-g++ configure:6778: checking for C++ compiler version configure:6787: i686-w64-mingw32-g++ --version >&5 i686-w64-mingw32-g++ (GCC) 4.7.1 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Re: Cross compilation problem with Mingw-w64

Posted: 12 Sep 2012 09:08
by Victorzinho
Hi,

Yes, that was it. I couldn't see that among all the other stuff in the config log, shame on me. Thanks a lot.

Regards,
Víctor.