Skip to content
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

install issue on Windows #3549

Closed
frascaria opened this issue Nov 16, 2022 · 2 comments
Closed

install issue on Windows #3549

frascaria opened this issue Nov 16, 2022 · 2 comments
Assignees
Labels
Bug Build: Makefile Makefile based build issue Help Needed Modeling/Usage problem OS: Windows Windows OS
Milestone

Comments

@frascaria
Copy link

frascaria commented Nov 16, 2022

What version of OR-Tools and what language are you using?
Version: tried both main and stable
Language: Python

What operating system (Linux, Windows, ...) and version?
Windows 10

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

What did you do?

  1. followed this guide https://developers.google.com/optimization/install/python/source_windows until the point 'tools\make third_party'
  2. this gives me error (see attached file)

What did you expect to see
successful initiallization

What did you see instead?
Completed 'zlib-populate'
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for 'C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-mkdir.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-download.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-patch.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-configure.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-build.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-install.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\333cfe941636ee85928db688745cc5b4\zlib-populate-test.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\8708551589a2279ccd65d66c72dad5db\zlib-populate-complete.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeFiles\a7eff27e30ce7217ae96681c8f33a804\zlib-populate.rule;C:\or-tools-stable\build_make_deps\zlib-subbuild\CMakeLists.txt' exited with code -1. [C:\or-tools-stable\build_make_deps\zlib-subbuild\zlib-populate.vcxproj]
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/FetchContent.cmake:1616 (message):
Build step for zlib failed: 1
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.25/Modules/FetchContent.cmake:1756:EVAL:2 (__FetchContent_directPopulate)
C:/Program Files/CMake/share/cmake-3.25/Modules/FetchContent.cmake:1756 (cmake_language)
C:/Program Files/CMake/share/cmake-3.25/Modules/FetchContent.cmake:1970 (FetchContent_Populate)
cmake/dependencies/CMakeLists.txt:68 (FetchContent_MakeAvailable)

-- Configuring incomplete, errors occurred!
See also "C:/or-tools-stable/build_make/CMakeFiles/CMakeOutput.log".
make: *** [makefiles/Makefile.cpp.mk:60: third_party] Error 1

Make sure you include information that can help us debug (full error message, model Proto).

Anything else we should know about your project / environment
CmakeOutputlog.txt

@Mizux Mizux self-assigned this Nov 16, 2022
@Mizux Mizux added Bug Help Needed Modeling/Usage problem OS: Windows Windows OS Build: Makefile Makefile based build issue labels Nov 16, 2022
@Mizux
Copy link
Collaborator

Mizux commented Nov 16, 2022

Are you sure to provide the full CMakeOutput.log ? I can't see any error in the trace.

Otherwise try to use the main branch and build using the CMake based build directly.
see: https://github.com/google/or-tools/blob/main/cmake/README.md

@lperron
Copy link
Collaborator

lperron commented Nov 22, 2022

Regrouped into #3558

@lperron lperron closed this as completed Nov 22, 2022
@Mizux Mizux added this to the v9.5 milestone Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Build: Makefile Makefile based build issue Help Needed Modeling/Usage problem OS: Windows Windows OS
Projects
None yet
Development

No branches or pull requests

3 participants