3DSlicer source code compilation process Vs2008+windows XP [GO]

Source: Internet
Author: User
Tags svn client qt designer

Download QT Source code compilation

1. Brief description
Under Windows2000/xp/vista, install VS2008, QT 4.7.2, and build QT integrated development environment on VS2008, use VS2008 development environment to develop, debug QT program;
2. Required procedures
VS2008 and VS2008SP1//VS2008 installation procedures;
qt-everywhere-opensource-src-4.7.4.tar.gz//QT 4.7.4 Windows Library
Qt-vsintegration-1.3.1.exe or Qt-vs-addin (qt-vs-addin-1.1.8.exe)//VS2008 for QT plugin

3. Operation Steps
3.1 Installing VS2008
Under Windows, go to the vs2008/directory and double-click the Setup.exe program;
Each time you follow the prompts, click on the "Next" button;
3.2 Installing the QT 4.7.4 source code

Click Qt-everywhere-opensource-src-4.7.4.tar.gz extract to a directory, such as the c:/qt/4.7.4 directory (the path does not contain spaces, otherwise it will compile error);
3.3 Compiling QT 4.7.4
①WINDOWS2000/XP adds a system environment variable Qmakespec with a value of win32-msvc2008
② add C:/qt/4.7.4/bin to the path of the system environment variable
③ from the Windows Start button, open the VS2008 Command program with the following path:
Visual Studio Tools---Microsoft Visual Studio 2005, Start-to-Program
In VS2008 Command program, enter the QT 4.7.4 source code directory, such as:
> c:/
> CD c:/qt/4.7.4
Execute the Configure directory with the following parameters:
>configure.exe-opensource-confirm-license-debug-webkit-nomake Examples-nomake Demos

After waiting for some time, run the NMAKE command, such as:
> NMAKE
Wait a few hours (depending on machine conditions), compile successfully;

3.4 Installing the VS2008 QT plugin
Double-click the execution Qt-vsintegration-1.3.1.exe (registration code Baidu) or Qt-vs-addin (Qt-vs-addin-1.1.8.exe) program can be;


3.5 Setting Environment parameters
In "System environment parameters", add an environment variable:
Qtdir = c:/qt/4.7.4
That is, the variable is named Qtdir
Variable value is c:/qt/4.7.4

3.6 Configuring the VS2008 environment
Start VS2008;
Select menu: "Tools"-〉 "Options";
In the pop-up window, select "QT", "Builds" in the number list on the left, and add a variable to the right:
+--------------+-----------------------------------------------+
|            Name | Path |
+--------------+-----------------------------------------------+
|     qt4.7.4 | c:/qt/4.7.4 |
+--------------+-----------------------------------------------+

At this point, the environment settings are complete;

4. On the Windows side test
Open VS2008, click on the Menu "File", "New", "Project", "Qt Projects", "QT Application", and enter the appropriate parameters and variables, click OK.
Then you can use QT Designer and QT class library freely in VS2008.
The debugging method of Windows side is similar to normal VC program debugging;

Two download git and install

Install the software git-1.7.9-preview20120201.exe , I install the directory is D:\Git, after the installation is completed D:\Git\bin added to the system variable path

Triple Install SVN client

3.1 Download and install SLIKSVN for Http://www.sliksvn.com/en/download

3.2 Download and install the Cygwin software for http://www.cygwin.com/

Four Downloads Slicer4 source code

1 Double-click Cygwin.bat, enter the following command:

CD I:

SVN Co http://svn.slicer.org/Slicer4/trunk Slicer

2 then create a folder named Slicer4-superbuild under the I disk.

Five use CMake compile source code to generate the SLn file

1 Double-click Cygwin.bat, open Cgywin, enter

CD I:cmake2.8/bin

./cmake-gui.exe

After you have configured the parameters after opening the CMake interface, you need to configure multiple times until no red lines appear in the interface, then click Generate.

Six compiled sln file generation 3DSlicer

Open the Slicer.sln located under I:\Slicer4-SuperBuild with VS2008 and click Build Solution. This phase needs to be compiled for a long time, depending on the configuration of the computer you are using.

Note that at this time can not break the network, SLICER4 in the compilation process need to download a lot of software source code, such as: ITK, VTK and so on.

If the build succeeds, then open the Slicer.sln that is under I:\Slicer4-SuperBuild\Slicer-build to build the solution.

Click Slicer.exe on the I:\Slicer4-SuperBuild\Slicer-build to open the Slicer4.

Note: Compiling Qt4.7.4 and Slicer4.1 takes up a total of 23G of space in the I disk, before compiling to see if there is enough space.

Transferred from: http://blog.sina.com.cn/s/blog_5ff6097b010101mc.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.