[Scip] Fwd: SCIP installation

Stefan Vigerske stefan at math.hu-berlin.de
Wed Aug 15 09:36:36 MEST 2012


Hi,

On 08/15/2012 01:12 AM, Jose L Walteros wrote:
> Hi, I do have pcre installed.
>
> I now have the following error
>
> ** Building ZIMPL library
> "/c/GNU/SCIP/scipoptsuite-3.0.0/zimpl-3.3.0/lib/libzim
> pl.mingw.x86.gnu.opt.a".
> make[2]: Entering directory `/c/GNU/SCIP/scipoptsuite-3.0.0/zimpl-3.3.0'
> -> linking bin/zimpl-3.3.0.mingw.x86.gnu.normal.opt
> c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../..\libpcreposix.a(pcreposix.o):pcrep
> osix.c:(.text+0xd3): undefined reference to `__imp__pcre_free'
> c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../..\libpcreposix.a(pcreposix.o):pcrep
> osix.c:(.text+0x14c): undefined reference to `__imp__pcre_compile2'
> c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../..\libpcreposix.a(pcreposix.o):pcrep
> osix.c:(.text+0x179): undefined reference to `__imp__pcre_fullinfo'
> c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../..\libpcreposix.a(pcreposix.o):pcrep
> osix.c:(.text+0x2c8): undefined reference to `__imp__pcre_exec'
> collect2.exe: error: ld returned 1 exit status
> make[2]: *** [bin/zimpl-3.3.0.mingw.x86.gnu.normal.opt] Error 1
> make[2]: Leaving directory `/c/GNU/SCIP/scipoptsuite-3.0.0/zimpl-3.3.0'
> make[1]: ***
> [/c/GNU/SCIP/scipoptsuite-3.0.0/zimpl-3.3.0/lib/libzimpl.mingw.x86.
> gnu.opt.a] Error 2
> make[1]: Leaving directory `/c/GNU/SCIP/scipoptsuite-3.0.0'
> make: *** [scipbinary] Error 2

Maybe you need a make clean before rebuilding with READLINE=false 
USRFLAGS=-DWITH_PCRE


> And unfortunately I need ZIMPL since it is required for the vardata in the
> binpacking example.

No, it is not. The binpacking example does not need ZIMPL.

Note, that when you build the example, you need to pass in the same 
flags to make as for building the SCIP library (esp. ZIMPL=false).

> I generally code on a mac, where I already was able to prototype several
> BCP using SCIP, but the new computer I was assigned to in the lab is a W7
> pc. I was planning to use eclipse c/c++ for coding my own problem (I can
> also use VS2010, but i prefer avoiding it).
>
> Has anybody been able to compile it using eclipse or VS that could help me
> in case does not compile via mingw.

There are SCIP libraries (including ZIMPL) build with MSVS on the SCIP 
download page. If you can switch to the MS compiler, you could just use 
these, probably also when using Eclipse as editor.

The MinGW setup with cl, icl, or gcc should work if you disable ZIMPL, 
at least.

Stefan

>
> thanks a lot. I really appreciate it.
>
> -J
>
> On Tue, Aug 14, 2012 at 4:39 PM, <michael.winkler at zib.de> wrote:
>
>> Hi,
>>
>> in advance to the previous changes please compile with:
>>
>> make READLINE=false USRFLAGS=-DWITH_PCRE
>>
>> and probably you will need the pcre library for windows.
>>
>> http://gnuwin32.sourceforge.net/packages/pcre.htm
>>
>> or if you do not ZIMPL then compile with
>>
>> make ZIMPL=false READLINE=false
>>
>>
>> Best, Michael
>>
>>
>>> Hi, it start compiling but now, I have this error
>>>
>>> src/iread.c:37:19: fatal error: regex.h: No such file or directory
>>> compilation terminated.
>>> make[2]: *** [obj/O.mingw.x86.gnu.normal.opt/iread.o] Error 1
>>> make[2]: Leaving directory `/c/GNU/SCIP/scipoptsuite-3.0.0/zimpl-3.3.0'
>>> make[1]: ***
>>> [/c/GNU/SCIP/scipoptsuite-3.0.0/zimpl-3.3.0/lib/libzimpl.mingw.x86.
>>> gnu.opt.a] Error 2
>>> make[1]: Leaving directory `/c/GNU/SCIP/scipoptsuite-3.0.0'
>>> make: *** [scipbinary] Error 2
>>>
>>>
>>>
>>>
>>> On Tue, Aug 14, 2012 at 3:42 PM, <michael.winkler at zib.de> wrote:
>>>
>>>> Hi,
>>>>
>>>> please try the following:
>>>>
>>>> replace in the ZIMPL directory inside the Makefile
>>>>
>>>> OSTYPE          :=      $(shell uname -s | \
>>>>                          tr '[:upper:]' '[:lower:]' | \
>>>>                          tr '/' '_' | \
>>>>                          sed \
>>>>                          -e s/cygwin.*/cygwin/ \
>>>>                          -e s/irix../irix/ )
>>>>
>>>> by
>>>>
>>>> OSTYPE          :=      $(shell uname -s | tr '[:upper:]' '[:lower:]' |
>>>> \
>>>>                          sed \
>>>>                          -e 's/cygwin.*/cygwin/' \
>>>>                          -e 's/irix../irix/' \
>>>>                          -e 's/windows.*/windows/' \
>>>>                          -e 's/mingw.*/mingw/')
>>>>
>>>>
>>>> and rename under the ZIMPL directory
>>>>
>>>> make/make.mingw32_nt-5.1.x86.gnu.dbg -> make/make.mingw.x86.gnu.dbg
>>>> make/make.mingw32_nt-5.1.x86.gnu.opt -> make/make.mingw.x86.gnu.opt
>>>>
>>>>
>>>> Best, Michael
>>>>
>>>>
>>>>> ---------- Forwarded message ----------
>>>>> From: Jose L Walteros <jl.walteros at gmail.com>
>>>>> Date: Tue, Aug 14, 2012 at 2:08 PM
>>>>> Subject: Re: [Scip] SCIP installation
>>>>> To: Stefan Vigerske <stefan at math.hu-berlin.de>
>>>>>
>>>>>
>>>>> Hi Stefan,
>>>>>
>>>>>
>>>>> No, it didn't work I got:
>>>>>
>>>>> make READLINE=false ARCH=mingw32_nt-5.1
>>>>> make[1]: Entering directory `/c/GNU/SCIP/scipoptsuite-3.0.0'
>>>>> /c/GNU/SCIP/scipoptsuite-3.0.0/scip-3.0.0/make/make.project:146:
>>>>> /c/GNU/SCIP/sci
>>>>> poptsuite-3.0.0/scip-3.0.0/make/make.mingw.mingw32_nt-5.1.gnu.opt: No
>>>> such
>>>>> file
>>>>> or directory
>>>>> /c/GNU/SCIP/scipoptsuite-3.0.0/scip-3.0.0/make/make.project:297: ***
>>>> ZIMPL
>>>>> requi
>>>>> res the ZLIB to be linked. Use either ZIMPL=false or ZLIB=true.  Stop.
>>>>> make[1]: Leaving directory `/c/GNU/SCIP/scipoptsuite-3.0.0'
>>>>>
>>>>>
>>>>> The problem begins when ZIMPL is being compiled. Is there anything
>>>> that I
>>>>> can change in the ZIMPL makefile that you can think of?
>>>>>
>>>>> I compiled it with
>>>>>
>>>>> ZIMPL=false ZLIB=false READLINE=false and it worked, but when I tried
>>>> to
>>>>> compile the bin-packing example it didn't worked. I assume it requires
>>>>> ZIMPL for the input files, right?
>>>>>
>>>>> Any suggestions?
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Aug 14, 2012 at 1:56 PM, Stefan Vigerske
>>>>> <stefan at math.hu-berlin.de>wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> try
>>>>>>
>>>>>> make READLINE=false ARCH=mingw32_nt-5.1
>>>>>>
>>>>>> But I think that this configuration hasn't been tested for a while.
>>>>>>
>>>>>> Stefan
>>>>>>
>>>>>>
>>>>>> On 08/14/2012 07:18 PM, Jose L Walteros wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I am trying to install the latest version of SCIP Optimization Suit
>>>>>>> 3.0.0
>>>>>>> for windows using minGW 5.0.5. I have already installed ZLib and GMP
>>>> (I
>>>>>>> double checked and the .h and .a are in the correct place).
>>>> Everything
>>>>>>> seems to be in place to me. However, when I am trying to install
>>>> SCIP
>>>>>>> using
>>>>>>>
>>>>>>> make READLINE=false
>>>>>>>
>>>>>>> I get the following error while building the ZIMPL library:
>>>>>>>
>>>>>>>
>>>>>>> ** Building ZIMPL library
>>>>>>> "/c/GNU/SCIP/scipoptsuite-3.0.**0/zimpl-3.3.0/lib/libzim
>>>>>>> pl.mingw.x86.gnu.opt.a".
>>>>>>> make[2]: Entering directory `/c/GNU/SCIP/scipoptsuite-3.0.**
>>>>>>> 0/zimpl-3.3.0'
>>>>>>> Makefile:126: make/make.mingw32_nt-6.1.x86.**gnu.opt: No such file
>>>> or
>>>>>>> directory
>>>>>>> make[2]: *** No rule to make target `make/make.mingw32_nt-6.1.x86.**
>>>>>>> gnu.opt'.
>>>>>>>    Sto
>>>>>>> p.
>>>>>>> make[2]: Leaving directory
>>>>>>> `/c/GNU/SCIP/scipoptsuite-3.0.**0/zimpl-3.3.0'
>>>>>>> make[1]: ***
>>>>>>>
>> [/c/GNU/SCIP/scipoptsuite-3.0.**0/zimpl-3.3.0/lib/libzimpl.**mingw.x86.
>>>>>>> gnu.opt.a] Error 2
>>>>>>> make[1]: Leaving directory `/c/GNU/SCIP/scipoptsuite-3.0.**0'
>>>>>>> make: *** [scipbinary] Error 2
>>>>>>>
>>>>>>>
>>>>>>> I checked the directory: make/ and indeed the file:
>>>>>>>
>>>>>>> make.mingw32_nt-6.1.x86.gnu.**opt
>>>>>>>
>>>>>>> does not exists there, however there is a file
>>>>>>>
>>>>>>> make.mingw32_nt-5.1.x86.gnu.**opt
>>>>>>>
>>>>>>> Could you please help me with this?
>>>>>>>
>>>>>>> -J
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ______________________________**_________________
>>>>>>> Scip mailing list
>>>>>>> Scip at zib.de
>>>>>>> http://listserv.zib.de/**mailman/listinfo/scip<
>>>> http://listserv.zib.de/mailman/listinfo/scip>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Scip mailing list
>>>>> Scip at zib.de
>>>>> http://listserv.zib.de/mailman/listinfo/scip
>>>>>
>>>>
>>>>
>>>
>>
>>
>
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>



More information about the Scip mailing list