-
Notifications
You must be signed in to change notification settings - Fork 399
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 Issues with Pinocchio Headers on Windows Using MSVC and Clang #2145
Comments
Could you share your log files? |
Using MSVC: Command entries:
Output:
The test cpp file is named kinematics.cpp and it just imports a few pinocchio header files. The CMakeLists.txt file for the same is:
Hope this clears things up and I'd be happy to provide more details if I missed anything. |
Can you share your conda environment (i.e. |
This is my conda list:
and here is the output of the
I hope this helps. |
Nothing strage seems to be in the env variable. Just to try, can you try to install |
Thanks for the suggestions. After installing
Is there anything else I could try? |
You can actually try clang by installing the clang package, and setting:
and then configure with Ninja on a clean build. From the CI it seems that also |
Hello @ShadowDawg, I can reproduce a part of your issue. Add the following line in your CMakeLists.txt: add_definitions("-DNOMINMAX") Pinocchio must be build with this define on Windows to avoid conflict with the Windows min/max macro. In the future release, this define will be exported in pinocchioConfig.cmake (you will not have to define it yourself). I don't know why you have a |
Hi @jorisv . |
I'm encountering problems when attempting to compile a simple C++ project with Pinocchio headers on Windows. The project fails to compile with both MSVC and Clang compilers, presenting different issues.
MSVC Compiler: Results in over 100 errors before compilation terminates.
Clang Compiler: While the cmake command executes without issues, running make leads to the error:
The Pinocchio documentation only mentions using the GCC compiler but due to project constraints I have to use either MSVC or Clang.
Are there any specific instructions or updates to support compilation with MSVC or Clang on Windows? It would be really helpful to me.
Thanks in advance!
The text was updated successfully, but these errors were encountered: