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

compile error #15

Closed TypeFloat closed 1 year ago

TypeFloat commented 2 years ago

I am using macOS on m1 chip, when I run the command "python setup.py install", it occurred error:" calling a private constructor of class 'Eigen::Ref<Eigen::Matrix<double, -1, -1, 0>, 0, Eigen::OuterStride<-1>>' return empty;"

what should I do to fix the bug?

Hs-Cheng commented 1 year ago

I also got the same error. The attached picture shows the error message.

Screen Shot 2022-11-06 at 7 18 43 PM
Hs-Cheng commented 1 year ago

@TypeFloat Do you know how to solve the problem? Thank you.

TypeFloat commented 1 year ago

@TypeFloat Do you know how to solve the problem? Thank you.

Sorry, I have not found a solution yet.

veerendrav commented 1 year ago

@TypeFloat @Hs-Cheng have you found the solution? I also have same issue. @yunshengtian @jagdeepsb

Hs-Cheng commented 1 year ago

@veerendrav I have no solution, sorry about that.

amitrab commented 1 year ago

It happened to me too on macOS. Here's a simple solution that works: Change those type definitions from Ref <MatrixXd> to Matrix <double, 2, Dynamic> In directory evogym/simulator/SimulatorCPP/ edit files:

  1. Environment.h
  2. Environment.cpp
  3. Sim.h
  4. Sim.cpp
jagdeepsb commented 1 year ago

Hi all, thank you for your interest in EvoGym. I'm trying to recreate this issue, and suspect it has to with the cpp compiler/version of cpp being compiled.

For instance, if you are on windows, you will get this error if you attempt to build with the MS Visual Studios 2019 build tools. You will need to install the 2017 version as advised here.

Could someone please send me the full output of their python setup.py install so I can see what compiler is being used by cmake?

nakanoyusuke-cgp commented 1 year ago

Hello.

I had the same error on MacOS with M1 chip and was able to resolve it. Probably the reason is that the front-end compiler used by default for CMake on MacOS is the one shipped with XCode. I was able to avoid this error by installing gcc from homebrew and specifying it as the compiler in setup.py.

(I apologize for any unnatural parts of the text, as I used a translation service to create the text.)

nakanoyusuke-cgp commented 1 year ago

Sorry, one correction about the above message: you need to set g++ as the C++ compiler, but do not explicitly specify the C compiler; specifying gcc as the C compiler seems to cause a different error.

The specific procedure is

  1. install gcc and g++ (from homebrew, for example).
  2. add the following statement to line 51 of setup.py. (replace {path_of_g++} with the g++ installation path. in my case it is /opt/homebrew/bin/g++-12)
    cmake_args += ["-DCMAKE_CXX_COMPILER={path_of_g++}"]
  3. run python setup.py install.

\ For reference, I am attaching the full output of the python setup.py install before and after the problem was solved. (The user name and computer name are replaced with different strings.)

before ``` (evogym) me@mycomputer evogym % python setup.py install running install /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( running bdist_egg running egg_info creating evogym.egg-info writing evogym.egg-info/PKG-INFO writing dependency_links to evogym.egg-info/dependency_links.txt writing top-level names to evogym.egg-info/top_level.txt writing manifest file 'evogym.egg-info/SOURCES.txt' reading manifest file 'evogym.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'evogym.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-11.1-arm64/egg running install_lib running build_py creating build creating build/lib.macosx-11.1-arm64-cpython-38 creating build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/world.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/sim.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/viewer.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/__init__.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/utils.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym creating build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/climb.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/jump.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/__init__.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/traverse.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/manipulate.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/walk.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/flip.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/multi_goal.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/change_shape.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/balance.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/base.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs creating build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/DownStepper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/rigid_3x3.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Lifter-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Traverser-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Jumper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Balancer-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BidirectionalWalker-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/GapJumper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Thrower-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Balancer-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Climber-v2.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/UpStepper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Walker-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/CaveCrawler-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Climber-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/package.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Climber-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/rigid_2x2.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BridgeWalker-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Pusher-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Flipper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BeamSlider-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Carrier-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Hurdler-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/ObstacleTraverser-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/ObstacleTraverser-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/ShapeChange.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/rigid_1x1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/peg.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Carrier-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BeamToppler-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/PlatformJumper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Pusher-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/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/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework -- Found GLEW: /opt/homebrew/lib/cmake/glew/glew-config.cmake -- pybind11 v2.9.0 -- Found PythonInterp: /Users/me/miniforge3/envs/evogym/bin/python (found version "3.8.13") -- Found PythonLibs: /Users/me/miniforge3/envs/evogym/lib/libpython3.8.dylib -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Performing Test HAS_FLTO_THIN -- Performing Test HAS_FLTO_THIN - Success -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found Doxygen: /opt/homebrew/bin/doxygen (found version "1.9.5") found components: doxygen -- Including Cocoa support -- Configuring done -- Generating done -- Build files have been written to: /Users/me/repos/research/evogym/build/temp.macosx-11.1-arm64-cpython-38 [ 5%] Generating HTML documentation [ 5%] Building C object externals/CMakeFiles/glew.dir/glew/src/glew.c.o [ 7%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/init.c.o [ 10%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/context.c.o [ 12%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/input.c.o [ 15%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/platform.c.o [ 17%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/monitor.c.o [ 20%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/vulkan.c.o warning: Tag 'FORMULA_TRANSPARENT' at line 1522 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'CLASS_DIAGRAMS' at line 2193 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'DOT_FONTNAME' at line 2235 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'DOT_FONTSIZE' at line 2242 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'DOT_TRANSPARENT' at line 2466 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" [ 20%] Built target docs [ 22%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/window.c.o [ 25%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/egl_context.c.o [ 27%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/osmesa_context.c.o [ 30%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_init.c.o [ 32%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_monitor.c.o [ 35%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_window.c.o [ 37%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_joystick.c.o [ 40%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_time.c.o [ 42%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/posix_module.c.o [ 45%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/posix_thread.c.o [ 47%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_init.m.o [ 50%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_joystick.m.o [ 52%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_monitor.m.o [ 55%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_window.m.o [ 57%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/nsgl_context.m.o /Users/me/repos/research/evogym/evogym/simulator/externals/glfw/src/cocoa_window.m:366:62: warning: 'kUTTypeURL' is deprecated: first deprecated in macOS 12.0 - Use UTTypeURL instead. [-Wdeprecated-declarations] [self registerForDraggedTypes:@[(__bridge NSString*) kUTTypeURL]]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h:210:26: note: 'kUTTypeURL' has been explicitly marked deprecated here extern const CFStringRef kUTTypeURL API_DEPRECATED("Use UTTypeURL instead.", ios(3.0, 15.0), macos(10.4, 12.0), tvos(9.0, 15.0), watchos(1.0, 8.0)); ^ 1 warning generated. [ 60%] Linking C static library libglfw3.a [ 60%] Built target glfw [ 62%] Linking C static library libglew.a [ 62%] Built target glew [ 67%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Boxel.cpp.o [ 67%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Camera.cpp.o [ 70%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/PythonBindings.cpp.o [ 72%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/BBTreeNode.cpp.o [ 75%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/ObjectCreator.cpp.o [ 77%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Environment.cpp.o [ 80%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Edge.cpp.o [ 82%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Interface.cpp.o /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:6:26: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] point_top_right_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:7:25: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] point_top_left_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:8:26: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] point_bot_right_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:9:25: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] point_bot_left_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:11:19: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] edge_top_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:12:19: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] edge_bot_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:13:20: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] edge_left_index = NULL; ~ ^~~~ 0 /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:14:21: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion] edge_right_index = NULL; ~ ^~~~ 0 [ 85%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/PhysicsEngine.cpp.o In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/PythonBindings.cpp:3: In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Interface.h:13: In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive [-Wextra-tokens] #include "SimObject.h"; ^ // /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Environment.cpp:271:10: error: calling a private constructor of class 'Eigen::Ref, 0, Eigen::OuterStride<-1>>' return empty; ^ /Users/me/repos/research/evogym/evogym/simulator/externals/eigen/Eigen/src/Core/Ref.h:299:30: note: declared private here EIGEN_DEVICE_FUNC inline Ref(const PlainObjectBase& expr, ^ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Environment.cpp:282:10: error: calling a private constructor of class 'Eigen::Ref, 0, Eigen::OuterStride<-1>>' return empty; ^ /Users/me/repos/research/evogym/evogym/simulator/externals/eigen/Eigen/src/Core/Ref.h:299:30: note: declared private here EIGEN_DEVICE_FUNC inline Ref(const PlainObjectBase& expr, ^ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Environment.cpp:294:10: error: calling a private constructor of class 'Eigen::Ref, 0, Eigen::OuterStride<-1>>' return empty; ^ /Users/me/repos/research/evogym/evogym/simulator/externals/eigen/Eigen/src/Core/Ref.h:299:30: note: declared private here EIGEN_DEVICE_FUNC inline Ref(const PlainObjectBase& expr, ^ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Environment.cpp:309:10: error: calling a private constructor of class 'Eigen::Ref, 0, Eigen::OuterStride<-1>>' return empty; ^ /Users/me/repos/research/evogym/evogym/simulator/externals/eigen/Eigen/src/Core/Ref.h:299:30: note: declared private here EIGEN_DEVICE_FUNC inline Ref(const PlainObjectBase& expr, ^ [ 87%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Robot.cpp.o [ 90%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Sim.cpp.o In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:1: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive [-Wextra-tokens] #include "SimObject.h"; ^ // In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Interface.cpp:1: In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Interface.h:13: In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive [-Wextra-tokens] #include "SimObject.h"; ^ // 8 warnings generated. [ 92%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/SimObject.cpp.o /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:334:49: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (top != NULL && top->point_bot_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:336:52: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (left != NULL && left->point_top_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:338:60: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (top_left != NULL && top_left->point_bot_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:340:38: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->point_top_left_index == NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:349:50: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (top != NULL && top->point_bot_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:351:53: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (right != NULL && right->point_top_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:353:61: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (top_right != NULL && top_right->point_bot_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:355:39: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->point_top_right_index == NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:364:49: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (bot != NULL && bot->point_top_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:366:52: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (left != NULL && left->point_bot_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:368:60: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (bot_left != NULL && bot_left->point_top_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:370:38: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->point_bot_left_index == NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:380:50: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (bot != NULL && bot->point_top_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:382:53: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (right != NULL && right->point_bot_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:384:61: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (bot_right != NULL && bot_right->point_top_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:386:39: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->point_bot_right_index == NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:398:43: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (top != NULL && top->edge_bot_index != NULL) ~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:400:32: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->edge_top_index == NULL) { ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:405:43: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (bot != NULL && bot->edge_top_index != NULL) ~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:407:32: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->edge_bot_index == NULL) { ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:412:47: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (left != NULL && left->edge_right_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:414:33: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->edge_left_index == NULL) { ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:419:48: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (right != NULL && right->edge_left_index != NULL) ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:421:34: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic] if (current->edge_right_index == NULL) { ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ 4 errors generated. make[2]: *** [SimulatorCPP/CMakeFiles/simulator_cpp.dir/Environment.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... 1 warning generated. 25 warnings generated. In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.cpp:1: In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive [-Wextra-tokens] #include "SimObject.h"; ^ // /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.cpp:19:28: warning: assigning field to itself [-Wself-assign-field] Sim::is_rendering_enabled = is_rendering_enabled; ^ 2 warnings generated. 1 warning generated. make[1]: *** [SimulatorCPP/CMakeFiles/simulator_cpp.dir/all] Error 2 make: *** [all] Error 2 Traceback (most recent call last): File "setup.py", line 61, in setup( File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/install.py", line 74, in run self.do_egg_install() File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/install.py", line 123, in do_egg_install self.run_command('bdist_egg') File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 165, in run cmd = self.call_command('install_lib', warn_dir=0) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command self.run_command(cmdname) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build self.run_command('build_ext') File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "setup.py", line 32, in run self.build_extension(ext) File "setup.py", line 58, in build_extension subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp) File "/Users/me/miniforge3/envs/evogym/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2. ```
after ``` (evogym) me@mycomputer evogym % python setup.py install running install /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( running bdist_egg running egg_info creating evogym.egg-info writing evogym.egg-info/PKG-INFO writing dependency_links to evogym.egg-info/dependency_links.txt writing top-level names to evogym.egg-info/top_level.txt writing manifest file 'evogym.egg-info/SOURCES.txt' reading manifest file 'evogym.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'evogym.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-11.1-arm64/egg running install_lib running build_py creating build creating build/lib.macosx-11.1-arm64-cpython-38 creating build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/world.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/sim.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/viewer.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/__init__.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym copying evogym/utils.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym creating build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/climb.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/jump.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/__init__.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/traverse.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/manipulate.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/walk.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/flip.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/multi_goal.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/change_shape.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/balance.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs copying evogym/envs/base.py -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs creating build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/DownStepper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/rigid_3x3.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Lifter-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Traverser-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Jumper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Balancer-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BidirectionalWalker-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/GapJumper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Thrower-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Balancer-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Climber-v2.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/UpStepper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Walker-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/CaveCrawler-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Climber-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/package.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Climber-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/rigid_2x2.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BridgeWalker-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Pusher-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Flipper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BeamSlider-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Carrier-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Hurdler-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/ObstacleTraverser-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/ObstacleTraverser-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/ShapeChange.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/rigid_1x1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/peg.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Carrier-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/BeamToppler-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/PlatformJumper-v0.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files copying evogym/envs/sim_files/Pusher-v1.json -> build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files running build_ext -- The C compiler identification is AppleClang 14.0.0.14000029 -- The CXX compiler identification is GNU 12.2.0 -- 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 -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/homebrew/bin/g++-12 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework -- Found GLEW: /opt/homebrew/lib/cmake/glew/glew-config.cmake -- pybind11 v2.9.0 -- Found PythonInterp: /Users/me/miniforge3/envs/evogym/bin/python (found version "3.8.13") -- Found PythonLibs: /Users/me/miniforge3/envs/evogym/lib/libpython3.8.dylib -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Failed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found Doxygen: /opt/homebrew/bin/doxygen (found version "1.9.5") found components: doxygen -- Including Cocoa support -- Configuring done -- Generating done -- Build files have been written to: /Users/me/repos/research/evogym/build/temp.macosx-11.1-arm64-cpython-38 [ 2%] Building C object externals/CMakeFiles/glew.dir/glew/src/glew.c.o [ 5%] Generating HTML documentation [ 7%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/monitor.c.o [ 12%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/platform.c.o [ 12%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/context.c.o [ 15%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/init.c.o [ 17%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/vulkan.c.o [ 20%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/input.c.o warning: Tag 'FORMULA_TRANSPARENT' at line 1522 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'CLASS_DIAGRAMS' at line 2193 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'DOT_FONTNAME' at line 2235 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'DOT_FONTSIZE' at line 2242 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" warning: Tag 'DOT_TRANSPARENT' at line 2466 of file 'Doxyfile' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" [ 20%] Built target docs [ 22%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/window.c.o [ 25%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/egl_context.c.o [ 27%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/osmesa_context.c.o [ 30%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_init.c.o [ 32%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_monitor.c.o [ 35%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_window.c.o [ 37%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/null_joystick.c.o [ 40%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_time.c.o [ 42%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/posix_module.c.o [ 45%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/posix_thread.c.o [ 47%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_init.m.o [ 50%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_joystick.m.o [ 52%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_monitor.m.o [ 55%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/cocoa_window.m.o [ 57%] Building C object externals/glfw/src/CMakeFiles/glfw.dir/nsgl_context.m.o /Users/me/repos/research/evogym/evogym/simulator/externals/glfw/src/cocoa_window.m:366:62: warning: 'kUTTypeURL' is deprecated: first deprecated in macOS 12.0 - Use UTTypeURL instead. [-Wdeprecated-declarations] [self registerForDraggedTypes:@[(__bridge NSString*) kUTTypeURL]]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h:210:26: note: 'kUTTypeURL' has been explicitly marked deprecated here extern const CFStringRef kUTTypeURL API_DEPRECATED("Use UTTypeURL instead.", ios(3.0, 15.0), macos(10.4, 12.0), tvos(9.0, 15.0), watchos(1.0, 8.0)); ^ 1 warning generated. [ 60%] Linking C static library libglfw3.a [ 60%] Built target glfw [ 62%] Linking C static library libglew.a [ 62%] Built target glew [ 65%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/PythonBindings.cpp.o [ 70%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Camera.cpp.o [ 70%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Boxel.cpp.o [ 72%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/ObjectCreator.cpp.o [ 75%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Interface.cpp.o [ 77%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Environment.cpp.o [ 80%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/BBTreeNode.cpp.o [ 82%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Edge.cpp.o In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:1: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive 9 | #include "SimObject.h"; | ^ In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9, from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Interface.h:13, from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Interface.cpp:1: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive 9 | #include "SimObject.h"; | ^ In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9, from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Interface.h:13, from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/PythonBindings.cpp:3: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive 9 | #include "SimObject.h"; | ^ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp: In constructor 'Boxel::Boxel(int, int)': /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:6:33: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 6 | point_top_right_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:7:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 7 | point_top_left_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:8:33: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 8 | point_bot_right_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:9:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 9 | point_bot_left_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:11:26: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 11 | edge_top_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:12:26: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 12 | edge_bot_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:13:27: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 13 | edge_left_index = NULL; | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Boxel.cpp:14:28: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 14 | edge_right_index = NULL; | ^~~~ [ 85%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/PhysicsEngine.cpp.o [ 87%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Robot.cpp.o /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp: In member function 'bool ObjectCreator::read_object_from_array(std::string, Eigen::Matrix, Eigen::Matrix, Eigen::Vector2d, Eigen::Vector2d, bool)': /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:334:73: warning: NULL used in arithmetic [-Wpointer-arith] 334 | if (top != NULL && top->point_bot_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:336:76: warning: NULL used in arithmetic [-Wpointer-arith] 336 | if (left != NULL && left->point_top_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:338:84: warning: NULL used in arithmetic [-Wpointer-arith] 338 | if (top_left != NULL && top_left->point_bot_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:340:62: warning: NULL used in arithmetic [-Wpointer-arith] 340 | if (current->point_top_left_index == NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:349:74: warning: NULL used in arithmetic [-Wpointer-arith] 349 | if (top != NULL && top->point_bot_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:351:77: warning: NULL used in arithmetic [-Wpointer-arith] 351 | if (right != NULL && right->point_top_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:353:85: warning: NULL used in arithmetic [-Wpointer-arith] 353 | if (top_right != NULL && top_right->point_bot_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:355:63: warning: NULL used in arithmetic [-Wpointer-arith] 355 | if (current->point_top_right_index == NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:364:73: warning: NULL used in arithmetic [-Wpointer-arith] 364 | if (bot != NULL && bot->point_top_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:366:76: warning: NULL used in arithmetic [-Wpointer-arith] 366 | if (left != NULL && left->point_bot_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:368:84: warning: NULL used in arithmetic [-Wpointer-arith] 368 | if (bot_left != NULL && bot_left->point_top_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:370:62: warning: NULL used in arithmetic [-Wpointer-arith] 370 | if (current->point_bot_left_index == NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:380:74: warning: NULL used in arithmetic [-Wpointer-arith] 380 | if (bot != NULL && bot->point_top_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:382:77: warning: NULL used in arithmetic [-Wpointer-arith] 382 | if (right != NULL && right->point_bot_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:384:85: warning: NULL used in arithmetic [-Wpointer-arith] 384 | if (bot_right != NULL && bot_right->point_top_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:386:63: warning: NULL used in arithmetic [-Wpointer-arith] 386 | if (current->point_bot_right_index == NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:398:67: warning: NULL used in arithmetic [-Wpointer-arith] 398 | if (top != NULL && top->edge_bot_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:400:56: warning: NULL used in arithmetic [-Wpointer-arith] 400 | if (current->edge_top_index == NULL) { | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:405:67: warning: NULL used in arithmetic [-Wpointer-arith] 405 | if (bot != NULL && bot->edge_top_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:407:56: warning: NULL used in arithmetic [-Wpointer-arith] 407 | if (current->edge_bot_index == NULL) { | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:412:71: warning: NULL used in arithmetic [-Wpointer-arith] 412 | if (left != NULL && left->edge_right_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:414:57: warning: NULL used in arithmetic [-Wpointer-arith] 414 | if (current->edge_left_index == NULL) { | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:419:72: warning: NULL used in arithmetic [-Wpointer-arith] 419 | if (right != NULL && right->edge_left_index != NULL) | ^~~~ /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.cpp:421:58: warning: NULL used in arithmetic [-Wpointer-arith] 421 | if (current->edge_right_index == NULL) { | ^~~~ [ 90%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Sim.cpp.o [ 92%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/SimObject.cpp.o In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9, from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.cpp:1: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive 9 | #include "SimObject.h"; | ^ [ 95%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/Snapshot.cpp.o [ 97%] Building CXX object SimulatorCPP/CMakeFiles/simulator_cpp.dir/main.cpp.o /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/main.cpp:1:18: warning: extra tokens at end of #include directive 1 | #include "main.h"; | ^ In file included from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/Sim.h:9, from /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/main.cpp:11: /Users/me/repos/research/evogym/evogym/simulator/SimulatorCPP/ObjectCreator.h:9:23: warning: extra tokens at end of #include directive 9 | #include "SimObject.h"; | ^ [100%] Linking CXX shared module /Users/me/repos/research/evogym/build/lib.macosx-11.1-arm64-cpython-38/evogym/simulator_cpp.cpython-38-darwin.so /opt/homebrew/bin/g++-12 -DVERSION_INFO=\"1.0.0\" -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=13.0 -bundle -Wl,-headerpad_max_install_names -Wl,-undefined,dynamic_lookup -o /Users/me/repos/research/evogym/build/lib.macosx-11.1-arm64-cpython-38/evogym/simulator_cpp.cpython-38-darwin.so CMakeFiles/simulator_cpp.dir/PythonBindings.cpp.o CMakeFiles/simulator_cpp.dir/BBTreeNode.cpp.o CMakeFiles/simulator_cpp.dir/Boxel.cpp.o CMakeFiles/simulator_cpp.dir/Camera.cpp.o CMakeFiles/simulator_cpp.dir/Edge.cpp.o CMakeFiles/simulator_cpp.dir/Environment.cpp.o CMakeFiles/simulator_cpp.dir/Interface.cpp.o CMakeFiles/simulator_cpp.dir/ObjectCreator.cpp.o CMakeFiles/simulator_cpp.dir/PhysicsEngine.cpp.o CMakeFiles/simulator_cpp.dir/Robot.cpp.o CMakeFiles/simulator_cpp.dir/Sim.cpp.o CMakeFiles/simulator_cpp.dir/SimObject.cpp.o CMakeFiles/simulator_cpp.dir/Snapshot.cpp.o CMakeFiles/simulator_cpp.dir/main.cpp.o ../externals/libglew.a ../externals/glfw/src/libglfw3.a -Wl,-framework,OpenGL -framework Cocoa -framework IOKit -framework CoreFoundation -ldl ld: warning: -undefined dynamic_lookup may not work with chained fixups [100%] Built target simulator_cpp creating build/bdist.macosx-11.1-arm64 creating build/bdist.macosx-11.1-arm64/egg creating build/bdist.macosx-11.1-arm64/egg/evogym copying build/lib.macosx-11.1-arm64-cpython-38/evogym/world.py -> build/bdist.macosx-11.1-arm64/egg/evogym copying build/lib.macosx-11.1-arm64-cpython-38/evogym/sim.py -> build/bdist.macosx-11.1-arm64/egg/evogym copying build/lib.macosx-11.1-arm64-cpython-38/evogym/viewer.py -> build/bdist.macosx-11.1-arm64/egg/evogym copying build/lib.macosx-11.1-arm64-cpython-38/evogym/__init__.py -> build/bdist.macosx-11.1-arm64/egg/evogym copying build/lib.macosx-11.1-arm64-cpython-38/evogym/utils.py -> build/bdist.macosx-11.1-arm64/egg/evogym copying build/lib.macosx-11.1-arm64-cpython-38/evogym/simulator_cpp.cpython-38-darwin.so -> build/bdist.macosx-11.1-arm64/egg/evogym creating build/bdist.macosx-11.1-arm64/egg/evogym/envs creating build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/DownStepper-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/rigid_3x3.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Lifter-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Traverser-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Jumper-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Balancer-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/BidirectionalWalker-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/GapJumper-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Thrower-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Balancer-v1.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Climber-v2.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/UpStepper-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Walker-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/CaveCrawler-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Climber-v1.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/package.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Climber-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/rigid_2x2.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/BridgeWalker-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Pusher-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Flipper-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/BeamSlider-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Carrier-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Hurdler-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/ObstacleTraverser-v1.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/ObstacleTraverser-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/ShapeChange.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/rigid_1x1.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/peg.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Carrier-v1.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/BeamToppler-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/PlatformJumper-v0.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/sim_files/Pusher-v1.json -> build/bdist.macosx-11.1-arm64/egg/evogym/envs/sim_files copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/climb.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/jump.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/__init__.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/traverse.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/manipulate.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/walk.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/flip.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/multi_goal.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/change_shape.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/balance.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs copying build/lib.macosx-11.1-arm64-cpython-38/evogym/envs/base.py -> build/bdist.macosx-11.1-arm64/egg/evogym/envs byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/world.py to world.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/sim.py to sim.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/viewer.py to viewer.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/__init__.py to __init__.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/utils.py to utils.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/climb.py to climb.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/jump.py to jump.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/__init__.py to __init__.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/traverse.py to traverse.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/manipulate.py to manipulate.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/walk.py to walk.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/flip.py to flip.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/multi_goal.py to multi_goal.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/change_shape.py to change_shape.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/balance.py to balance.cpython-38.pyc byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/envs/base.py to base.cpython-38.pyc creating stub loader for evogym/simulator_cpp.cpython-38-darwin.so byte-compiling build/bdist.macosx-11.1-arm64/egg/evogym/simulator_cpp.py to simulator_cpp.cpython-38.pyc creating build/bdist.macosx-11.1-arm64/egg/EGG-INFO copying evogym.egg-info/PKG-INFO -> build/bdist.macosx-11.1-arm64/egg/EGG-INFO copying evogym.egg-info/SOURCES.txt -> build/bdist.macosx-11.1-arm64/egg/EGG-INFO copying evogym.egg-info/dependency_links.txt -> build/bdist.macosx-11.1-arm64/egg/EGG-INFO copying evogym.egg-info/not-zip-safe -> build/bdist.macosx-11.1-arm64/egg/EGG-INFO copying evogym.egg-info/top_level.txt -> build/bdist.macosx-11.1-arm64/egg/EGG-INFO writing build/bdist.macosx-11.1-arm64/egg/EGG-INFO/native_libs.txt creating dist creating 'dist/evogym-1.0.0-py3.8-macosx-11.1-arm64.egg' and adding 'build/bdist.macosx-11.1-arm64/egg' to it removing 'build/bdist.macosx-11.1-arm64/egg' (and everything under it) Processing evogym-1.0.0-py3.8-macosx-11.1-arm64.egg creating /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/evogym-1.0.0-py3.8-macosx-11.1-arm64.egg Extracting evogym-1.0.0-py3.8-macosx-11.1-arm64.egg to /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages Adding evogym 1.0.0 to easy-install.pth file Installed /Users/me/miniforge3/envs/evogym/lib/python3.8/site-packages/evogym-1.0.0-py3.8-macosx-11.1-arm64.egg Processing dependencies for evogym==1.0.0 Searching for evogym==1.0.0 Reading https://pypi.org/simple/evogym/ Couldn't find index page for 'evogym' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ No local packages or working download links found for evogym==1.0.0 error: Could not find suitable distribution for Requirement.parse('evogym==1.0.0') ```

(I apologize for any unnatural parts of the text, as I used a translation service to create the text.)

TakesxiSximada commented 1 year ago

Hi, I had the same error too.

I think about evogym install process probrems has 2 factors(at least on macOS).


Type error

The first one, This simulator has inconsistent type definitions maybe. The line 271 of evogym/simulator/SimulatorCPP/Environment.cpp: There is a discrepancy in the type declaration in Eigen::Ref<Eigen::Matrix<double, -1, -1, 0>, 0, Eigen::OuterStride<-1>> This topic has already been mentioned here.

https://github.com/EvolutionGym/evogym/issues/15#issuecomment-1424633656

Actually I ran into a compilation error, fixed it as per his advice. And I was able to fix the compilation error. https://github.com/TakesxiSximada/evogym/commit/58c26593cf511fe3d8d4606b20180a8ddc6396b0

I'm not sure if this fix is reasonable, But at least I know that can work around the type error.


CMake version

The second factor is CMake version.

The latest version of CMake is 3.25.3, but the build fails evogym with this version. FindGLFW.cmake packaged with CMake seems to be the cause of the problem.

I've tried to build with some versions of CMake.

| cmake version | Original source | Patched source |
|---------------+-----------------+----------------|
|        3.22.2 | x               | o              |
|        3.24.2 | x               | o              |
|        3.25.1 | x               | x              |
|        3.25.3 | x               | x              |

(*) "Patched source" means https://github.com/TakesxiSximada/evogym/commit/58c26593cf511fe3d8d4606b20180a8ddc6396b0 has been applied.

By the way, you can avoid the error by deleting FindGLFW.cmake. e.g.) /usr/local/Cellar/cmake/3.25.3/share/cmake/Modules/FindGLEW.cmake