Difference between revisions of "Slicer:Build Instructions:MSVS9"

From NAMIC Wiki
Jump to: navigation, search
Line 1: Line 1:
−
I had to add the following to slicer_variables.tcl '''and''' slicer_variables2.tcl:
+
<big>'''Note:''' We are migrating this content to the slicer.org domain - <font color="orange">The newer page is [http://www.slicer.org/slicerWiki/index.php/Slicer:Build_Instructions:MSVS9  here]</font></big>
−
 
 
−
if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
 
−
  set ::GENERATOR "Visual Studio 8 2005"
 
−
  set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"
 
−
  set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
 
−
}
 
−
 
 
−
This after installing the latest Visual C++ 2008 Express Edition from http://www.microsoft.com/express/download/
 
−
 
 
−
I also had to run the vcsetup.exe, then the PSDK installer, then vcsetup.exe a final time before getting a Studio directory.
 
−
 
 
−
OK, this is not working.  Going to try with "NMake Makefiles"
 
−
 
 
−
Nope.  Doesn't work that way either.
 
−
 
 
−
CMake must not be compatible with the latest VCExpress, should be able to download VC++ 2005 [http://www.microsoft.com/express/2005/download/default.aspx here], but it's not cooperating.  Found the old version at: [http://go.microsoft.com/fwlink/?LinkId=51410&amp;clcid=0x409 "VC++ 2005 here"]
 
−
 
 
−
=== My Case (seems successful) ===
 
−
# Download Visual C++ 2008 Express Edition (VC 9) and the PSDK.
 
−
# Obtain Slicer3 by svn and run getbuildtest.tcl as written in the instruction. This will fail because the cmake comes with Slicer3-lib_win32.zip is old and does not know about VC 9.
 
−
# Remove installed cmake in $SLICER_LIB/CMake-build
 
−
# Obtain the latest cmake from [http://www.cmake.org/files/vCVS/ here]. Download .exe version (pre-compiled version) and install onto $SLICER_LIB/CMake-build. (Note: one person had a problem by using cmake build by himself. Using pre-complied one seems safer.)
 
−
# Modify slicer_variables.tcl and slicer_variables2.tcl as described above, but "Visual Studio 8 2005" to be replaced by "Visual Studio 9 2008".
 
−
# Run getbuildtest.tcl again. Good luck.
 
−
 
 
−
(As of Jan 4 2008, I encountered an error in line 45 of Slicer3/Utilities/Launcher/CMakeLists.txt. You can avoid it by replacing "" to ".".)
 

Revision as of 20:26, 20 May 2008

Home < Slicer:Build Instructions:MSVS9

Note: We are migrating this content to the slicer.org domain - The newer page is here