I managed to compile SimpleITK according to the instructions, and now I would like to start using it from C++.
I am looking for guidance on compiling one of the basic examples such as HelloWorld.cxx
or SimpleGaussianFunctional.cxx
from the command line (macOS). I see that there is an include
folder, which contains the required headers, and I can use them. There is also a lib
folder with many .a
files, but I am not sure which to link with (and how) to compile successfully.
Could someone give a short example of a compilation command?
Also, is cmake
a requirement for building programs that use SimpleITK? (I do not mean building SimpleITK itself, but using it from my own program.)
My ultimate goal is to expose a few filters to a high-level language that is not supported by SWIG. I am not very familiar with cmake
, and combining it with the build system that comes with this high-level language would make things even more difficult. I would very much prefer to start with the simplest possible compiler command line that can get the HelloWorld.cxx
example compiled and working.
If there is a documentation page that explains how to build my own programs with SimpleITK, please do let me know. After extensive searching, I was unable to find one.