EvolutionGym / evogym

A large-scale benchmark for co-optimizing the design and control of soft robots, as seen in NeurIPS 2021.
https://evolutiongym.github.io/
MIT License
193 stars 33 forks source link

Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) and #3 did not solve this. #20

Closed TvoozMagnificent closed 1 year ago

TvoozMagnificent commented 1 year ago

Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) and #3 did not solve this. Entire (relevant) terminal log:

hfdeMacBook-Pro:~ luchang$ git clone --recurse-submodules https://github.com/EvolutionGym/evogym.git
Cloning into 'evogym'...
remote: Enumerating objects: 588, done.
remote: Counting objects: 100% (587/587), done.
remote: Compressing objects: 100% (442/442), done.
remote: Total 588 (delta 130), reused 572 (delta 127), pack-reused 1
<--snip-->
Resolving deltas: 100% (600/600), done.
Submodule path 'evogym/simulator/externals/glew': checked out '7c2b7514f64234756f7df051b9316f1e46f5a6e7'
Submodule path 'evogym/simulator/externals/glfw': checked out 'df8d7bc892937a8b0f7c604c92a9f64f383cf48c'
Submodule path 'evogym/simulator/externals/pybind11': checked out 'bcb6d63ce99752dd735b5abf128f498458999a66'
Submodule path 'examples/externals/PyTorch-NEAT': checked out 'dee5f0adb22faf7d563c75ce28a8e3d6923d1b22'
Submodule path 'examples/externals/pytorch_a2c_ppo_acktr_gail': checked out '41332b78dfb50321c29bade65f9d244387f68a60'
hfdeMacBook-Pro:~ luchang$ 
hfdeMacBook-Pro:~ luchang$ python3.9 -m pip install torch torchvision torchaudio
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting torch
  Downloading torch-1.12.1-cp39-none-macosx_10_9_x86_64.whl (133.8 MB)
     |████████████████████████████████| 133.8 MB 1.7 MB/s 
Collecting torchvision
  Downloading torchvision-0.13.1-cp39-cp39-macosx_10_9_x86_64.whl (1.3 MB)
     |████████████████████████████████| 1.3 MB 557 kB/s 
Collecting torchaudio
  Downloading torchaudio-0.12.1-cp39-cp39-macosx_10_9_x86_64.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 648 kB/s 
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.9/site-packages (from torch) (4.1.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.9/site-packages (from torchvision) (9.1.1)
Requirement already satisfied: requests in /usr/local/lib/python3.9/site-packages (from torchvision) (2.27.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.9/site-packages (from torchvision) (1.21.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests->torchvision) (2021.5.30)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests->torchvision) (3.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests->torchvision) (1.26.7)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests->torchvision) (2.0.6)
Installing collected packages: torch, torchvision, torchaudio
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Successfully installed torch-1.12.1 torchaudio-0.12.1 torchvision-0.13.1
WARNING: You are using pip version 21.2.4; however, version 22.2.2 is available.
You should consider upgrading via the '/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
hfdeMacBook-Pro:~ luchang$ 
hfdeMacBook-Pro:~ luchang$ 
hfdeMacBook-Pro:~ luchang$ evogym
-bash: evogym: command not found
hfdeMacBook-Pro:~ luchang$ 
hfdeMacBook-Pro:~ luchang$ cd evogym
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ python3.9 setup.py install
running install
running bdist_egg
running egg_info
<--snip-->
copying evogym/envs/sim_files/BeamToppler-v0.json -> build/lib.macosx-11-x86_64-3.9/evogym/envs/sim_files
copying evogym/envs/sim_files/PlatformJumper-v0.json -> build/lib.macosx-11-x86_64-3.9/evogym/envs/sim_files
copying evogym/envs/sim_files/Pusher-v1.json -> build/lib.macosx-11-x86_64-3.9/evogym/envs/sim_files
running build_ext
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework   
CMake Error at /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindGLEW.cmake:215 (find_package_handle_standard_args)
  CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred!
See also "/Users/luchang/evogym/build/temp.macosx-11-x86_64-3.9/CMakeFiles/CMakeOutput.log".
See also "/Users/luchang/evogym/build/temp.macosx-11-x86_64-3.9/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "/Users/luchang/evogym/setup.py", line 61, in <module>
    setup(
  File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
<--snip-->
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/Users/luchang/evogym/evogym/simulator', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/luchang/evogym/build/lib.macosx-11-x86_64-3.9/evogym', '-DPYTHON_EXECUTABLE=/usr/local/opt/python@3.9/bin/python3.9', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ cmake
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>
  cmake [options] -S <path-to-source> -B <path-to-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ cmake /Users/luchang/evogym/evogym/simulator -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/luchang/evogym/build/lib.macosx-11-x86_64-3.9/evogym -DPYTHON_EXECUTABLE=/usr/local/opt/python@3.9/bin/python3.9 -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework   
CMake Error at /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindGLEW.cmake:215 (find_package_handle_standard_args)
  CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred!
See also "/Users/luchang/evogym/CMakeFiles/CMakeOutput.log".
See also "/Users/luchang/evogym/CMakeFiles/CMakeError.log".
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ sudo apt-get install libglew-dev
Password:
sudo: apt-get: command not found
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ brew install cmake
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 3 taps (heroku/brew, homebrew/cask and dart-lang/dart).
==> New Casks
akiflow                         chipmunk                        onekey                          plugdata                        snapmaker-luban
aptakube                        cisdem-duplicate-finder         pictureview                     random-mouse-clicker            tempbox
arc                             diffusionbee                    pieces-cli                      readdle-spark                   whist-browser
battery                         lunacy                          planet                          sanesidebuttons                 wolfram-engine

You have 23 outdated formulae and 1 outdated cask installed.
You can upgrade them with brew upgrade
or list them with brew outdated.

Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
cmake 3.21.3_1 is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/3.24.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:d40d888e7ce0d4fa898bac4c8afb964c9a4fa3d7d9a4877fc7223a2ee3160e96
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d40d888e7ce0d4fa898bac4c8afb964c9a4fa3d7d9a4877fc7223a2ee3160e96?se=2022-10
######################################################################## 100.0%
==> Upgrading cmake
  3.21.3_1 -> 3.24.1 

==> Pouring cmake--3.24.1.monterey.bottle.tar.gz
==> Caveats
To install the CMake documentation, run:
  brew install cmake-docs

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.24.1: 3,106 files, 46.8MB
==> Running `brew cleanup cmake`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/cmake/3.21.3_1... (2,953 files, 42.9MB)
Removing: /Users/luchang/Library/Caches/Homebrew/cmake--3.23.2... (15.3MB)
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/aom/3.1.2... (22 files, 12.5MB)
Removing: /Users/luchang/Library/Caches/Homebrew/aom--3.3.0... (4.4MB)
Removing: /Users/luchang/Library/Caches/Homebrew/c-ares--1.18.1_1... (158.4KB)
Removing: /usr/local/Cellar/ca-certificates/2021-09-30... (3 files, 203.5KB)
<--snip-->
Removing: /usr/local/lib/python3.9/site-packages/__pycache__/texttable.cpython-39.pyc... (20.7KB)
Removing: /usr/local/lib/python3.9/site-packages/__pycache__/threadpoolctl.cpython-39.pyc... (35.2KB)
Removing: /usr/local/lib/python3.9/site-packages/__pycache__/typing_extensions.cpython-39.pyc... (82.9KB)
Pruned 0 symbolic links and 4 directories from /usr/local
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ 
hfdeMacBook-Pro:evogym luchang$ cmake /Users/luchang/evogym/evogym/simulator -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/luchang/evogym/build/lib.macosx-11-x86_64-3.9/evogym -DPYTHON_EXECUTABLE=/usr/local/opt/python@3.9/bin/python3.9 -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/local/Cellar/cmake/3.24.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.24.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.24.1/share/cmake/Modules/FindGLEW.cmake:215 (find_package_handle_standard_args)
  CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred!
See also "/Users/luchang/evogym/CMakeFiles/CMakeOutput.log".
See also "/Users/luchang/evogym/CMakeFiles/CMakeError.log".
TvoozMagnificent commented 1 year ago

Turns out I didn't install GLEW