Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problem concerning simulation using MSVC (2022) on Windows 10 #20

Open
lenardxu opened this issue Jul 7, 2024 · 0 comments

Comments

@lenardxu
Copy link

lenardxu commented 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:
a_problem_autoplan_install_win

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?

@lenardxu lenardxu changed the title Compilation problem concerning simulation on Windows 10 Compilation problem concerning simulation using MSVC (2022) on Windows 10 Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant