在Windows上编译GDC--从哪里获得GMP和MPFR依赖项? [英] Compiling GDC on Windows -- where to get GMP and MPFR dependencies?

查看:0
本文介绍了在Windows上编译GDC--从哪里获得GMP和MPFR依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用MinGW的MSY在Windows 7上compile GDC (v2)

当我执行此步骤时:

$ ../configure --enable-languages=d --disable-shared --disable-bootstrap

我得到:

checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.

尝试使用--with-gmp和/或--with-mpfr选项指定它们的位置。

这些库的源代码副本可在其各自的 托管站点以及ftp://gcc.gnu.org/pub/gcc/infrastructure/。 另请参阅http://gcc.gnu.org/install/prerequisites.html以了解其他信息。 如果您从供应商分发包中获得GMP和/或MPFR,请制作 确保您已经安装库和头文件。 它们可能位于不同的包中。

这让我回顾了instructions,它指出它需要这些库:

  • libgmp3-dev
  • libmpfr-dev
  • libmpc-dev
因此,现在的问题是,我在哪里可以找到这些头文件和/或库?我到处搜索libgmp3-dev,但我找不到任何适用于Windows的东西。(我还在学习*NIX,所以我对任何东西都不太熟悉。)

谢谢!


更新

所以我尝试makeMPFR(我甚至不知道它是否是正确的版本),我收到了这个错误:

$ make install
Making install in tests
[...]
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/sh ./libtool   --mode=install /bin/install -c   libmpfr.la '/usr/local/lib'
libtool: install: /bin/install -c .libs/libmpfr.lai /usr/local/lib/libmpfr.la
libtool: install: /bin/install -c .libs/libmpfr.a /usr/local/lib/libmpfr.a
libtool: install: chmod 644 /usr/local/lib/libmpfr.a
libtool: install: ranlib /usr/local/lib/libmpfr.a
/bin/sh: /home/Home: No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 127
make[2]: Leaving directory `/home/Home User/mpfr-2.4.2'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/Home User/mpfr-2.4.2'
make: *** [install-recursive] Error 1

有什么想法吗?

推荐答案

出自https://bitbucket.org/goshawk/gdc/wiki/MinGWCompile

ftp://ftp.gmplib.org/pub/gmp-5.0.1/gmp-5.0.1.tar.bz2

http://www.mpfr.org/mpfr-current/mpfr-3.0.0.tar.bz2

这篇关于在Windows上编译GDC--从哪里获得GMP和MPFR依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆