<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\B9D1\C740 \ACE0\B515";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@\B9D1\C740 \ACE0\B515";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:85.05pt 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">(I am sending this email again after getting delivery failure alarm. If you got the duplicate emails, please disregard it. Sorry about the inconvenience)
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thank you, Stefan. <o:p></o:p></p>
<p class="MsoPlainText">I resolved the problem with copying the CPLEX library and include directory into SCIP directory.
<o:p></o:p></p>
<p class="MsoPlainText">But I need to ask another fundamental installation question.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I want to build SCIPoptsuite linking Cplex as LP solver with CMake.
<o:p></o:p></p>
<p class="MsoPlainText">(I intend to use SCIP Python interface, pyscipopt. The website said Makefile system is not compatible with PySCIPOPT.
<o:p></o:p></p>
<p class="MsoPlainText"><a href="https://github.com/SCIP-Interfaces/PySCIPOpt/blob/master/INSTALL.md">https://github.com/SCIP-Interfaces/PySCIPOpt/blob/master/INSTALL.md</a> )<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">From other mails in this archives, I found you suggested compiling it under MinGW, MSys, or MSys2 to install on Windows, which is Makefile system.  Given these conditions and answers from this archive, I have a few question about installation
 on Windows.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">1) Can I install SCIPoptsuite with lpx=cpx  using CMake On Window? If not, I would find a Linux server without wasting more time on it.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">2) Can I use pre-built SCIPoptsuite and set Cplex as LPsolver?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">3) I actually tried to install it with CMake, but since I wanted to make it as simple as possible, I set the most parameters as off besides SCIP.
<o:p></o:p></p>
<p class="MsoPlainText">(  cmake -Bbuild -H. -DZLIB=off -DREADLINE=off -DZIMPL=off -DGMP=off -DLPS=cpx -DSOPLEX=off -DGCG = off)  and added the CPLEX_INCLUDE path and CPLEX_LIBRARY path ( copied the file and paste it into SCIP directory and use those path).<o:p></o:p></p>
<p class="MsoPlainText">Then, I got a bunch of unresolved external symbol error such as following error from the Visual studio.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Severity               Code     Description         Project File         Line        Suppression State<o:p></o:p></p>
<p class="MsoPlainText">Error      LNK2019               unresolved external symbol __imp__CPXaddcols@44 referenced in function _SCIPlpiAddCols                scip        C:\Program Files\scipoptsuite-7.0.0\build\scip\src\lpi_cpx.obj    1             
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">It seems like it also needs cplex.dll as well as cplex.lib to link them. I tried to add it to Debug folder inside the build directory, but it still has an error.<o:p></o:p></p>
<p class="MsoPlainText">I would appreciate any help.<o:p></o:p></p>
<p class="MsoPlainText">Thank you<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Best,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">Subject: Re: [SCIP] Installing SCIP linking CPLEX 12.8 under Windows using MinGW<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">that paragraph in "Remarks on Installing under Windows using MinGW"
<o:p></o:p></p>
<p class="MsoPlainText">probably refers to a pretty old MinGW version. It was untouched since 2009.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">SCIP tries to create a softlink lib/include/cpxinc that points to C:/Program Files/IBM/ILOG/CPLEX_Studio129/cplex/include/ilcplex/. This never worked reliably for me. Try to just copy the directory C:/Program Files/IBM/ILOG/CPLEX_Studio129/cplex/include/ilcplex/
 to lib/include/cpxinc instead.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Best,<o:p></o:p></p>
<p class="MsoPlainText">Stefan<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On 5/16/20 6:54 PM, Shin, Jungeun wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Hi,<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> I have been trying to install SCIP with Cplex 12.8 on Windows using MinGW and have some questions.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>    1.  I don't quite understand the following part of the "Remarks on Installing under Windows using MinGW" from installation information of your website.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> " Second you need to copy the file sh.exe to bash.exe otherwise various scripts (including makefiles) will not work. Normally unistd.h covers also the getopt-options, but for mingw you need to add the entry #include <getopt.h> into
 "/mingw/include/unistd.h" after the other include-entries (if not present)."<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> What does it mean by copying the file sh.exe to bash.exe? Does it mean to change the file name? Also, there is no unistd.h file in my ""/mingw/include/".<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Directory of C:\msys\mingw32\include<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> 05/05/2020  11:01 AM    <DIR>          .<o:p></o:p></p>
<p class="MsoPlainText">> 05/05/2020  11:01 AM    <DIR>          ..<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:34 PM            13,037 ansidecl.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:34 PM           262,716 bfd.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:34 PM            34,356 bfdlink.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:35 PM            14,771 dis-asm.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/05/2020  11:01 AM    <DIR>          gdb<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:36 PM             2,912 gnumake.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/05/2020  11:01 AM    <DIR>          libiberty<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  08:28 PM             3,700 libmangle.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:34 PM            14,593 plugin-api.h<o:p></o:p></p>
<p class="MsoPlainText">> 05/11/2018  09:34 PM             2,191 symcat.h<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>    1.  I proceeded to installation ignoring the part described in 1). Then, I encountered the following error, saying that my cplex directory is not a directory. Can this error related to bash.exe? or did I use wrong path?<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> C:\Program Files\scip-7.0.0>make ZLIB=false READLINE=false GMP=false
<o:p></o:p></p>
<p class="MsoPlainText">> LPS=cpx<o:p></o:p></p>
<p class="MsoPlainText">> -> generating necessary links<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> - Current settings: LPS=cpx OSTYPE=mingw ARCH=x86 COMP=gnu
<o:p></o:p></p>
<p class="MsoPlainText">> SHARED=false SUFFIX= ZIMPL=false ZIMPLOPT=opt IPOPT=false IPOPTOPT=opt
<o:p></o:p></p>
<p class="MsoPlainText">> WORHP=false WORHPOPT=opt FILTERSQP=false EXPRINT=cppad GAMS=false
<o:p></o:p></p>
<p class="MsoPlainText">> SYM=none<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> * SCIP needs some softlinks to external programs, in particular, LP-solvers.<o:p></o:p></p>
<p class="MsoPlainText">> * Please insert the paths to the corresponding directories/libraries below.<o:p></o:p></p>
<p class="MsoPlainText">> * The links will be installed in the 'lib/include' and 'lib/static' directories.<o:p></o:p></p>
<p class="MsoPlainText">> * For more information and if you experience problems see the INSTALL file.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>    -> "cpxinc" is the path to the CPLEX "include" directory, e.g., "<CPLEX-path>/include/ilcplex".<o:p></o:p></p>
<p class="MsoPlainText">>    -> "libcplex.*.a" is the path to the CPLEX library, e.g., "<CPLEX-path>/lib/x86-64_linux/static_pic/libcplex.a"<o:p></o:p></p>
<p class="MsoPlainText">>    -> "libcplex.*.so" is the path to the CPLEX library, e.g., "<CPLEX-path>/bin/x86-64_linux/libcplex1263.so"<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>> Enter soft-link target file or directory for "lib/include/cpxinc" (return if not needed):<o:p></o:p></p>
<p class="MsoPlainText">>> C:/Program Files/IBM/ILOG/CPLEX_Studio129/cplex/include/ilcplex/<o:p></o:p></p>
<p class="MsoPlainText">> -> creating softlink "lib/include/cpxinc" -> "C:/Program Files/IBM/ILOG/CPLEX_Studio129/cplex/include/ilcplex/"<o:p></o:p></p>
<p class="MsoPlainText">> ln: target `lib/include/cpxinc' is not a directory<o:p></o:p></p>
<p class="MsoPlainText">> make[2]: *** [lib/include/cpxinc] Error 1<o:p></o:p></p>
<p class="MsoPlainText">> make[1]: ***<o:p></o:p></p>
<p class="MsoPlainText">> [lib/static/linkscreated.cpx-opt.mingw.x86.gnu.false-opt.false-opt.fal<o:p></o:p></p>
<p class="MsoPlainText">> se.false.none.false] Error 2<o:p></o:p></p>
<p class="MsoPlainText">> make: *** [preprocess] Error 2<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>