Giter Site home page Giter Site logo

CMake error when building about slothy HOT 8 CLOSED

Unlimitosu avatar Unlimitosu commented on May 20, 2024
CMake error when building

from slothy.

Comments (8)

hanno-becker avatar hanno-becker commented on May 20, 2024

What operating system are you using? I assume you tried installing SWIG?

from slothy.

Unlimitosu avatar Unlimitosu commented on May 20, 2024

I'm using OS X with M1 and Ubuntu both. and it's solved after I install SWIG.
However, there's another error occurred.

Deprecated command line option: -py3. Ignored, this option is no longer supported.
/Users/yong/Documents/coding/slothy/submodules/or-tools/ortools/linear_solver/linear_solver.h:809: Error: Syntax error in input(3).
make[2]: *** [ortools/linear_solver/python/CMakeFiles/pywraplp.dir/linear_solverPYTHON.stamp] Error 1
make[2]: *** Deleting file `ortools/linear_solver/python/CMakeFiles/pywraplp.dir/linear_solverPYTHON.stamp'
make[1]: *** [ortools/linear_solver/python/CMakeFiles/pywraplp_swig_compilation.dir/all] Error 2
make: *** [all] Error 2

This is error message when I run make.
I checked that mypy-protobuf is installed and it is latest version.

from slothy.

hanno-becker avatar hanno-becker commented on May 20, 2024

@Unlimitosu Thank you for the update, progress is seeing a different error. I have not seen this OR-Tools build error before, but would encourage you to search amongst the issues in https://github.com/google/or-tools/tree/stable and stack exchange. Which version of SWIG are you using? What's your compiler?

from slothy.

Unlimitosu avatar Unlimitosu commented on May 20, 2024

@hanno-becker I use SWIG 4.1.1., cmake version 3.28.0-rc5 and GNU Make 4.2.1(for Ubuntu).
and clang version 13.0.0 for M1 OS X.

from slothy.

hanno-becker avatar hanno-becker commented on May 20, 2024

I'm using 4.1.0 locally, which seems fine. Perhaps it's an issue with the OR-Tools version? We don't yet pin that in the submodule configuration, which we probably should. Which version are you using? Can you try tag v9.7?

from slothy.

hanno-becker avatar hanno-becker commented on May 20, 2024

@Unlimitosu Any luck?

I've pinned the OR-Tools submodule to v9.7 now, which works for me locally.

from slothy.

hanno-becker avatar hanno-becker commented on May 20, 2024

@Unlimitosu FYI we added a docker container for SLOTHY in https://github.com/slothy-optimizer/slothy/tree/main/paper/artifact which exemplifies the setup required to run SLOTHY.

from slothy.

hanno-becker avatar hanno-becker commented on May 20, 2024

Closing this. Feel free to reopen if the issue persists.

from slothy.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.