google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
11k stars 2.1k forks source link

Third Party Build without SCIP "USING_SCIP=OFF" Error with lpi_glob.cc #3029

Closed LukasEDIBER closed 2 years ago

LukasEDIBER commented 2 years ago

What version of OR-Tools and what language are you using? Version: stable 9.2 Language: C++ Windows

Hello I am trying to install third party code without SCIP with command "tools\make USE_SCIP=OFF third_party all" in windows 10/ x64 Native Tools Command Prompt.

I get the error

...
ortools\gen\ortools\linear_solver\lpi_glop.cc(47): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "lpi/lpi.h": No such file or directory
make: *** [makefiles/Makefile.gen.mk:3811: objs/linear_solver/lpi_glop.obj] Error 2

In lpi_glop.cc there are the two inlcudes

#include "lpi/lpi.h"
#include "scip/pub_message.h"

which give the errors. Second include would result in the same error, because no lpi or scip folder exists as I use USE_SCIP=OFF Comment Description of the file also says it belongs to SCIP.

My question is, why is it still part of the build with USE_SCIP=OFF and how can I remove it?

Kind Regards, Lukas.

Mizux commented 2 years ago

I guess this lpi_glop.cc was generate on a previous run, please run make clean_third_party first

note: Makefile based build is deprecated please migrate to CMake based build instead...