[SCIP] Error compiling SCIP using Cygwin

Matthias Miltenberger miltenberger at zib.de
Fri Apr 8 09:20:08 CEST 2016


Dear Ahmed,

you did not do what I told you in my previous answer! I attached a 
corrected sub-makefile.

For your second compiling error: The ZIMPL x86_64 sub-makefile is 
missing for cygwin. I attached them as well.
You might consider compiling with ZIMPL=false if you can't solve the 
issue and don't need ZIMPL.

all the best
Matthias


On 08.04.2016 02:55, Ahmed Hammad wrote:
>
> Hi Matthias,
>
>
> 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) :
>
>
> CPPFLAGS += -m64LDFLAGS  += -m64ifneq ($(OPT),opt-gccold)ifneq 
> ($(OPT),dbgOFLAGS          += -mtune=native  # -malign-double 
> -mcpu=pentium4 endif
> endif
>
> ifeq ($(SHARED),true)
> LIBBUILDFLAGS += -D_WIN64 +=      -m64
> endif
>
> When I tried using LEGACY=true I got the following error:
>
> ** Building ZIMPL library 
> "/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a".
> make[2]: Entering directory '/scipoptsuite-3.2.1/zimpl-3.3.3'
> Makefile:135: make/make.cygwin.x86_64.gnu.opt: No such file or directory
> make[2]: *** No rule to make target 
> 'make/make.cygwin.x86_64.gnu.opt'.  Stop.
> make[2]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'
> Makefile.doit:149: recipe for target 
> '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' 
> failed
> make[1]: *** 
> [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] 
> Error 2
> make[1]: Leaving directory '/scipoptsuite-3.2.1'
> Makefile:87: recipe for target 'scipbinary' failed
> make: *** [scipbinary] Error 2
>
> Thanks for your help
>
> Ahmed
>
>
>
> ------------------------------------------------------------------------
> *From:* Matthias Miltenberger <miltenberger at zib.de>
> *Sent:* Friday, 8 April 2016 5:20 AM
> *To:* Ahmed Hammad; scip at zib.de
> *Subject:* Re: [SCIP] Error compiling SCIP using Cygwin
> Dear Ahmed,
>
> 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/":
> Simply add " -D_WIN32" or " -D_WIN64", respectively,  in the first 
> line, extending the "CPPFLAGS" parameter.
>
> Hope that helps!
> You might also try the make option "LEGACY=true", disabling the 
> rational solving capabilities of SoPlex.
>
> cheers
> Matthias
>
> On 07.04.2016 12:08, Ahmed Hammad wrote:
>>
>> Hello all,
>>
>>
>> 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:
>>
>>
>> -> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o
>> src/rational.cpp: In function ‘std::string 
>> soplex::rationalToString(const soplex ::Rational&, int)’:
>> src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this 
>> scope
>>        tmpStream = fmemopen(tmpString, 63, "w");
>>                                               ^
>> Makefile:609: recipe for target 
>> 'obj/O.cygwin.x86_64.gnu.opt/lib/rational.o' fai led
>> make[3]: *** [obj/O.cygwin.x86_64.gnu.opt/lib/rational.o] Error 1
>> make[3]: Leaving directory '/scipoptsuite-3.2.1/soplex-2.2.1'
>> Makefile:473: recipe for target 'makelibfile' failed
>> make[2]: [makelibfile] Error 2 (ignored)
>> make[3]: Entering directory '/scipoptsuite-3.2.1/soplex-2.2.1'
>> -> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o
>> src/rational.cpp: In function ‘std::string 
>> soplex::rationalToString(const soplex::Rational&, int)’:
>> src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this 
>> scope
>>        tmpStream = fmemopen(tmpString, 63, "w");
>>
>>
>> How to I deal with this. Please help
>>
>>
>> Ahmed
>>
>>
>>
>> _______________________________________________
>> Scip mailing list
>> Scip at zib.de
>> http://listserv.zib.de/mailman/listinfo/scip
>
> -- 
> \__________________
>
> Matthias Miltenberger
> Zuse Institute Berlin
> Takustr. 7, 14195 Berlin
> www.zib.de/miltenberger
> miltenberger at zib.de
> +49 (30) 841 85-245

-- 
\__________________

Matthias Miltenberger
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
www.zib.de/miltenberger
miltenberger at zib.de
+49 (30) 841 85-245

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20160408/eb7b219d/attachment.html>
-------------- next part --------------
CPPFLAGS	+=	-m64 -D_WIN64
LDFLAGS		+=	-m64

ifneq ($(OPT),opt-gccold)
ifneq ($(OPT),dbg)
OFLAGS          +=      -mtune=native  # -malign-double -mcpu=pentium4
endif
endif

ifeq ($(SHARED),true)
LIBBUILDFLAGS	+=     	-m64
endif
-------------- next part --------------
#--- $Id: make.cygwin.x86.gnu.dbg,v 1.9 2014/01/12 11:07:04 bzfkocht Exp $
CPPFLAGS	+=	-DWINDOWS -DFREEMEM -D__NO_MATH_INLINES
CFLAGS		=	-O -g $(GCCWARN)
LDFLAGS		=	-lgmp -lm -static

ifeq ($(ZLIB),true)
LDFLAGS		+=	-lz
endif

-------------- next part --------------
#--- $Id: make.cygwin.x86.gnu.opt,v 1.9 2014/01/12 11:07:04 bzfkocht Exp $
CPPFLAGS	+=	-DWINDOWS -DNDEBUG -DNO_MSHELL -D__NO_MATH_INLINES
CFLAGS		=	-O3 -march=pentiumpro $(GCCWARN)
LDFLAGS		=	-lgmp -lm -static

ifeq ($(ZLIB),true)
LDFLAGS		+=	-lz
endif

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5169 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listserv.zib.de/pipermail/scip/attachments/20160408/eb7b219d/attachment.p7s>


More information about the Scip mailing list