This is from my labmate who tried to build on windows and made it work. Let me know if this helps.
"When running python setup.py install, you might encounter some compile errors with M_PI being undefined or something like that. To fix it, add #define _USE_MATH_DEFINES to the top of simulation/redmax/CollisionDetection/ode/odeBoxBox.cpp. In addition, comment out the line set(CMAKE_CXX_STANDARD_LIBRARIES -ldl) in both simulation/CMakeLists.txt and simulation/redmax/CMakeLists.txt , since this library doesn't exist on Windows."
Thanks a lot for sharing the installation advice on Windows in the first place. However, when I exactly followed your procedure, there was a compilation problem, i.e., the hang on the 'Generating Code...' during the compilation. The corresponding traceback is extracted below:
To give you more details, I used Visual Studio 2022 for the compilation. And I used the release builds.
After I googled this issue, I found two solutions: 1. disable the optimization of the compilation under the release builds; 2. switch to the debug builds. However, both options have a significant impact on the performance of simulation in the run-time. That said, the simulation runs super slow.
Hence, could you help me out there according to your experience?
This is from my labmate who tried to build on windows and made it work. Let me know if this helps.
"When running
python setup.py install
, you might encounter some compile errors with M_PI being undefined or something like that. To fix it, add #define _USE_MATH_DEFINES to the top of simulation/redmax/CollisionDetection/ode/odeBoxBox.cpp. In addition, comment out the line set(CMAKE_CXX_STANDARD_LIBRARIES -ldl) in both simulation/CMakeLists.txt and simulation/redmax/CMakeLists.txt , since this library doesn't exist on Windows."And use this environment yml instead: https://drive.google.com/file/d/1FZm8f-d3ba09MEEIJ1fQkRw7fnKZStaw/view?usp=sharing
Originally posted by @yunshengtian in https://github.com/yunshengtian/Assemble-Them-All/issues/18#issuecomment-2054083070
Thanks a lot for sharing the installation advice on Windows in the first place. However, when I exactly followed your procedure, there was a compilation problem, i.e., the hang on the 'Generating Code...' during the compilation. The corresponding traceback is extracted below:
To give you more details, I used Visual Studio 2022 for the compilation. And I used the release builds.
After I googled this issue, I found two solutions: 1. disable the optimization of the compilation under the release builds; 2. switch to the debug builds. However, both options have a significant impact on the performance of simulation in the run-time. That said, the simulation runs super slow.
Hence, could you help me out there according to your experience?