[Insight-users] compiling on windows 7 64bit

Josem jose at apollomit.com
Tue Jan 8 17:51:12 EST 2013


This is how i did it:
 tested with Microsoft Visual Studio 2010 Express, which is a free version
downloadable from the web. Can be downloaded from
here:http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products.
(The current guide has not been tested with MSVS 2012.)
•	Download the following software:
o	ITK Library: http://www.itk.org/ITK/resources/software.html
o	CMake: http://www.cmake.org/cmake/resources/software.html
•	Extract the ITK library into a folder.(Recommendation:  Keep the library
on a short path, something  like “c://ITK/” is the best option because MS VS
has problems with long paths).
•	Create another folder for the future ITK output. 
For instance: “c://ITKo/”orc://ITKoutput/”.
•	Install CMake. (Recommendation: Keep it in a short path. 
For instance: “c://cmake”).
•	Launch CMake and select the folders created, for the build and the output
folder.
•	Press Configure and select the compilation option.
o	For x86 select Visual Studio 10 (32 bits).
o	For x64 select Visual Studio 10 Win64.
•	Select use default native compilers.
•	Once the first configuration is done, CMake will show some options in red
that the user can select or deselect. Of these options disable the
following:
Disable BUILD_EXAMPLES
Disable BUILD_SHARED_LIBS
Disable BUILD_TESTING
o	Click on the “Configure” Button and wait until it finishes the
configuration, and the options are not in red anymore. 
o	Then click on the “Generate” Button.
o	After the generation of the binaries files, the output will be in the
“c://ITKo” folder.
o	Open the ITK.sln solution file with MS Visual Studio 2010. In this case it
was tested using the express version.
o	Once visual studio has loaded the entire solution, select build all and
click to build the entire library.
Additional Recommendations for ITK in Win 64
To be able to build ITK over a 64 bit environment using MS VS 2010 Express,
the computer must have the Microsoft Windows SDK 7 installed. Download this
software here:
http://www.microsoft.com/en-au/download/details.aspx?id=8279
And follow the following installation guide:
http://www.mathworks.com.au/support/solutions/en/data/1-FPLDGV/




--
View this message in context: http://itk-users.7.n7.nabble.com/compiling-on-windows-7-64bit-tp30490p30499.html
Sent from the ITK - Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list