You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
lenardxu
changed the title
Compilation problem concerning simulation on Windows 10
Compilation problem concerning simulation using MSVC (2022) on Windows 10
Jul 7, 2024
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 #18 (comment)
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?
The text was updated successfully, but these errors were encountered: