wxWidget配置:无法猜测构建类型

时间:2015-09-04 17:17:53

标签: c++ build wxwidgets

我试图在this教程之后在Windows上构建wxWidget 。但是当输入../configure --enable-unicode --enable-debug - --enable-monolithic --disable-shared时,输出很多"分段错误"消息:

$ ./configure --enable-unicode --enable-debug --enable-monolithic --disable-shared
./configure: line 427:  3224 Segmentation fault      expr a : '\(a\)' > /dev/null 2>&1
./configure: line 1492:  2560 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
./configure: line 1492:  2452 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
./configure: line 1492:  3692 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
./configure: line 1492:  3436 Segmentation fault      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" > /dev/null
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2015-08-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;    f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2015-08-20

uname -m = x86
uname -r = 1
uname -s = WindowsNT
uname -v = 5

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              = i686
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = x86
UNAME_RELEASE = 1
UNAME_SYSTEM  = WindowsNT
UNAME_VERSION = 5
configure: error: cannot guess build type; you must specify one

config.log就在这里。

我还下载了config.sub和config.guess 我的操作系统是Windows XP SP3。 wxWidgets版本是3.0.2。

1 个答案:

答案 0 :(得分:0)

你正在运行的环境(Cygwin?MSYS?MSYS2?我们不知道你不说)有些问题是非常错误的,因为expr肯定不应该是段错误。尝试以交互方式运行它,看看你是否只有一个损坏的/usr/bin/expr可执行文件。如果没有,请在您的计算机上运行硬件测试。