google / or-tools

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

fatal error: 'ortools/util/step_function.h' file not found #4260

Open c56kevin opened 4 months ago

c56kevin commented 4 months ago

Version: 9.10.4067 Language: C++

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)

**What operating system (Linux, Windows, ...) and version? MacOs 14.5 (23F79) M2

What did you do? Steps to reproduce the behavior:

  1. downloaded from https://github.com/google/or-tools/releases/download/v9.10/or-tools_arm64_macOS-14.4.1_cpp_v9.10.4067.tar.gz
  2. run with command make run SOURCE=examples/cvrptw_with_time_dependent_costs

    `[ 50%] Building CXX object CMakeFiles/cvrptw_with_time_dependent_costs.dir/cvrptw_with_time_dependent_costs.cc.o /Library/Developer/CommandLineTools/usr/bin/c++ -DEIGEN_MPL2_ONLY -DHAVE_CONFIG_H -DOR_TOOLS_AS_DYNAMIC_LIB -DUSE_BOP -DUSE_CBC -DUSE_CLP -DUSE_GLOP -DUSE_LP_PARSER -DUSE_MATH_OPT -DUSE_PDLP -DUSE_SCIP -I/Users/kevin/CLionProjects/test1/or-tools/examples/cvrptw_with_time_dependent_costs -isystem /Users/kevin/CLionProjects/test1/or-tools/include -isystem /Users/kevin/CLionProjects/test1/or-tools/include/coin -isystem /Users/kevin/CLionProjects/test1/or-tools/include/eigen3 -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -fPIE -fwrapv -MD -MT CMakeFiles/cvrptw_with_time_dependent_costs.dir/cvrptw_with_time_dependent_costs.cc.o -MF CMakeFiles/cvrptw_with_time_dependent_costs.dir/cvrptw_with_time_dependent_costs.cc.o.d -o CMakeFiles/cvrptw_with_time_dependent_costs.dir/cvrptw_with_time_dependent_costs.cc.o -c /Users/kevin/CLionProjects/test1/or-tools/examples/cvrptw_with_time_dependent_costs/cvrptw_with_time_dependent_costs.cc /Users/kevin/CLionProjects/test1/or-tools/examples/cvrptw_with_time_dependent_costs/cvrptw_with_time_dependent_costs.cc:38:10: fatal error: 'ortools/util/step_function.h' file not found

    include "ortools/util/step_function.h"

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1 error generated. make[3]: [CMakeFiles/cvrptw_with_time_dependent_costs.dir/cvrptw_with_time_dependent_costs.cc.o] Error 1 make[2]: [CMakeFiles/cvrptw_with_time_dependent_costs.dir/all] Error 2 make[1]: *** [all] Error 2 `

c56kevin commented 4 months ago

image

lperron commented 4 months ago

we should just remove this example.