finufft icon indicating copy to clipboard operation
finufft copied to clipboard

Are there a .dll file to call in windows C#, please?

Open yolanda0409 opened this issue 1 year ago • 5 comments

I need to call the finufft in C# on Windows, I did not find a .dll file to use, how could I generate it please? Thank you .Yolanda

yolanda0409 avatar Oct 13 '23 22:10 yolanda0409

The offcial code does not have dllexport and dllimport enabled for windows. I have a local fork which enables dllexport and dllimport. If you would like to test the beta dll, I'm happy to generate one and send to you.

lu1and10 avatar Oct 16 '23 19:10 lu1and10

The offcial code does not have dllexport and dllimport enabled for windows. I have a local fork which enables dllexport and dllimport. If you would like to test the beta dll, I'm happy to generate one and send to you.

Thank you for responding to the question. I would like to test the beta DLL. Could you please generate it and send it to me? I greatly appreciate your assistance. Thank you very much.

yolanda0409 avatar Oct 16 '23 23:10 yolanda0409

The offcial code does not have dllexport and dllimport enabled for windows. I have a local fork which enables dllexport and dllimport. If you would like to test the beta dll, I'm happy to generate one and send to you.

Thank you for responding to the question. I would like to test the beta DLL. Could you please generate it and send it to me? I greatly appreciate your assistance. Thank you very much.

You can get the windows dll in the following link https://github.com/lu1and10/finufft/suites/17372004395/artifacts/992757451 I never tested with C#, the dll is linked to C++ code, not sure it works.

lu1and10 avatar Oct 18 '23 16:10 lu1and10

The offcial code does not have dllexport and dllimport enabled for windows. I have a local fork which enables dllexport and dllimport. If you would like to test the beta dll, I'm happy to generate one and send to you.

Thank you for responding to the question. I would like to test the beta DLL. Could you please generate it and send it to me? I greatly appreciate your assistance. Thank you very much.

You can get the windows dll in the following link https://github.com/lu1and10/finufft/suites/17372004395/artifacts/992757451 I never tested with C#, the dll is linked to C++ code, not sure it works.

I tried it in C++ on windows, it works well. Thank you very much. But in C#, I may need to wrap it again, because it uses fftw3.dll.

yolanda0409 avatar Oct 19 '23 21:10 yolanda0409

I think this can be solved by using cmake with -DFINUFFT_FFTW_LIBRARIES=DOWNLOAD -DFINUFFT_STATIC_LINKING=OFF it will build a single dll with everything baked in. Could you try and let us know?

DiamonDinoia avatar Jul 17 '24 18:07 DiamonDinoia