<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello Matthias,</p>
<p><br>
</p>
<p>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>without</b> setting ZIMPL = false):</p>
<p><br>
</p>
<p><br>
** Building ZIMPL library "/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a".<br>
make[2]: Entering directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
-> compiling obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o<br>
src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br>
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */<br>
 ^<br>
src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br>
Makefile:249: recipe for target 'obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o' failed<br>
make[2]: *** [obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o] Error 1<br>
make[2]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br>
make[1]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br>
make[1]: Leaving directory '/scipoptsuite-3.2.1'<br>
Makefile:87: recipe for target 'scipbinary' failed<br>
make: *** [scipbinary] Error 2<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>This is the error I get when I run "make SHARED=true scipoptlib" :</p>
<p><br>
</p>
<p>-> compiling obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o<br>
src/blkmem.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br>
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */<br>
 ^<br>
src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br>
src/blkmem.c:1:0: error: CPU you selected does not support x86-64 instruction set<br>
Makefile:249: recipe for target 'obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o' failed<br>
make[3]: *** [obj/O.cygwin.x86_64.gnu.normal.opt/blkmem.o] Error 1<br>
make[3]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br>
make[2]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br>
make[2]: Leaving directory '/scipoptsuite-3.2.1'<br>
Makefile:87: recipe for target 'scipbinary' failed<br>
make[1]: *** [scipbinary] Error 2<br>
make[1]: Leaving directory '/scipoptsuite-3.2.1'<br>
Makefile:92: recipe for target 'scipoptlib' failed<br>
make: *** [scipoptlib] Error 2<br>
<br>
</p>
<div>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><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Ahmed</div>
<div><br>
<br>
</div>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Matthias Miltenberger <miltenberger@zib.de><br>
<b>Sent:</b> Friday, 8 April 2016 5:20 PM<br>
<b>To:</b> Ahmed Hammad; scip@zib.de<br>
<b>Subject:</b> Re: [SCIP] Error compiling SCIP using Cygwin</font>
<div> </div>
</div>
<div>Dear Ahmed,<br>
<br>
you did not do what I told you in my previous answer! I attached a corrected sub-makefile.<br>
<br>
For your second compiling error: The ZIMPL x86_64 sub-makefile is missing for cygwin. I attached them as well.<br>
You might consider compiling with ZIMPL=false if you can't solve the issue and don't need ZIMPL.<br>
<br>
all the best<br>
Matthias<br>
<br>
<br>
<div class="moz-cite-prefix">On 08.04.2016 02:55, Ahmed Hammad wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>Hi Matthias,</p>
<p><br>
</p>
<p>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) :</p>
<p><br>
</p>
<div>CPPFLAGS += -m64LDFLAGS  += -m64ifneq ($(OPT),opt-gccold)ifneq ($(OPT),dbgOFLAGS          +=      -mtune=native  # -malign-double -mcpu=pentium4 endif<br>
endif</div>
<div><br>
</div>
<div>ifeq ($(SHARED),true)<br>
LIBBUILDFLAGS += -D_WIN64 +=      -m64<br>
endif<br>
</div>
<br>
<div>When I tried using LEGACY=true I got the following error:</div>
<div><br>
</div>
<div>** Building ZIMPL library "/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a".<br>
make[2]: Entering directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
Makefile:135: make/make.cygwin.x86_64.gnu.opt: No such file or directory<br>
make[2]: *** No rule to make target 'make/make.cygwin.x86_64.gnu.opt'.  Stop.<br>
make[2]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br>
make[1]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br>
make[1]: Leaving directory '/scipoptsuite-3.2.1'<br>
Makefile:87: recipe for target 'scipbinary' failed<br>
make: *** [scipbinary] Error 2<br>
</div>
<div><br>
</div>
<div>Thanks for your help</div>
<div><br>
</div>
<div>Ahmed<br>
</div>
<br>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Matthias Miltenberger
<a class="moz-txt-link-rfc2396E" href="mailto:miltenberger@zib.de"><miltenberger@zib.de></a><br>
<b>Sent:</b> Friday, 8 April 2016 5:20 AM<br>
<b>To:</b> Ahmed Hammad; <a class="moz-txt-link-abbreviated" href="mailto:scip@zib.de">
scip@zib.de</a><br>
<b>Subject:</b> Re: [SCIP] Error compiling SCIP using Cygwin</font>
<div> </div>
</div>
<div>Dear Ahmed,<br>
<br>
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>
Simply add " -D_WIN32" or " -D_WIN64", respectively,  in the first line, extending the "CPPFLAGS" parameter.<br>
<br>
Hope that helps!<br>
You might also try the make option "LEGACY=true", disabling the rational solving capabilities of SoPlex.<br>
<br>
cheers<br>
Matthias<br>
<br>
<div class="moz-cite-prefix">On 07.04.2016 12:08, Ahmed Hammad wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello all,</p>
<p><br>
</p>
<p>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:</p>
<p><br>
</p>
<p>-> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o<br>
src/rational.cpp: In function ‘std::string soplex::rationalToString(const soplex                                                                                 ::Rational&, int)’:<br>
src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this scope<br>
       tmpStream = fmemopen(tmpString, 63, "w");<br>
                                              ^<br>
Makefile:609: recipe for target 'obj/O.cygwin.x86_64.gnu.opt/lib/rational.o' fai                                                                                 led<br>
make[3]: *** [obj/O.cygwin.x86_64.gnu.opt/lib/rational.o] Error 1<br>
make[3]: Leaving directory '/scipoptsuite-3.2.1/soplex-2.2.1'<br>
Makefile:473: recipe for target 'makelibfile' failed<br>
make[2]: [makelibfile] Error 2 (ignored)<br>
make[3]: Entering directory '/scipoptsuite-3.2.1/soplex-2.2.1'<br>
-> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o<br>
src/rational.cpp: In function ‘std::string soplex::rationalToString(const soplex::Rational&, int)’:<br>
src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this scope<br>
       tmpStream = fmemopen(tmpString, 63, "w");<br>
</p>
<p><br>
</p>
<p>How to I deal with this. Please help</p>
<p><br>
</p>
<p>Ahmed<br>
</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
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>
<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>
<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>
</body>
</html>