https://public.kitware.com/Wiki/api.php?action=feedcontributions&user=Zindy&feedformat=atomKitwarePublic - User contributions [en]2024-03-29T11:41:17ZUser contributionsMediaWiki 1.38.6https://public.kitware.com/Wiki/index.php?title=Talk:ITK/MS_Free_Tool&diff=6839Talk:ITK/MS Free Tool2006-08-04T11:49:12Z<p>Zindy: 2006-08-04: What I needed to do to compile itk with the microsoft free compiler...</p>
<hr />
<div>This wiki page is a bit old. It's 2006-08-04 and I'm using cmake 2.4.3 and compiling itk 2.8.1<br />
<br />
Problem is, I'm not even sure all the bits needed to compile itk with the free microsoft compiler are where the page claims them to be (sorry, I haven't hunted for the bits in more than a year, wouldn't know).<br />
<br />
If ''you'' are using this wiki as a starting point for compiling itk, please consider updating the page with your own findings (or put it in the discussion if you're unsure).<br />
<br />
Having said all that, these are the problems I faced when compiling itk:<br />
* As of cmake 2.4 (and probably the cmake before that) I could not use cmakesetup without setting all the environment variables in setenv.bat and vcvars32.bat<br />
* lib.exe (which is required by cmake/nmake) is now missing. I found a replacement here: Search for "Eclipse plug-in for Symbian OS C++ development" with google, it's the page pf128.krakow.sdi.tpnet.pl/symbdev/ (sorry wiki thinks the link is spam...)<br />
The lib.exe available on the page is a wrapper around "link /lib". There's also a dumpbin.exe which wraps "link /dump". Copy both exe files in the same directory as your link.exe<br />
<br />
Environment variables I had to add (in control panel, system, advanced, environment variables, case might matter!):<br />
* APPVER : 5.0.1<br />
* Basemake : C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\BKOffice.Mak<br />
* Bkoffice : C:\Program Files\Microsoft Platform SDK for Windows XP SP2<br />
* CPU : i386<br />
* INCLUDE : C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include;C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\mfc<br />
* INETSDK : C:\Program Files\Microsoft Platform SDK for Windows XP SP2<br />
* LIB : C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib<br />
* MSSdk : C:\Program Files\Microsoft Platform SDK for Windows XP SP2<br />
* Mstools : C:\Program Files\Microsoft Platform SDK for Windows XP SP2<br />
* TARGETOS : WINNT<br />
* VCToolkitInstallDir : C:\Program Files\Microsoft Visual C++ Toolkit 2003\<br />
<br />
I also added the following to my PATH:<br />
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Bin;C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Bin\win95;C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;C:\Program Files\Microsoft.NET\SDK\v1.1\Bin<br />
<br />
Anybody knows which subset of these variables is actually required? Will changing the CPU variable result in faster code being compiled?<br />
<br />
Hope this helps...</div>Zindy