-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to build without SCIP with Makefile #2134
Comments
Why is that a problem ? |
I'd like to add OR-Tools to Homebrew, so Mac users can do More generally, I think it's nice for users to be able to build OR-Tools without having to worry about non-open source software being included. It looks like others have this same concern, fwiw: #2129 |
OK, We will do that asap.
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le mar. 11 août 2020 à 10:57, Andrew Kane <notifications@github.com> a
écrit :
… I'd like to add OR-Tools to Homebrew, so Mac users can do brew install
or-tools, but Homebrew requires software to have an open source
(OSI-approved) license.
More generally, I think it's nice for users to be able to build OR-Tools
without having to worry about non-open source being included. It looks like
others have this same concern, fwiw: #2129
<#2129>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3OHY47UJIJCCUOAVBLSAEBZBANCNFSM4P2ZJROQ>
.
|
Fixed for |
Side comment, do you need help adding or-tools to homebrew ? This is one of or-tools missing delivery channel. Do you have a description of what you want to include ? |
Thanks for adding a flag and offering to help! I have working formula here: https://github.com/ankane/homebrew-core/blob/or-tools/Formula/or-tools.rb I submitted CBC to Homebrew earlier today, so once that's merged and a new release of OR-Tools is out, we should be good to go. I'll test the new flag in a bit to confirm everything works. |
Just tried with master and it's failing with Full logs: https://github.com/ankane/homebrew-core/runs/971549010?check_suite_focus=true |
You must add BUILD_SCIP=OFF manually in Makefile.local before make
third_party, or pass it to make
option a:
checkout
make Makefile.local
echo BUILD_SCIP=OFF >> Makefile.local
make third_party
make all
option b:
make BUILD_SCIP=OFF third_party all
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le mar. 11 août 2020 à 16:20, Andrew Kane <notifications@github.com> a
écrit :
… Just tried with master and it's failing with cp:
dependencies/sources/scip-7.0.1/src/lpi/lpi_glop.cpp: No such file or
directory.
Full logs:
https://github.com/ankane/homebrew-core/runs/971549010?check_suite_focus=true
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3O5SQOH2B363JBSNX3SAFHRTANCNFSM4P2ZJROQ>
.
|
I read your log.
1) I pushed the fix for the makefile.
2) I believe you do not need to run make third_party if every dependency is
compiled before.
You will need to generate Makefile.local (make Makefile.local).
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le mar. 11 août 2020 à 17:12, Laurent Perron <lperron@google.com> a écrit :
… You must add BUILD_SCIP=OFF manually in Makefile.local before make
third_party, or pass it to make
option a:
checkout
make Makefile.local
echo BUILD_SCIP=OFF >> Makefile.local
make third_party
make all
option b:
make BUILD_SCIP=OFF third_party all
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68
53 00
Le mar. 11 août 2020 à 16:20, Andrew Kane ***@***.***> a
écrit :
> Just tried with master and it's failing with cp:
> dependencies/sources/scip-7.0.1/src/lpi/lpi_glop.cpp: No such file or
> directory.
>
> Full logs:
> https://github.com/ankane/homebrew-core/runs/971549010?check_suite_focus=true
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <#2134 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACUPL3O5SQOH2B363JBSNX3SAFHRTANCNFSM4P2ZJROQ>
> .
>
|
I tried the latest master without makefiles/Makefile.third_party.unix.mk:46: *** Third party SCIP files was not found! did you run 'make third_party' or set UNIX_SCIP_DIR ?. Stop. Full logs: https://github.com/ankane/homebrew-core/runs/972227456?check_suite_focus=true |
Oh sh*t
Le mar. 11 août 2020 à 19:04, Andrew Kane <notifications@github.com> a
écrit :
… I tried the latest master without make third_party (and USE_SCIP=OFF),
but it fails with:
makefiles/Makefile.third_party.unix.mk:46: *** Third party SCIP files was not found! did you run 'make third_party' or set UNIX_SCIP_DIR ?. Stop.
Full logs:
https://github.com/ankane/homebrew-core/runs/972227456?check_suite_focus=true
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3JTUNOQROUJYKT2NP3SAF22BANCNFSM4P2ZJROQ>
.
|
Fixed,
thanks
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le mar. 11 août 2020 à 19:12, Laurent Perron <lperron@google.com> a écrit :
… Oh sh*t
Le mar. 11 août 2020 à 19:04, Andrew Kane ***@***.***> a
écrit :
> I tried the latest master without make third_party (and USE_SCIP=OFF),
> but it fails with:
>
> makefiles/Makefile.third_party.unix.mk:46: *** Third party SCIP files was not found! did you run 'make third_party' or set UNIX_SCIP_DIR ?. Stop.
>
> Full logs:
> https://github.com/ankane/homebrew-core/runs/972227456?check_suite_focus=true
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <#2134 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACUPL3JTUNOQROUJYKT2NP3SAF22BANCNFSM4P2ZJROQ>
> .
>
|
FYI i fixed for windows too ;) |
Still no luck - same error (with same situation) as #2134 (comment) Full logs: https://github.com/ankane/homebrew-core/runs/973737877?check_suite_focus=true |
Few thinks (in any order):
|
just renamed it, |
Thanks @Mizux, missed that it had a different name. It currently builds but cp -R dependencies/install/include/scip "/usr/local/Cellar/or-tools/0.0.0/include"
cp: dependencies/install/include/scip: No such file or directory
mkdir "/usr/local/Cellar/or-tools/0.0.0/include/ortools"
make: *** [install_third_party] Error 1
make: *** Waiting for unfinished jobs.... Re Homebrew: All dependencies must be in the official repo. The cbc formula was just merged, so no blockers there. |
install rule seems broken... on my way to fix them |
Hey @Mizux, the latest commit seemed to fix it. I'll submit to Homebrew whenever a new version is out. |
@ankane just FYI now or-tools depends on C++17 revision so we have to use abseil-cpp build using C++17 (yes abseil-cpp change according to the C++ revision used). Unfortunately, as expected, homebrew/homebrew-core only provide abseil-cpp in.... C++11 -> ortools.rb is no longer compiling against the "homebrew ecosystem" |
Does that just mean we need to wait until the next abseil LTS version is out? |
It means we need to have an I've just sent a bottle to the homebrew community -> https://discourse.brew.sh/t/abseil-and-c-revision/8641 |
It doesn't look like any formula currently depend on it (just search for |
start to have something working: https://github.com/Mizux/homebrew-or-tools/runs/1035669937?check_suite_focus=true
|
Hey @Mizux, was able to get v8.0 working with the following changes: Homebrew/homebrew-core@master...ankane:or-tools3. Let me know if you'd like me to submit, or you'd like to do it. |
@ankane well I was waiting to release v8.0 to propose my homebrew package ;) our ortools.rb and mine differ a little bit (e.g. you don't provide head, you are using archive, i'm using git), i'll try to send you comment then if you want to provide your version, I'm ok (i.e. don't care if you or me send the PR to homebrew community, I just want to have it integrated inside homebrew-core) FYI: I already ask on homebrew forum if it will be ok to bump abseil to C++17, it should be ok since no one is using it yet (brew reverse dependencies show nothing) |
Homebrew prefers the tar.gz url over git whenever possible for the |
@ankane few bad news:
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cmake
Error: Testing requires the latest version of abseil
Error: Process completed with exit code 1. see: https://github.com/or-tools/homebrew_or-tools/actions/runs/303942900
Side note
EDIT: I'll send a PR and see what's going on with homebrew team |
Looks like it was accepted 🎉 Thanks @Mizux! |
What language and solver does this apply to?
C++
Describe the problem you are trying to solve.
Hi, it looks like SCIP was added in the latest release, which doesn't have an open source license. It'd be nice if there was a way to build OR-Tools without it.
Describe the solution you'd like
USE_SCIP
or similar option forMakefile
build, since CMake is still considered experimental.Describe alternatives you've considered
Use experimental CMake build instead.
The text was updated successfully, but these errors were encountered: