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

How to build Open3D to be able to wrap the DLL for a .NET project? #7062

Open
2 of 3 tasks
reiseder opened this issue Nov 19, 2024 · 1 comment
Open
2 of 3 tasks

How to build Open3D to be able to wrap the DLL for a .NET project? #7062

reiseder opened this issue Nov 19, 2024 · 1 comment
Labels

Comments

@reiseder
Copy link

reiseder commented Nov 19, 2024

Checklist

My Question

I'm trying to compile Open3D to get a DLL which I can use in C++ project which exports methods that I can use in a .NET C# project via P/Invoke.

I have tried hints from #2889 and #5608, or whatever I could find on StackOverflow. Information is sparse.

I managed to build a DLL that I can use in a C++ console application that I created in Visual Studio but not in a project that is compiled to a DLL containing __declspec(dllexport).

As soon as I include Open3D.h my build fails with errors from various Open3D header files. I only have .NET/C# background so I don't know why it's even trying to build these files.

I'm only using the Windows runtime and I have tried to compile main and 0.18.0. The 0.18.0 build fails and/or the INSTALL target doesn't work as expected.

Do you have any information on this?

@reiseder
Copy link
Author

When I try to build the main branch with STATIC_WINDOWS_RUNTIME=ON it fails with the following error:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant