How to rebuild the mpfr.svn.build.vc10.zip in my own computer?
Asked Answered
G

1

3

This question is about how to install "mpfr" with visual studio 2010 in windows OS.

Though I have actually solved the mpfr installation problem by using a pre-compiled mpfr library (see the details here: install mpfr via precompiled mpfr library), I would still prefer to rebuild it myself since I am new and can learn more in C++ and Visual studio through such experience.

However, per the guidelines in Brian Gladman's GMP/MPIR/MPFR/MPC page and after downloading the mpfr.svn.build.vc10 and mpfr-3.0.0.build.vc10, I failed to rebuild them myself per the readme.txt inside.

Is there anyone who has successfully rebuilt them? I would need more detailed guidelines on this for newbies.

Thank you!

Greff answered 1/11, 2013 at 8:20 Comment(1)
Please put a look at my answer, just wrote it now, it describes in very details 3 ways of compiling GMP and MPIR under Windows VisualStudio.Tanah
W
3

I've built MPIR, MPFR, and MPC with Visual Studio as part of gmpy ( https://code.google.com/p/gmpy/ ). A full snapshot of my directory structure, with all the source files, is available as https://gmpy.googlecode.com/files/full-src-mpir-mpfr-mpc-gmpy2-2.0.2.zip

Look for a file called windows_build.txt; it contains my notes for building a new release of gmpy2. It may not answer all your questions but it will give you a known working environment to start from.

Westhead answered 1/11, 2013 at 18:21 Comment(7)
hi @casevh, Thank you very much! All work perfectly!! How do you know such detailed settings? PS: how can I determine the versions of different libraries (mpir, mpfr, mpc ?)? Is it possible to get the most recent versions of these libraries converted?Greff
I'm currently using MPIR 2.6.0 with one patch, MPFR 3.1.2, and MPC 1.0.1. I try to keep current with the most recent released versions.Westhead
thank you @Westhead for your efforts! Many people may benefit from your work.Greff
hi @casevh, I tested the version numbers by the code from this link svn.haiku-os.org/oldhaiku/buildtools/trunk/gcc/mpc/tests/… and found the version information as follows:GMP 5.0.2(the most recent is v5.1.3),MPFR v3.1.1 ( the latest v3.1.2), both MPIRv2.60 and MPC v1.01 are the most recent. :)Greff
@LCFactorization, the GMP version number refers to the version used to update the MPIR fork. I was confused about the MPFR version. I think the new version can be copied over the old version.Westhead
@Westhead are you still active here? The link is not working anymore.Minny
@Minny I am still around. I am working on an updated build with the latest versions of mpir, mpfr, and mpc. I'll add another comment when it is complete and available.Westhead

© 2022 - 2024 — McMap. All rights reserved.