NIFTI-Imaging / nifti_clib

C libraries for NIFTI support
Other
35 stars 25 forks source link

How to build on Windows? #181

Open blackears opened 11 months ago

blackears commented 11 months ago

Sorry if this is a little off topic.

I would like to compile a library that I can link to from a C++ program. Ultimately, I want to create a wrapper that I can use to read and write .nii files in the Godot game engine.

I'm not great at porting code and the project looks like it's set up for compiling on Linux. I was wondering if you could recommend any way to get this to build a library in Visual Studio for Windows, or some similar environment?

Edit: If there are precompiled .lib or .dll files available for Windows, those would be great too.

pmolfese commented 10 months ago

No precompiled files unfortunately. You can add the files and makefiles to Visual Studio using a combination of wizards and examples though: https://learn.microsoft.com/en-us/cpp/build/reference/creating-a-makefile-project?view=msvc-170 https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170 https://learn.microsoft.com/en-us/cpp/build/reference/sample-makefile?view=msvc-170 https://learn.microsoft.com/en-us/cpp/build/reference/nmake-reference?view=msvc-170