Giter Site home page Giter Site logo

irfansharif / solver Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 8.0 287 KB

SAT solver library in Go; wraps around Google's Operational Research Tools

License: Apache License 2.0

Starlark 31.22% SWIG 4.50% C++ 10.93% Go 52.67% Makefile 0.68%
optimization sat-solver constraint-programming

solver's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

solver's Issues

make generate fails with a protobuf module

Configuration:

thomaspeugeot@MacBook-Pro-de-Thomas solver % uname -a
Darwin MacBook-Pro-de-Thomas.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64
thomaspeugeot@MacBook-Pro-de-Thomas solver % bazel --version
bazel 5.1.1
thomaspeugeot@MacBook-Pro-de-Thomas solver % swig -version 

SWIG Version 4.0.2

Compiled with g++ [x86_64-apple-darwin21.3.0]

Configured options: +pcre

Please see http://www.swig.org for reporting bugs and further information
thomaspeugeot@MacBook-Pro-de-Thomas solver % protoc --version
libprotoc 3.17.3
thomaspeugeot@MacBook-Pro-de-Thomas solver % protoc-gen-go --version
protoc-gen-go v1.28.0

Steps:

  • git submodule update --init --recursive

  • make generate

Problem:

thomaspeugeot@MacBook-Pro-de-Thomas solver % make generate
--- generating go:generate files
--- tidying go.{mod,sum}
go: finding module for package github.com/protocolbuffers/protobuf/examples/tutorial
github.com/irfansharif/solver/c-deps/protobuf/examples imports
        github.com/protocolbuffers/protobuf/examples/tutorial: module github.com/protocolbuffers/protobuf@latest found (v3.20.0+incompatible), but does not contain package github.com/protocolbuffers/protobuf/examples/tutorial
make: *** [gogenerate] Error 1

Support CMake/Make in addition to Bazel

I get the following error when I run the example of the readme.md:

$ go run main.go 
# github.com/irfansharif/solver/internal
wrapper.cc:355:10: fatal error: ortools/base/basictypes.h: No such file or directory
 #include "ortools/base/basictypes.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

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.