2016-07-17 3 views
0

私はMSYS 64ビットを使用してWindows上で64ビットライブラリを構築する方法についてthisチュートリアルに従おうとしています。私はlibiconvを構築することに固執しています。私はチュートリアルに続き、問題は "./configure"です。ステップが失敗したとWindows - automakeはMSYS64で利用できません

configure: error: cannot guess build type; you must specify one 
より具体的な

、ここでフル出力である:

checking for a BSD-compatible install... /usr/bin/install -c 
checking whether build environment is sane... yes 
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p 
checking for gawk... gawk 
checking whether make sets $(MAKE)... no 
checking whether make sets $(MAKE)... (cached) no 
checking for gcc... D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.exe 
checking for suffix of executables... .exe 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc accepts -g... yes 
checking for D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc option to accept ISO C89... none needed 
checking for style of include used by make... none 
checking dependency style of D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc... none 
checking how to run the C preprocessor... D:\Development\SFMLearn\x86_64-4.9.2-release-posix-seh-rt_v4-rev2\mingw64\bin\gcc -E 
checking for strip... /mingw/bin/strip 
checking build system type... build-aux/config.guess: unable to guess system type 

This script, last modified 2009-02-03, 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 (build-aux/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 = 2009-02-03 

uname -m = x86_64 
uname -r = 2.4.1(0.294/5/3) 
uname -s = MSYS_NT-10.0 
uname -v = 2016-02-03 10:57 

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

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

UNAME_MACHINE = x86_64 
UNAME_RELEASE = 2.4.1(0.294/5/3) 
UNAME_SYSTEM = MSYS_NT-10.0 
UNAME_VERSION = 2016-02-03 10:57 
configure: error: cannot guess build type; you must specify one 

それは(以降提供されたURLからはconfig.guessとconfig.subをダウンロードするには私に言いましたスクリプトの私のバージョンは明らかに2009年からです)しかし、私はこのスクリプトをどこに置くべきか分かりません。

This答えは、%MSYS_ROOT%/ usr/share/automake.1.11.1/config.guessを交換するよう提案しますが、automakeはインストールされていません。/usr/shareに "automake"というフォルダはありません。

[email protected] MSYS /usr/share 
$ ls 
aclocal   doc info  magic    misc  pki  zoneinfo 
awk    emacs libalpm makepkg   Msys  readline zsh 
bash-completion file licenses makepkg-template p11-kit tabset 
cygwin   gnupg locale man    pacman terminfo 

私はautomysをMSYS 64-bitにインストールする方法がわかりませんが、Googleはどちらも助けません。私は "automake-1.11.1-1-msys-1.0.13-bin"とconfig.guessとconfig.subをダウンロードしましたが、どこに置くべきかわかりません。

何か助けていただければ幸いです。

答えて

0

configureスクリプトにこれらの引数を渡す試してみてください。

--build=$MSYSTEM_CHOST --host=$MSYSTEM_CHOST 

は実際に、なぜあなたも最初の場所にlibiconvを構築していますか? MSYS2のパッケージマネージャを使用してインストールできます。ファイル名を指定して実行:

pacman -S mingw-w64-x86_64-libiconv mingw-w64-x86_64-iconv 

(私は上記のそれらの両方を含むので、私はlibiconvをとiconvパッケージの違いを知りません。)

あなたが興味があれば、あなたはこれらのパッケージが構築されたかを確認することができますここに:

https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-libiconv

関連する問題