0
我正試圖在this教程 後在Windows上構建wxWidget。但是,當輸入../configure --enable-unicode的--enable-調試 - --enable-單片--disable共享,輸出是很多 「段錯誤」 的消息:wxWidget配置:無法猜測構建類型
$ ./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 <[email protected]> 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在這裏。
我也downdloaded config.sub和config.guess 我的操作系統是Windows XP SP3。 wxWidgets版本是3.0.2。
我使用sourceforge的UnixUtils(帶有更新)的MSysGit。正如你所說,expr導致'Segmentation fault' [使用STRING:REGEXP](http://imgur.com/sO6uCjS)時,operator /和match會導致'語法錯誤',其餘的正常工作。 –
我已經下載了[coreutils](http://gnuwin32.sourceforge.net/packages/coreutils.htm)並替換了舊文件。現在問題解決了,謝謝! –