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

wxWidget configure: cannot guess build type

本文关键字:构建 类型 配置 wxWidget      更新时间:2023-10-16

我试图按照本教程在Windows上构建wxWidget。但是打出来的时候…/configure——enable-unicode——enable-debug -- --enable-monolithic——disable-shared,输出的是大量的"Segmentation fault"消息:

$ ./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在这里

我也下载了配置。Sub和config.guess我的操作系统是Windows XP SP3。wxWidgets的版本是3.0.2

您运行的环境(Cygwin?MSYS吗?MSYS2吗?我们不知道(你不说)expr绝对不应该分段故障。尝试以交互方式运行它,看看您是否只是有一个损坏的/usr/bin/expr可执行文件。如果没有,请在您的机器上运行硬件测试。