[SCIP] Trying to compile SCIP under windows 7 x64
Rubén Ruiz
rruiz at eio.upv.es
Mon Jun 13 09:25:38 CEST 2016
Hi everyone, thank you for accepting the request to join the list,
After carefully installing minGW and SCIP, following these instructions:
http://scip.zib.de/doc/html/MAKE.php
I seem to have compiled and installed zlib-1.2.3, pcre-7.0-lib and
gmp-6.1.0.
When installing SCIP 3.2.1, the make READLINE=false in a MSYS window I
get this:
$ make READLINE=false
make[1]: Entering directory `/c/scip'
** Creating directory "/c/scip/scip-3.2.1/lib/zimplinc".
** Building SoPlex library
"/c/scip/soplex-2.2.1/lib/libsoplex.mingw.x86.gnu.opt
.a".
make[2]: Entering directory `/c/scip/soplex-2.2.1'
make[3]: Entering directory `/c/scip/soplex-2.2.1'
make[3]: Leaving directory `/c/scip/soplex-2.2.1'
make[3]: Entering directory `/c/scip/soplex-2.2.1'
-> compiling obj/O.mingw.x86.gnu.opt/lib/changesoplex.o
src/changesoplex.cpp:1: error: bad value (native) for -mtune= switch
make[3]: *** [obj/O.mingw.x86.gnu.opt/lib/changesoplex.o] Error 1
make[3]: Leaving directory `/c/scip/soplex-2.2.1'
make[2]: [makelibfile] Error 2 (ignored)
make[3]: Entering directory `/c/scip/soplex-2.2.1'
-> compiling obj/O.mingw.x86.gnu.opt/lib/changesoplex.o
src/changesoplex.cpp:1: error: bad value (native) for -mtune= switch
make[3]: *** [obj/O.mingw.x86.gnu.opt/lib/changesoplex.o] Error 1
make[3]: Leaving directory `/c/scip/soplex-2.2.1'
make[2]: [all] Error 2 (ignored)
make[2]: Leaving directory `/c/scip/soplex-2.2.1'
** Building ZIMPL library
"/c/scip/zimpl-3.3.3/lib/libzimpl.mingw.x86.gnu.opt.a"
.
make[2]: Entering directory `/c/scip/zimpl-3.3.3'
-> compiling obj/O.mingw.x86.gnu.normal.opt/iread.o
src/iread.c:40:18: zlib.h: No such file or directory
make[2]: *** [obj/O.mingw.x86.gnu.normal.opt/iread.o] Error 1
make[2]: Leaving directory `/c/scip/zimpl-3.3.3'
make[1]: *** [/c/scip/zimpl-3.3.3/lib/libzimpl.mingw.x86.gnu.opt.a] Error 2
make[1]: Leaving directory `/c/scip'
make: *** [scipbinary] Error 2
I am clueless about the inability to compile SOPLEX as those
-mtune=switch errors are killing me.
As for ZIMPL I do not understand why zlib.h is not present as this is
what I get when I compile zlib:
"
Ruben at CasaRuben /zlib-1.2.3-src/src/zlib/1.2.3/zlib-1.2.3
$ configure --prefix=/minGW
Checking for gcc...
Building static library libz.a version 1.2.3 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
Ruben at CasaRuben /zlib-1.2.3-src/src/zlib/1.2.3/zlib-1.2.3
$ make
gcc -O3 -DUSE_MMAP -c -o example.o example.c
gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c
gcc -O3 -DUSE_MMAP -c -o compress.o compress.c
gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c
gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c
gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c
gcc -O3 -DUSE_MMAP -c -o trees.o trees.c
gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c
gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c
gcc -O3 -DUSE_MMAP -c -o infback.o infback.c
gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o
trees.o zut
il.o inflate.o infback.o inftrees.o inffast.o
gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a
gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c
gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a
Ruben at CasaRuben /zlib-1.2.3-src/src/zlib/1.2.3/zlib-1.2.3
$ make install
cp zlib.h zconf.h /minGW/include
chmod 644 /minGW/include/zlib.h /minGW/include/zconf.h
cp libz.a /minGW/lib
cd /minGW/lib; chmod 755 libz.a
cd /minGW/lib; if test -f libz.so.1.2.3; then \
rm -f libz.so libz.so.1; \
ln -s libz.so.1.2.3 libz.so; \
ln -s libz.so.1.2.3 libz.so.1; \
(ldconfig || true) >/dev/null 2>&1; \
fi
cp zlib.3 /minGW/share/man/man3
chmod 644 /minGW/share/man/man3/zlib.3
Ruben at CasaRuben /zlib-1.2.3-src/src/zlib/1.2.3/zlib-1.2.3
"
The system's path environment var contains:
C:\MinGW;
C:\MinGW\lib;
C:\MinGW\bin;
C:\MinGW\msys\1.0;
C:\MinGW\msys\1.0\bin;
C:\MinGW\msys\1.0\local\bin;
C:\scip\src\objscip;
C:\scip\src\scip;
C:\scip\src;
C:\scip;
Any idea where I am goofing up?
I need to compile a code that uses SCIP. It is not my code but somebody
else's and it was compiled under linux (Debian). I want to compile it in
windows and the first step is to compile SCIP.
I have installed Debian 8.5 distro on a VM using VirtualBox and have
managed to install SCIP, but I had to use make ZLIB=false READLINE=false
ZIMPL=false (even after downloading, compiling all installing zlib,
pcre, gmp and readline) but that is for another post... Also for another
post the possibility of cross-compiling to Windows on Debian...
Thank you very much in advance. Your help is very much appreciated.
Best,
--
Rubén Ruiz García
Full Professor. Head of the Applied Optimization Systems Group
<http://soa.iti.es>
Department of Applied Statistics, Operations Research and Quality
Universitat Politècnica de València <http://www.upv.es/>
Camino de Vera s/n, Edificio 7A, 46022, Valencia, Spain
rruiz at eio.upv.es <mailto:rruiz at eio.upv.es>
http://soa.iti.es/rruiz
Editor-in-Chief
Operations Research Perspectives
<http://www.journals.elsevier.com/operations-research-perspectives/>
Operations Research Perspectives
<http://www.journals.elsevier.com/operations-research-perspectives/>
European Journal of Industrial Engineering
<http://www.inderscience.com/ejie>
--
I am a great believer in luck, and I find that the harder I work, the
more I have of it.
Thomas Jefferson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20160613/5edc7d23/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ORP_banner2.jpg
Type: image/jpeg
Size: 70504 bytes
Desc: not available
URL: <http://listserv.zib.de/pipermail/scip/attachments/20160613/5edc7d23/attachment.jpg>
More information about the Scip
mailing list