[Scip] scip-3.0.1: recipe for target `scipbinary' failed with visual c++

Mengda Wu phdggg at gmail.com
Tue Feb 19 22:38:04 MET 2013


OK. It works if I manual copying of soplex-1.7.1/src to
scip-3.0.1/lib/spxinc.

I found the problem. In scipoptsuite-3.0.1/Makefile.doit:

$(SOPLEXINCLINK):    softlinkmsg $(SCIPDIR)
        @rm -f $@
        @$(LN_s) -s $(SOPLEXINC) $@

The extra "-s" after $(LN_s) makes "cp -r" still make symlinks. You need to
remove it.

Also, for all the "rm -f" in Makefile.doit to remove directory. It's better
to use "rm -rf" to make it work.

Thanks,
Mengda

On Tue, Feb 19, 2013 at 2:07 PM, Stefan Vigerske
<stefan at math.hu-berlin.de>wrote:

> Hi,
>
> That sounds familar.
> Maybe there is still a problem with symlinks vs. real copies.
>
> Last time (8/8/12) you wrote:
> I found the problem why "spxinc" cannot be found by "cl". Cygwin "ln -s"
> by default creates symlinks that Windows (as well as "cl") cannot recognize
> (http://cygwin.com/cygwin-ug-**net/using-effectively.html<http://cygwin.com/cygwin-ug-net/using-effectively.html>).
> In my case, the "spxinc" was created in scipoptsuite-3.0.0/Makefile.**doit,
> which happens to use "ln -s". If I change "ln -s" to "cp -r", then
> everything works.
>
> SCIP optsuite 3.0.1 should have fixed that, so cp -r should have been used
> to create the spxinc directory. Can you verify that?
>
> Also, just try a manual copying of soplex-1.7.1/src to
> scip-3.0.1/lib/spxinc.
>
> Stefan
>
>
> On 02/19/2013 07:45 PM, Mengda Wu wrote:
>
>> Hi all,
>>
>>     I am trying to compile scip-3.0.0 using SCIP Optimization
>> Suite<http://scip.zib.de/**download.php?fname=**scipoptsuite-3.0.0.tgz<http://scip.zib.de/download.php?fname=scipoptsuite-3.0.0.tgz>
>> >.
>>
>> My platform is Visual c++ 2008 + Cygwin. I am using the command "make
>> OSTYPE=mingw ARCH=x86 COMP=cl OPT=opt ZIMPL=false".
>> The following libraries are compiled fine:
>>
>>     libobjscip-3.0.1.mingw.x86.cl.**opt.lib
>>     libscip-3.0.1.mingw.x86.cl.**opt.lib
>>     libsoplex.mingw.x86.cl.opt.lib
>>
>>     But I got some errors after that:
>>
>>     -> generating library lib/libobjscip-3.0.1.mingw.**x86.cl.opt.lib
>> -> compiling obj/O.mingw.x86.cl.opt/lib/**scip/lpi_spx.o
>> lpi_spx.cpp
>> lib/spxinc\spxsolver.h(1) : error C2059: syntax error : '<'
>> src/scip/lpi_spx.cpp(85) : fatal error C1189: #error :  "This interface is
>> not c
>> ompatible with SoPlex versions prior to 1.4"
>> Makefile:1074: recipe for target
>> `obj/O.mingw.x86.cl.opt/lib/**scip/lpi_spx.o' fai
>> led
>> make[2]: *** [obj/O.mingw.x86.cl.opt/lib/**scip/lpi_spx.o] Error 2
>> make[2]: Leaving directory
>> `/cygdrive/d/Library/SCIP/**download/scipoptsuite-3.0.1
>> /scip-3.0.1'
>> Makefile.doit:201: recipe for target `scipbinary' failed
>> make[1]: *** [scipbinary] Error 2
>> make[1]: Leaving directory
>> `/cygdrive/d/Library/SCIP/**download/scipoptsuite-3.0.1
>> '
>> Makefile:74: recipe for target `scipbinary' failed
>> make: *** [scipbinary] Error 2
>>
>>     I think the problem is related to the symlinks created by Cygwin for
>> files under scipoptsuite-3.0.1/scip-3.0.1/**lib/spxinc. When I open
>> scipoptsuite-3.0.1\scip-3.0.1\**lib\spxinc\spxsolver.h, all it has is
>> !<symlink> and some garbage characters.
>>
>> Thanks,
>> Mengda
>>
>>
>>
>> ______________________________**_________________
>> Scip mailing list
>> Scip at zib.de
>> http://listserv.zib.de/**mailman/listinfo/scip<http://listserv.zib.de/mailman/listinfo/scip>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.zib.de/mailman/private/scip/attachments/20130219/b1707def/attachment.html


More information about the Scip mailing list