Difference between revisions of "Slicer3:Build Instructions Windows"

From NAMIC Wiki
Jump to: navigation, search
m (Text replacement - "http://www.slicer.org/slicerWiki/index.php/" to "https://www.slicer.org/wiki/")
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Installing Cygwin'''
+
<big>'''Note:''' We are migrating this content to the slicer.org domain - <font color="orange">The newer page is [https://www.slicer.org/wiki/Slicer3:Build_Instructions_Windows here]</font></big>
 
 
Go to [http://www.cygwin.com/setup.exe http://www.cygwin.com/setup.exe]
 
 
 
You will get a pop-up window asking if you want to run or save this file.  Click 'Run'.  If a security warning pops up asking if you are sure you want to run the software, click 'Run' again. 
 
 
 
If you minimize your web browser window, you should now see a window titled 'Cygwin Net Release Setup Program'.  Click 'Next.'
 
 
 
Select 'Install from Internet', and click 'Next.'
 
 
 
The defaults are fine for the Choose Installation Directory page, click 'Next'
 
 
 
The default for Select Local Package Directory is also fine, click 'Next'
 
 
 
For 'Select Your Internet Connection', choose 'Direct Connection' and click 'Next'
 
 
 
Any of the download sites are fine to use.  Click 'Next'
 
 
 
You will now see a page titled 'Select Packages'.  In the upper right hand corner, there is a button labeled 'View'.  Click the 'View' button once to change the view to 'Full', and maximize the window so you can see all of the columns.
 
 
 
The package names are on the right.  On the left, you'll see that each package is labeled 'Skip', 'Keep', or has a version number.  We want to install these packages in addition to the defaults:
 
 
 
* curl
 
* cvs
 
* tcltk
 
* subversion
 
* unzip
 
 
 
For each of these packages, click on 'Skip' so that a version number appears.  After you have clicked on all of the above packages, click 'Next'.
 
 
 
At this point, Cygwin will start the download and install.
 
 
 
After the installation, you will see a 'Create Icons' screen.  The defaults are fine; click 'Finish'
 
 
 
You should now have an icon on your desktop that looks like a black C with a green arrow.  Double click the icon to start Cygwin.
 
 
 
'''Installing Microsoft Visual Studio Express'''
 
 
 
Go to the following webpage:
 
 
 
[http://www.microsoft.com/express/2005/download/default.aspx http://www.microsoft.com/express/2005/download/default.aspx]
 
 
 
Halfway down the page, there is a brown box labeled Microsoft Visual C++ 2005 Express Edition.  Click the 'Download' link inside that box.
 
 
 
A pop up window will ask if you want to run or save this file.  Click 'Run'
 
 
 
A setup window and progress bar will now appear.  After that finishes, you will see a 'Welcome to Setup' page.  Click 'Next'
 
 
 
Select 'I accept the terms of the license agreement' and click 'Next'
 
 
 
Make sure that only 'Graphical IDE' is checked (you don't need MSDN or SQL) and click 'Next'
 
 
 
The default Destination Folder is fine.  Click 'Install'
 
 
 
When you get to the 'Setup Complete' screen, click 'Exit'.
 
 
 
'''Building Slicer'''
 
 
 
After your computer reboots, double-click on the Cygwin icon on your desktop to open a Cygwin shell.
 
 
 
Type the following command at the Cygwin prompt:
 
 
 
svn co http://www.na-mic.org/svn/Slicer/trunk Slicer3
 
 
 
After the checkout completes, type:
 
 
 
./Slicer3/Scripts/getbuildtest.tcl
 
 
 
This will fail, but will set up a mostly correct directory structure.  Type:
 
 
 
rm -rf Slicer3-lib/CMake-build
 
 
 
Go to the following webpage:
 
 
 
[http://www.cmake.org/files/vCVS/cmake-2.7.20080410-win32-x86.exe http://www.cmake.org/files/vCVS/cmake-2.7.20080410-win32-x86.exe]
 
 
 
When prompted whether to run or save the program, click 'Run', and then 'Run' again when you see the security warning.  Minimize your browser window so you can see the CMake 2.7 Setup window.  Click 'Next', 'I Agree'.
 
 
 
Select 'Do not add CMake to the system PATH' and click 'Next'
 
 
 
Set destination folder to:
 
 
 
C:\cygwin\home\username\Slicer3-lib\CMake-build and click 'Next'
 
 
 
Leave the default Start Menu Folder, and click 'Install'  When the installation finishes, go back to your Cygwin window.
 
 
 
Now, type:
 
 
 
  ./Slicer3/Scripts/getbuildtest.tcl
 

Latest revision as of 18:07, 10 July 2017

Home < Slicer3:Build Instructions Windows

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