<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Peter,</p>
<p><br>
The log with the build 1.81 looks good I would say. <br>
The Component "program_options" is missing: <span style="font-family: sans-serif; font-size: 13.3333px;">The program_options library allows program developers to obtain </span><span class="emphasis" style="font-family: sans-serif; font-size: 13.3333px;"><em>program
option.</em></span><br>
If you want to use PaPILO only as a library this component is obviously not needed.<br>
Unfortunately, in PaPILO 2.1.2 this component is still labeled as REQUIRED. But on the current develop-branch, we made this optional. ( with the downside that you can not use PaPILO via command-line anymore.)<br>
If you are using the develop branch and try to build PaPILO with this branch? <a href="https://github.com/scipopt/papilo/tree/develop" class="OWAAutoLink" id="LPlnk658158">https://github.com/scipopt/papilo/tree/develop</a><br>
<br>
> <span style="color: rgb(33, 33, 33); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;">With this one I can build papilo successfully.</span></p>
<div><br>
That's great. I probably guess that program options are present there.<br>
<br>
<br>
> <span style="color: rgb(33, 33, 33); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;">The next step is building scip.but unfortunately this gives the following error:</span>
<div><br>
Could you maybe provide more information? The CMake command that you used and the log until the crash. That would be great.<br>
<br>
/Alex<br>
<br>
P.S: Adding -DPAPILO=off disables PaPILO in SCIP and you should be able to build SCIP successfully, if you want to use SCIP immediately.</div>
</div>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Peter Notebaert <mail@peno.be><br>
<b>Sent:</b> Thursday, July 27, 2023 11:27:16 PM<br>
<b>To:</b> Hoen, Alexander<br>
<b>Cc:</b> scip-bounces@zib.de<br>
<b>Subject:</b> Re: [SCIP] compile scip with papilo</font>
<div> </div>
</div>
<div>
<div dir="ltr">Thank you,
<div><br>
</div>
<div>I downloaded boost from <a rel="nofollow noreferrer noopener" href="https://www.boost.org/" style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:12pt" target="_blank">https://www.boost.org/</a></div>
<div><br>
</div>
<div>I first tried with boost 1.81:</div>
<div><br>
</div>
<div>C:\git\papilo\build>cmake .. -DBOOST_ROOT=c:\git\boost_1_81_0<br>
-- Building for: Visual Studio 17 2022<br>
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.<br>
-- The C compiler identification is MSVC 19.35.32215.0<br>
-- The CXX compiler identification is MSVC 19.35.32215.0<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):<br>
Could NOT find Boost (missing: program_options) (found suitable version<br>
"1.81.0", minimum required is "1.65")<br>
Call Stack (most recent call first):<br>
C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)<br>
C:/Program Files/CMake/share/cmake-3.26/Modules/FindBoost.cmake:2377 (find_package_handle_standard_args)<br>
CMakeLists.txt:50 (find_package)<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
</div>
<div><br>
</div>
<div>So it says:</div>
<div><br>
</div>
<div>CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):<br>
Could NOT find Boost (missing: program_options) (found suitable version<br>
"1.81.0", minimum required is "1.65")<br>
</div>
<div><br>
</div>
<div>I also tried version 1.65:</div>
<div><br>
</div>
<div>C:\git\papilo\build>cmake .. -DBOOST_ROOT=c:\git\boost_1_65_0<br>
-- Building for: Visual Studio 17 2022<br>
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.<br>
-- The C compiler identification is MSVC 19.35.32215.0<br>
-- The CXX compiler identification is MSVC 19.35.32215.0<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):<br>
Could NOT find Boost (missing: program_options) (found suitable version<br>
"1.65.0", minimum required is "1.65")<br>
Call Stack (most recent call first):<br>
C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)<br>
C:/Program Files/CMake/share/cmake-3.26/Modules/FindBoost.cmake:2377 (find_package_handle_standard_args)<br>
CMakeLists.txt:50 (find_package)<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
</div>
<div><br>
</div>
<div>I read that other people have the same issue. </div>
<div><br>
</div>
<div>Therefore I downloaded boost from <a href="https://sourceforge.net/projects/boost/which">https://sourceforge.net/projects/boost/which</a> is an already build version.</div>
<div><br>
</div>
<div>With this one I can build papilo successfully.</div>
<div><br>
</div>
<div>The next step is building scip.but unfortunately this gives the following error:</div>
<div><br>
</div>
<div>presol_milp.obj : error LNK2019: unresolved external symbol "public: __cdecl boost::archive::codecvt_null<wchar_t>::cod<br>
ecvt_null<wchar_t>(unsigned __int64)" (??0?$codecvt_null@_W@archive@boost@@QEAA@_K@Z) referenced in function "public: v<br>
oid __cdecl boost::archive::codecvt_null<wchar_t>::`default constructor closure'(void)" (??_F?$codecvt_null@_W@archive@<br>
boost@@QEAAXXZ) [C:\git\scip\buildpapilo\src\scip.vcxproj]<br>
C:\git\scip\buildpapilo\bin\Release\scip.exe : fatal error LNK1120: 1 unresolved externals [C:\git\scip\buildpapilo\src<br>
\scip.vcxproj]</div>
<div><br>
</div>
<div>Any idea?</div>
<div><br>
</div>
<div>Peter</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, 21 Jul 2023 at 14:56, Hoen, Alexander <<a href="mailto:hoen@zib.de" target="_blank">hoen@zib.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div id="m_3944347406525372927m_-6842164691061472497divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p></p>
<p dir="auto">Hello Peter, <br>
<br>
sorry for taking a while for answering your question.<br>
<span style="font-size:12pt"><br>
> Do I have to build papilo first before I can link it to scip?</span></p>
<p dir="auto"><span style="font-size:12pt"></span><span style="font-size:12pt">> Well I tried that but no luck there also. I looks like papilo also needs boost which I got from
</span><a rel="nofollow noreferrer noopener" href="https://github.com/boostorg/boost" style="font-size:12pt" target="_blank">https://github.com/boostorg/boost</a><br>
<span style="font-size:12pt">> I use the following command for this:<br>
</span><span style="font-size:12pt">> cmake .. -DBoost_INCLUDE_DIR=C:\git\boost\libs\config\include -DBOOST_ROOT=C:\git\boost</span></p>
<p dir="auto"><br>
</p>
<p dir="auto"><span style="font-size:12pt">Yes PaPILO needs Boost and PaPILO needs to build before linking it to SCIP (-DPAPILO_DIR=.../papilo/build).<br>
<br>
I would recommend downloading Boost from </span><a rel="nofollow noreferrer noopener" href="https://www.boost.org/" style="font-size:12pt" target="_blank">https://www.boost.org/</a><span style="font-size:12pt">. </span></p>
<p dir="auto"><span style="font-size:12pt">For Ubuntu you are just fine with extracting the gz-filed and then set the BOOST_ROOT path to this extracted folder: -DBOOST_ROOT=PATH_TO_FOLDER .</span></p>
<p dir="auto">We would not recommend using the newest versions (>= 1.82). Please use the version 1.81 or even an older one.</p>
<p dir="auto"><br>
</p>
<p dir="auto">I hope this helps. Otherwise do not hesitate to ask.</p>
<p dir="auto"><br>
</p>
<p dir="auto">Best regards,<br>
<br>
Alex</p>
<br>
<div style="color:rgb(0,0,0)">
<div>
<div id="m_3944347406525372927m_-6842164691061472497divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_3944347406525372927m_-6842164691061472497divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Scip <<a href="mailto:scip-bounces@zib.de" target="_blank">scip-bounces@zib.de</a>> on behalf of
Peter Notebaert <<a href="mailto:mail@peno.be" target="_blank">mail@peno.be</a>><br>
<b>Sent:</b> Tuesday, July 4, 2023 12:42 PM<br>
<b>To:</b> <a href="mailto:scip@zib.de" target="_blank">scip@zib.de</a><br>
<b>Subject:</b> [SCIP] compile scip with papilo</font>
<div> </div>
</div>
<div>
<div dir="ltr">I want to compile scip myself and I partly succeeded in it.<br>
<br>
First I installed soplex from github:<br>
<br>
git clone <a href="https://github.com/scipopt/soplex.git" id="m_3944347406525372927m_-6842164691061472497LPlnk131864" target="_blank">
https://github.com/scipopt/soplex.git</a><br>
<br>
Then I compiled soplex with the following commands:<br>
<br>
cd soplex<br>
cmake -Bbuild -H.<br>
cmake --build build --config Release<br>
<br>
This succeeds and I can optimize something with soplex<br>
<br>
Then I want to build scip. I got the code from github:<br>
<br>
git clone <a href="https://github.com/scipopt/scip.git" id="m_3944347406525372927m_-6842164691061472497LPlnk596283" target="_blank">
https://github.com/scipopt/scip.git</a><br>
<br>
I can then compile scip as follows:<br>
<br>
cd scip<br>
cmake -Bbuild -H. -DSOPLEX_DIR=..\soplex\build -DZLIB=off -DREADLINE=off -DGMP=off -DPAPILO=off -DZIMPL=off -DIPOPT=off<br>
cmake --build build --config Release<br>
<br>
This compiles again with microsoft visual studio 2017.<br>
<br>
However this gave an error which I already reported previously and will be fixed.
<div><br>
</div>
<div>Specifically:<br>
<br>
return this->_tolerances == nullptr ? R(0) : this->tolerances()->epsilon();<br>
<br>
I changed to:<br>
<br>
return this->_tolerances == nullptr ? R(0) : (R)this->tolerances()->epsilon();<br>
<br>
And then everything compiles fine.<br>
<br>
</div>
<div>But anyway, this successfully compiles scip and I can successfully use it.<br>
<br>
But now I also want to link with papilo. I got the code from <a href="https://github.com/scipopt/papilo" target="_blank">
https://github.com/scipopt/papilo</a><br>
<br>
I compile scip with:<br>
<br>
cmake -Bbuildpapilo -H. -DSOPLEX_DIR=..\soplex\build -DPAPILO_DIR=..\papilo -DZLIB=off -DREADLINE=off -DGMP=off -DZIMPL=off -DIPOPT=off<br>
<br>
But that gives an error:<br>
<br>
-- Finding PAPILO<br>
-- Could NOT find PAPILO (missing: PAPILO_DIR)<br>
CMake Error at CMakeLists.txt:427 (message):<br>
PAPILO not found, try specifying PAPILO_DIR.<br>
<br>
Do I have to build papilo first before I can link it to scip?<br>
<br>
Well I tried that but no luck there also. I looks like papilo also needs boost which I got from
<a href="https://github.com/boostorg/boost" target="_blank">https://github.com/boostorg/boost</a><br>
<br>
I use the following command for this:<br>
<br>
cmake .. -DBoost_INCLUDE_DIR=C:\git\boost\libs\config\include -DBOOST_ROOT=C:\git\boost<br>
<br>
But I also get an error here which I can't figure out:<br>
<br>
CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):<br>
Could NOT find Boost (missing: program_options) (found suitable version<br>
"1.83.0", minimum required is "1.65")<br>
Call Stack (most recent call first):<br>
C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)<br>
C:/Program Files/CMake/share/cmake-3.26/Modules/FindBoost.cmake:2377 (find_package_handle_standard_args)<br>
CMakeLists.txt:50 (find_package)<br>
<br>
I am out of ideas now...<br>
<br>
Can someone help please?<br>
</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Peter Notebaert</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>