<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Life would be lot easier for everyone if the Windows users that intensely use SCIP and<div class="">other such codes would learn a minimum of Linux, make their computer dual-boot</div><div class="">and run SCIP just under Linux. They have little experience with Makefiles etc and</div><div class="">are helpless in fixing problems. Of course, the opposite mode of using Windows as</div><div class="">base is propagated very much by Microsoft. </div><div class=""><a href="http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash" class="">http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash</a></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 9, 2016, at 12:49 AM, Ahmed Hammad <<a href="mailto:a.hammad@unsw.edu.au" class="">a.hammad@unsw.edu.au</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hello Matthias,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I really appreciate your help. I'm still facing difficulties. I am now able to built SCIP when I use ZIMPL=flase. However, I require ZIMPL for the python interface using make SHARED=true scipoptlib. I still get an error even when I copied the previous ZIMPL files that you attached. The error is as follows when I run "make" (<b class="">without</b><span class="Apple-converted-space"> </span>setting ZIMPL = false):</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">** Building ZIMPL library "/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a".<br class="">make[2]: Entering directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br class="">-> compiling obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o<br class="">src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br class=""> /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */<br class=""> ^<br class="">src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br class="">Makefile:249: recipe for target 'obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o' failed<br class="">make[2]: *** [obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o] Error 1<br class="">make[2]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br class="">Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br class="">make[1]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br class="">make[1]: Leaving directory '/scipoptsuite-3.2.1'<br class="">Makefile:87: recipe for target 'scipbinary' failed<br class="">make: *** [scipbinary] Error 2<br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">This is the error I get when I run "make SHARED=true scipoptlib" :</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">-> compiling obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o<br class="">src/blkmem.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br class=""> /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */<br class=""> ^<br class="">src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br class="">src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br class="">Makefile:249: recipe for target 'obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o' failed<br class="">make[3]: *** [obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o] Error 1<br class="">make[3]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br class="">Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br class="">make[2]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br class="">make[2]: Leaving directory '/scipoptsuite-3.2.1'<br class="">Makefile:87: recipe for target 'scipbinary' failed<br class="">make[1]: *** [scipbinary] Error 2<br class="">make[1]: Leaving directory '/scipoptsuite-3.2.1'<br class="">Makefile:92: recipe for target 'scipoptlib' failed<br class="">make: *** [scipoptlib] Error 2<br class=""><br class=""></div><div class="">I tried to compile without copying over your ZIMPL files and I still get an error just like in my previous message (my windows is 64 bits by the way).I require a python interface for a project I am working on so your help would be great.</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Ahmed</div><div class=""><br class=""><br class=""></div><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 803.59375px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Matthias Miltenberger <<a href="mailto:miltenberger@zib.de" class="">miltenberger@zib.de</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Friday, 8 April 2016 5:20 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Ahmed Hammad;<span class="Apple-converted-space"> </span><a href="mailto:scip@zib.de" class="">scip@zib.de</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [SCIP] Error compiling SCIP using Cygwin</font><div class=""> </div></div><div class="">Dear Ahmed,<br class=""><br class="">you did not do what I told you in my previous answer! I attached a corrected sub-makefile.<br class=""><br class="">For your second compiling error: The ZIMPL x86_64 sub-makefile is missing for cygwin. I attached them as well.<br class="">You might consider compiling with ZIMPL=false if you can't solve the issue and don't need ZIMPL.<br class=""><br class="">all the best<br class="">Matthias<br class=""><br class=""><br class=""><div class="moz-cite-prefix">On 08.04.2016 02:55, Ahmed Hammad wrote:<br class=""></div><blockquote type="cite" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Matthias,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I tried extending "CPPFLAGS" parameter but I still get the same error. This is how I extended CPPFLAGS (I attached "make.cygwin.x86_64.gnu" above too) :</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div class="">CPPFLAGS += -m64LDFLAGS  += -m64ifneq ($(OPT),opt-gccold)ifneq ($(OPT),dbgOFLAGS          +=      -mtune=native  # -malign-double -mcpu=pentium4 endif<br class="">endif</div><div class=""><br class=""></div><div class="">ifeq ($(SHARED),true)<br class="">LIBBUILDFLAGS += -D_WIN64 +=      -m64<br class="">endif<br class=""></div><br class=""><div class="">When I tried using LEGACY=true I got the following error:</div><div class=""><br class=""></div><div class="">** Building ZIMPL library "/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a".<br class="">make[2]: Entering directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br class="">Makefile:135: make/make.cygwin.x86_64.gnu.opt: No such file or directory<br class="">make[2]: *** No rule to make target 'make/make.cygwin.x86_64.gnu.opt'.  Stop.<br class="">make[2]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br class="">Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br class="">make[1]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br class="">make[1]: Leaving directory '/scipoptsuite-3.2.1'<br class="">Makefile:87: recipe for target 'scipbinary' failed<br class="">make: *** [scipbinary] Error 2<br class=""></div><div class=""><br class=""></div><div class="">Thanks for your help</div><div class=""><br class=""></div><div class="">Ahmed<br class=""></div><br class=""><br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 793.796875px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Matthias Miltenberger<span class="Apple-converted-space"> </span><a class="moz-txt-link-rfc2396E" href="mailto:miltenberger@zib.de"><miltenberger@zib.de></a><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Friday, 8 April 2016 5:20 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Ahmed Hammad;<span class="Apple-converted-space"> </span><a class="moz-txt-link-abbreviated" href="mailto:scip@zib.de">scip@zib.de</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [SCIP] Error compiling SCIP using Cygwin</font><div class=""> </div></div><div class="">Dear Ahmed,<br class=""><br class="">for some reason the flag "_WIN32" or "_WIN64" is not set when using cygwin. You can do that manually be adjusting the corresponding sub-makefiles "make.cygwin.x86.gnu" or "make.cygwin.x86_64.gnu" in "soplex-2.2.1/make/":<br class="">Simply add " -D_WIN32" or " -D_WIN64", respectively,  in the first line, extending the "CPPFLAGS" parameter.<br class=""><br class="">Hope that helps!<br class="">You might also try the make option "LEGACY=true", disabling the rational solving capabilities of SoPlex.<br class=""><br class="">cheers<br class="">Matthias<br class=""><br class=""><div class="moz-cite-prefix">On 07.04.2016 12:08, Ahmed Hammad wrote:<br class=""></div><blockquote type="cite" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hello all,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I have been trying to compile SCIP on windows using Cygwin. So I downloaded scipoptsuite-3.2.1. Once I untar it and try to built it using make I get the following error when it tries to build the Soplex library:</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">-> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o<br class="">src/rational.cpp: In function ‘std::string soplex::rationalToString(const soplex                                                                                 ::Rational&, int)’:<br class="">src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this scope<br class="">       tmpStream = fmemopen(tmpString, 63, "w");<br class="">                                              ^<br class="">Makefile:609: recipe for target 'obj/O.cygwin.x86_64.gnu.opt/lib/rational.o' fai                                                                                 led<br class="">make[3]: *** [obj/O.cygwin.x86_64.gnu.opt/lib/rational.o] Error 1<br class="">make[3]: Leaving directory '/scipoptsuite-3.2.1/soplex-2.2.1'<br class="">Makefile:473: recipe for target 'makelibfile' failed<br class="">make[2]: [makelibfile] Error 2 (ignored)<br class="">make[3]: Entering directory '/scipoptsuite-3.2.1/soplex-2.2.1'<br class="">-> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o<br class="">src/rational.cpp: In function ‘std::string soplex::rationalToString(const soplex::Rational&, int)’:<br class="">src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this scope<br class="">       tmpStream = fmemopen(tmpString, 63, "w");<br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">How to I deal with this. Please help</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Ahmed<br class=""></div></div><br class=""><fieldset class="mimeAttachmentHeader"></fieldset><br class=""><pre class="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre></blockquote><br class=""><pre class="moz-signature" cols="72">-- 
\__________________

Matthias Miltenberger
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
<a class="moz-txt-link-abbreviated" href="http://www.zib.de/miltenberger">www.zib.de/miltenberger</a>
<a class="moz-txt-link-abbreviated" href="mailto:miltenberger@zib.de">miltenberger@zib.de</a>
+49 (30) 841 85-245</pre></div></div></div></blockquote><br class=""><pre class="moz-signature" cols="72">-- 
\__________________

Matthias Miltenberger
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
<a class="moz-txt-link-abbreviated" href="http://www.zib.de/miltenberger">www.zib.de/miltenberger</a>
<a class="moz-txt-link-abbreviated" href="mailto:miltenberger@zib.de">miltenberger@zib.de</a>
+49 (30) 841 85-245</pre></div></div></div><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Scip mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Scip@zib.de" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Scip@zib.de</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://listserv.zib.de/mailman/listinfo/scip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://listserv.zib.de/mailman/listinfo/scip</a></div></blockquote></div><br class=""></div></body></html>