# Minuit2 For Windows

**URL:** <https://root-forum.cern.ch/t/minuit2-for-windows/32131>\
**Category:** Newbie\
**Created:** [December 30, 2018, 1:16am UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131 "2018-12-30T01:16:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianwos83](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Post date:** [December 30, 2018, 1:16am UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/1 "2018-12-30T01:16:50Z")

</div>

Hi all,

Completely new to Root. I am trying to install Minuit2 on Windows10. Is that possible?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 30, 2018, 12:33pm UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/2 "2018-12-30T12:33:47Z")

</div>

Are you trying to use the [Minuit2](https://root.cern.ch/doc/master/Minuit2Page.html) interface which is [a part of your ROOT distribution](https://root.cern.ch/numerical-minimization) (if yes, which ROOT version do you use?) or are you trying to use the standalone [Minuit2](https://root.cern.ch/doc/master/Minuit2Page.html) library ([independent / outside of ROOT](https://www.google.com/search?q=site%3Aroot-forum.cern.ch+Minuit2+AND+%28standalone+OR+%22stand-alone%22+OR+%22stand+alone%22%29))?

---

<div class="post-metadata">

**Author:** ![christianwos83](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Post date:** [December 31, 2018, 12:31am UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/3 "2018-12-31T00:31:27Z")

</div>

I am trying to use the stand alone version of the Minuit2 library to do function fitting.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 31, 2018, 7:35am UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/4 "2018-12-31T07:35:26Z")

</div>

I guess you should take the [GooFit/Minuit2](https://root-forum.cern.ch/t/minuit2-stand-alone/26857) version (the newest standalone version that exists?) and then see its “test” subdirectory and: [Minuit2 User Guide -\> A complete example](https://root.cern.ch/root/htmldoc/guides/minuit2/Minuit2.html#a-complete-example)

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [December 31, 2018, 10:21am UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/5 "2018-12-31T10:21:23Z")

</div>

While Minuit2 as part of ROOT works on Windows, I do not know whether the standalone version has Windows support. Also, its build system was changed recently, maybe @henryiii knows?

---

<div class="post-metadata">

**Author:** ![henryiii](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/henryiii/32/14065_2.png) [@henryiii](https://root-forum.cern.ch/u/henryiii)\
**Post date:** [December 31, 2018, 10:38am UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/6 "2018-12-31T10:38:25Z")

</div>

The standalone version, inside ROOT, works on Windows. I don’t have CI for it, since ROOT doesn’t have that directly available (only on Jenkins), but I did test it before merging.

Check the docs here for building: [https://github.com/root-project/root/tree/master/math/minuit2](https://github.com/root-project/root/tree/master/math/minuit2). You can build it straight from the ROOT source, just cmake /root/math/minuit2 from a build directory.

(The one in GooFit’s github namespace should be identical as well as I copy from ROOT).

I’d like to get the files added here: [http://project-mathlibs.web.cern.ch/project-mathlibs/minuit/release/download.html](http://project-mathlibs.web.cern.ch/project-mathlibs/minuit/release/download.html), but haven’t had any success.

---

<div class="post-metadata">

**Author:** ![christianwos83](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Post date:** [December 31, 2018, 3:25pm UTC](https://root-forum.cern.ch/t/minuit2-for-windows/32131/7 "2018-12-31T15:25:09Z")

</div>

Thank you all for your help. Since I will probably use other ROOT libraries in the future, I think I might just download ROOT for Windows, instead of downloading only the Minuit2 library. I use CodeBlocks on Windows. Does it matter which version of ROOT I download?

Happy New Year to all!
