open_spiel: CMake error
Hi, I am trying to setup OpenSpiel on a cluster on which I do not have sudo access. I am following the instructions as given in the Colab setup for OpenSpiel. While running cmake -DPython3_EXECUTABLE=`which python3` -DCMAKE_CXX_COMPILER=`which clang++-9` ../open_spiel, I am getting the following error:
CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in path/to/env/miniconda3/share/cmake-3.5 CMake Error: Error executing cmake::LoadCache(). Aborting.
Following is the output when I run cmake --version:
CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in path/to/env/miniconda3/share/cmake-3.5 cmake version 3.5.1
Please let me know how to resolve this error. Thank you in advance!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 52
Commits related to this issue
- Remove instances of std::optional as it causes compliance problems in some environments (use only absl::optional) Needed by https://github.com/deepmind/open_spiel/issues/436 PiperOrigin-RevId: 34074... — committed to google-deepmind/open_spiel by lanctot 4 years ago
- Use absl::string_view instead of std::string_view. Ongoing fixes for https://github.com/deepmind/open_spiel/issues/436 PiperOrigin-RevId: 340826380 Change-Id: I39043ee6eeb863e986e4275b756f9eaa779aef8... — committed to google-deepmind/open_spiel by lanctot 4 years ago
- Remove an #include <optional> to help with https://github.com/deepmind/open_spiel/issues/436 PiperOrigin-RevId: 340840131 Change-Id: I85c8c8a77cbf7f9082b9201260cb061ddc32de43 — committed to google-deepmind/open_spiel by jblespiau 4 years ago
I am not sure if it’s only clang-9 to blame but yes only use absl::optional. I am adding a rule now to block submitting any code with std::optional because this is the third time it’s caused problems, so at least we can easily catch future instances.
I’m on it 😃
Ok great @vrn25, I just uploaded the change above: can you pull changes from master and try again?
I don’t know why you’re getting that warning with abseil 😦
But the build error is definitely related to
std::optional. I have a fix almost ready, will submit it some time later tonight. I’ll keep you posted.You can do that, or prepend it: