configure wxWidgets --with-wine: stuck on "checking where we are cross compiling..."

时间:2015-12-10 01:08:03

标签: gcc compilation wxwidgets cross-compiling wine

I'm on Ubuntu Trusty, trying to run ./configure --with-wine inside my wxWidgets source folder. First, I ran into the problem detailed here: https://forums.wxwidgets.org/viewtopic.php?t=7729.

So then I ran export CFLAGS="-I/usr/x86_64-w64-mingw32/include" to get windows.h and other files.

But now when I try ./configure --with-wine again, it gets stuck on "checking whether we are cross compiling...". Here's a short snippet of config.log:

Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) 
configure:16705: $? = 0
configure:16694: winegcc -V >&5
winegcc: option -V requires an argument
configure:16705: $? = 2
configure:16694: winegcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
winegcc: gcc failed
configure:16705: $? = 2
configure:16725: checking whether the C compiler works
configure:16747: winegcc -I/usr/x86_64-w64-mingw32/include   conftest.c  >&5
configure:16751: $? = 0
configure:16799: result: yes
configure:16802: checking for C compiler default output file name
configure:16804: result: a.out
configure:16810: checking for suffix of executables
configure:16817: winegcc -o conftest -I/usr/x86_64-w64-mingw32/include   conftest.c  >&5
configure:16821: $? = 0
configure:16843: result: .exe
configure:16865: checking whether we are cross compiling
configure:16873: winegcc -o conftest.exe -I/usr/x86_64-w64-mingw32/include   conftest.c  >&5
In file included from /usr/x86_64-w64-mingw32/include/crtdefs.h:10:0,
                 from /usr/x86_64-w64-mingw32/include/stdio.h:9,
                 from conftest.c:10:
/usr/x86_64-w64-mingw32/include/_mingw.h:238:0: warning: "__int64" redefined [enabled by default]
 #define __int64 long long
 ^
<command-line>:0:0: note: this is the location of the previous definition

Without using --with-wine, it runs successfully. However, upon make, I get:

cd ../src/stc && ./gen_iface.py
/bin/sh: 1: ./gen_iface.py: Permission denied
make: *** [../include/wx/stc/stc.h] Error 126

Same thing happens if I try sudo make.

2 个答案:

答案 0 :(得分:0)

gen_iface.py错误可能是因为您的系统上没有Python。如果你有它,我看到的唯一解释是文件本身在某种程度上不能在你的系统上执行,在这种情况下执行chmod +x src/stc/gen_iface.py来改变它。

另请注意,运行--with-wine或交叉编译和本地构建是完全不同的事情,您几乎肯定需要问自己,您真正想要做什么,并确保您了解它们之间的区别。

答案 1 :(得分:0)

好吧我遇到了类似的问题,虽然是交叉编译配置看似无关的库(在我的情况下是ffmpeg依赖项)(卡在&#34;检查我们是否正在交叉编译&#34;通常,有时其他地方,总是在它运行./conftest.exe或有时wine64 conftest.exe)时。

在那之后,win32和win64 .exe都没有在葡萄酒下运行,一切都在#34;只是挂起&#34; (在此之前,它工作正常)。甚至重启整个linux机箱也会挂起(ai ai)。即使/usr/bin/wineserver奇数,也似乎无法杀死名为sudo kill -9 ...的进程。

临时解决方法:删除葡萄酒包或可能禁用其auto-run console functionality

看起来好像只有win64 exe才对我失败了虽然不确定(运行15.10,葡萄酒1.6.2,还伴随着big_memory.c中的内核BUG失败或者有些奇怪,以及&#34; cpu)失速32s&#34;失败,所以我的系统可能是bworked [virtualbox])所以如果你仍然需要葡萄酒,你可以安装它&#34;仅32位&#34; (未经测试,非平凡)。