<div dir="ltr">Hi,<div>Here is the thing.</div><div>If in Cygwin.bat, I add following line:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">call D:\ProgrammingTools\IntelSWTools\compilers_and_libraries_2016.3.207\windows\bin\ifortvars.bat -arch ia32_intel64 vs2013 -platform linux</blockquote></blockquote><div>then Cygwin cannot find ifort command.</div><div><br></div><div>If in I add following line instead:</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">call D:\ProgrammingTools\IntelSWTools\compilers_and_libraries_2016.3.207\windows\bin\ifortvars.bat -arch intel64 vs2013 -platform linux</blockquote></blockquote>then Cygwin can find ifort command, but when configure, there are other errors saying:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ ./configure -enable-doscompile=msvc<br>checking build system type... x86_64-unknown-cygwin<br>checking whether we want to compile in debug mode... no<br>checking for icl... icl<br>checking for C compiler default output file name... configure: error: C compiler cannot create executables<br>See `config.log' for more details.</blockquote><div>The full log is in the attachment. </div></div><div><br></div><div>As for the flag -platform, the manual says it has only 2 choices: "linux" or "android". So, I think android mustn't be the right one, I choose linux.</div><div>You can refer to this about ifortvars.bat:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ifortvars.bat [-arch] <arch> [vs] [-platform <platform>]<br> <arch> must be is one of the following<br> ia32 : Set up for IA-32 host and target<br> ia32_intel64 : Set up for IA-32 host and Intel(R)64 target<br> intel64 : Set up for Intel(R) 64 host and target<br> If specified, <vs> must be one of the following<br> vs2010 : Set to use Microsoft Visual Studio 2010<br> vs2010shell : Set to use Microsoft Visual Studio Shell 2010<br> vs2012 : Set to use Microsoft Visual Studio 2012<br> vs2013 : Set to use Microsoft Visual Studio 2013<br> vs2013shell : Set to use Microsoft Visual Studio Shell 2013<br> vs2015 : Set to use Microsoft Visual Studio 2015<br> If <vs> is not specified, the version of Visual Studio detected at install<br> time is used.<br> <platform> must be of the following.<br> linux : Set to Linux target.<br> android : Set to Android target.</blockquote><div><br></div><div>Can you figure out what is wrong? </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-31 17:21 GMT+08:00 Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
it seems that configure failed to recognize your Fortran compiler:<br>
<br>
configure: Trying to determine Fortran compiler name<br>
checking for ifort... no<br>
checking for fl32... no<br>
checking for compile_f2c... no<br>
configure: WARNING: Failed to find a Fortran compiler!<br>
<br>
<br>
Without a Fortran compiler, it will not build ThirdParty/Blas. Therefore, the configure in the Ipopt subdirectory didn't "find" Blas (i.e., recognize that "coinblas" will be build):<span class=""><br>
<br>
checking for COIN-OR package Blas... skipped check via pkg-config, redirect to fallback<br>
checking for COIN-OR package Blas (fallback)... no, dependency coinblas not available<br>
<br></span>
I don't recall at the moment what all the flags to ifortvars.bat mean, but are you sure that "-platform linux" is correct.<br>
After you started cygwin and the MSVC/Intel batch files went through, the ifort executable should be in your path.<br>
<br>
Stefan<br>
<br>
PS: The installation instructions in the Ipopt manual might be a bit outdated. Could be that one now should use --enable-msvc instead of --enable-doscompile=msvc. But without GCC in the path, it may also work without any options to configure.<span class=""><br>
<br>
On 08/31/2016 09:14 AM, Chuan Liu wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I'm trying to insatll Ipopt on windows with msvc according to<br>
Installation with Cygwin using the MSVC++ compiler<br></span>
<<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.coin-2Dor.org_Ipopt_documentation_node15.html&d=CwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=em6m_GUccwZUZByhfCden-naEun0lMba_AC7kGj5sgQ&s=rFRz_F29buKnHVMcXUqg7G3YFeH4jfMhB-z9FfO-HNA&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint<wbr>.com/v2/url?u=http-3A__www.<wbr>coin-2Dor.org_Ipopt_documentat<wbr>ion_node15.html&d=CwMFaQ&c=<wbr>Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5<wbr>ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU2<wbr>9t80hk2rsLc4vrlRySBDabuq0O1ZI&<wbr>m=em6m_GUccwZUZByhfCden-<wbr>naEun0lMba_AC7kGj5sgQ&s=rFRz_F<wbr>29buKnHVMcXUqg7G3YFeH4jfMhB-z9<wbr>FfO-HNA&e=</a>>.<span class=""><br>
I followed the instructions first install Cygwin with necessary<br>
components, and download the external codes including:<br>
<br></span>
* downloading BLAS, LAPACK, ASL, Mumps and Metis with "./get.BLAS",<span class=""><br>
"./get.LAPACK", "./get.ASL", "./get.Mumps" and "./get.Metis".<br></span>
* downloading HSL source /coinhsl-2014.01.10.zip<br>
/from <a href="http://hsl.rl.ac.uk/ipopt" rel="noreferrer" target="_blank">http://hsl.rl.ac.uk/ipopt</a><br>
<<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__hsl.rl.ac.uk_ipopt&d=CwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=em6m_GUccwZUZByhfCden-naEun0lMba_AC7kGj5sgQ&s=Pw9xFc9gmqA6js_u_rq9pPW54MbnwqP_BP6j8uPCOxY&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint<wbr>.com/v2/url?u=http-3A__hsl.rl.<wbr>ac.uk_ipopt&d=CwMFaQ&c=Ngd-ta5<wbr>yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA<wbr>_2Wlc4&r=BRcuJnQr5NAzU29t80hk2<wbr>rsLc4vrlRySBDabuq0O1ZI&m=em6m_<wbr>GUccwZUZByhfCden-naEun0lMba_AC<wbr>7kGj5sgQ&s=Pw9xFc9gmqA6js_u_rq<wbr>9pPW54MbnwqP_BP6j8uPCOxY&e=</a>>,<span class=""><br>
and unzip it to CoinIpopt/ThirdParty/HSL/coinh<wbr>sl<br>
<br>
Then I add following 2 lines to Cygwin.bat<br>
<br>
call "D:\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"<br>
call<br>
D:\IntelSWTools\compilers_and_<wbr>libraries_2016.3.207\windows\b<wbr>in\ifortvars.bat<br>
-arch ia32_intel64 vs2013 -platform linux<br>
<br>
<br>
And then in Cygwin command line, I enter<br>
<br>
./configure -enable-doscompile=msvc<br>
<br>
<br>
After a while, errors comes out says:<br>
<br>
configure: for BLAS in MKL (32bit) using C linkage<br>
checking for daxpy... no<br>
configure: for BLAS in MKL (64bit) using C linkage<br>
checking for daxpy... no<br>
checking whether -lblas has BLAS... no<br>
checking for COIN-OR package Blas... skipped check via pkg-config,<br>
redirect to fallback<br>
checking for COIN-OR package Blas (fallback)... no, dependency<br>
coinblas not available<br>
configure: error: Required package BLAS not found.<br>
configure: error: /bin/sh './configure' failed for Ipopt<br>
<br>
The full configure output information is in the attachment.<br>
<br>
It seems that complier cannot find the BLAS, but I indeed download it to<br>
CoinIpopt/ThirdPart/BLAS.<br>
Does anyone know what is wrong and how to fix it?<br>
<br>
<br></span>
______________________________<wbr>_________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__list.coin-2Dor.org_mailman_listinfo_ipopt&d=CwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=em6m_GUccwZUZByhfCden-naEun0lMba_AC7kGj5sgQ&s=QtidthPoNz8NxzFKiQNvv0QKChg_wbz3gQgAekDoh1Q&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__list.coi<wbr>n-2Dor.org_mailman_listinfo_<wbr>ipopt&d=CwICAg&c=Ngd-ta5yRYsqe<wbr>UsEDgxhcqsYYY1Xs5ogLxWPA_<wbr>2Wlc4&r=BRcuJnQr5NAzU29t80hk2r<wbr>sLc4vrlRySBDabuq0O1ZI&m=em6m_G<wbr>UccwZUZByhfCden-naEun0lMba_AC7<wbr>kGj5sgQ&s=QtidthPoNz8NxzFKiQNv<wbr>v0QKChg_wbz3gQgAekDoh1Q&e=</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
<a href="http://www.gams.com/~stefan" rel="noreferrer" target="_blank">http://www.gams.com/~stefan</a><br>
</font></span></blockquote></div><br></div>