[SCIP] Compiling SCIP feature extractor

Gregor Hendel hendel at zib.de
Fri Jan 24 10:40:26 CET 2020


Hi Zachary,

it seems that you are building SCIP using its Makefile build system, not 
through CMake. At the risk of repeating myself, this is not recommended. 
Please build SCIP with CMake (the easiest is to download the 
Optimization Suite and compile it alltogether), then make install (also 
within the build directory, not from the SCIP root!).

Then, execute:

cd feature-extractor/
mkdir build
cd build/
cmake .. [-DCMAKE_PREFIX_PATH=~/workspace/scip[-optsuite]/build]
make

Note that the prefix path specification is not necessary, if you install 
SCIP to a default system location via make install.

Happy Feature Extraction,
Gregor

Am 23.01.20 um 18:22 schrieb Zachary Steever:
> My apologies,
>
> The error has changed, slightly. The scip_export.h header file is not 
> located in the /usr/local/include/scip/ directory, despite specifying 
> these header locations when compiling scip with the make install 
> INSTALLDIR="/usr/local/ flag. IT appears that the feature extractor 
> compilation cannot be completed without this header file. I'm unsure 
> why this header file is not being installed during my scip installation.
>
> [ 14%] Building CXX object 
> CMakeFiles/feature-extractor.dir/src/feature-extractor.cpp.o
> In file included from /usr/local/include/scip/scip.h:35:0,
>                  from /usr/local/include/objscip/objbenders.h:30,
>                  from /usr/local/include/objscip/objscip.h:27,
>                  from 
> /home/zjsteeve/Downloads/feature_extractor/src/feature-extractor.cpp:18:
> /usr/local/include/scip/def.h:44:30: fatal error: *scip/scip_export.h: 
> No such file or directory*
> compilation terminated.
> CMakeFiles/feature-extractor.dir/build.make:62: recipe for target 
> 'CMakeFiles/feature-extractor.dir/src/feature-extractor.cpp.o' failed
> make[2]: *** 
> [CMakeFiles/feature-extractor.dir/src/feature-extractor.cpp.o] Error 1
> CMakeFiles/Makefile2:67: recipe for target 
> 'CMakeFiles/feature-extractor.dir/all' failed
> make[1]: *** [CMakeFiles/feature-extractor.dir/all] Error 2
> Makefile:83: recipe for target 'all' failed
> make: *** [all] Error 2*
> *
>
>
> Best,
> Zach
> *
> *
>
> On Wed, Jan 22, 2020 at 6:57 PM Zachary Steever <zjsteeve at buffalo.edu 
> <mailto:zjsteeve at buffalo.edu>> wrote:
>
>     Hello,
>
>     I am looking to compile the feature extractor which was used to
>     extract instance statistics using SCIP for the MIPLIB. I
>     downloaded the source code (from
>     http://miplib.zib.de/download.html) and am following the
>     instructions which are detailed in the README file. Unfortunately,
>     I am receiving the error codes which are pasted below.
>
>     It appears that certain libscip files cannot be found. I have
>     tried specifying the location of my scip install in the cmake
>     command using the DCMAKE_PREFIX_PATH flag, but this does not help.
>     For reference, I am running this code on Linux Mint.
>
>     I was hoping you may know how to fix this issue. Thank you in
>     advance for any assistance you can provide.
>
>
>
>     [ 14%] Building CXX object
>     CMakeFiles/feature-extractor.dir/src/feature-extractor.cpp.o
>     make[2]: **** No rule to make target 'libscip-NOTFOUND', needed by
>     'feature-extractor'*.  Stop.
>     CMakeFiles/Makefile2:67: recipe for target
>     'CMakeFiles/feature-extractor.dir/all' failed
>     make[1]: *** [CMakeFiles/feature-extractor.dir/all] Error 2
>     Makefile:83: recipe for target 'all' failed
>     make: *** [all] Error 2
>
>
>     Best,
>
>     Zachary Steever
>
>
>
>
> -- 
>
> Zachary J. Steever
>
> Ph.D. Candidate
>
> Department of Industrial and Systems Engineering
>
> University at Buffalo, The State University of New York
>
> Personal Webpage: www.buffalo.edu/~zjsteeve 
> <http://www.buffalo.edu/~zjsteeve>
>
> Lab Webpage: www.optimatorlab.com <http://www.optimatorlab.com>
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20200124/4d26aa64/attachment.html>


More information about the Scip mailing list