Skip to content

Commit 608b183

Browse files
author
timlinux
committed
A few more additions for so called simplified MSVC install procedure
git-svn-id: http://svn.osgeo.org/qgis/trunk@7405 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 56c3072 commit 608b183

File tree

1 file changed

+150
-4
lines changed

1 file changed

+150
-4
lines changed

INSTALL.t2t

+150-4
Original file line numberDiff line numberDiff line change
@@ -1439,16 +1439,22 @@ described elsewhere in this document.
14391439

14401440
After the SDK is installed, follow the remaining notes on the page link
14411441
above to get your MSVC Express environment configured correctly. For your
1442-
convenience, these are summarised again below:
1442+
convenience, these are summarised again below, and I have added a couple
1443+
more paths that I discovered were needed:
14431444

14441445
1) open Visual Studio Express IDE
14451446

14461447
2) Tools -> Options -> Projects and Solutions -> VC++ Directories
14471448

14481449
3) Add:
14491450
```
1450-
Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
1451-
Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
1451+
Executable files:
1452+
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
1453+
1454+
Include files:
1455+
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
1456+
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\atl
1457+
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc
14521458
Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
14531459
```
14541460

@@ -1469,18 +1475,158 @@ AdditionalDependencies="kernel32.lib"
14691475
To read:
14701476

14711477
```
1472-
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
1478+
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
1479+
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
14731480
```
14741481

14751482
The notes go on to show how to build a mswin32 application which you can try if you like -
14761483
I'm not going to recover that here.
14771484

1485+
== Edit your vsvars ==
1486+
1487+
Backup your vsvars32.bat file in
1488+
1489+
```
1490+
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools
1491+
```
1492+
1493+
and replace it with this one:
1494+
1495+
```
1496+
@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
1497+
@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC
1498+
@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
1499+
@SET FrameworkVersion=v2.0.50727
1500+
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
1501+
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
1502+
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
1503+
1504+
@echo Setting environment for using Microsoft Visual Studio 2005 x86 tools.
1505+
1506+
@rem
1507+
@rem Root of Visual Studio IDE installed files.
1508+
@rem
1509+
@set DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
1510+
1511+
@set PATH=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;%PATH%
1512+
@rem added by Tim
1513+
@set PATH=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin;%PATH%
1514+
@set INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;%INCLUDE%
1515+
@rem added by Tim
1516+
@set INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;%INCLUDE%
1517+
@set INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc;%INCLUDE%
1518+
@set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;%LIB%
1519+
@rem added by Tim
1520+
@set LIB=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;%LIB%
1521+
@set LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
1522+
1523+
@goto end
1524+
1525+
:error_no_VSINSTALLDIR
1526+
@echo ERROR: VSINSTALLDIR variable is not set.
1527+
@goto end
1528+
1529+
:error_no_VCINSTALLDIR
1530+
@echo ERROR: VCINSTALLDIR variable is not set.
1531+
@goto end
1532+
1533+
:en
1534+
1535+
```
14781536

14791537
== Building Qt4.3.2 ==
14801538

14811539
You need a minimum of Qt 4.3.2 here since this is the first version to officially
14821540
support building the open source version of Qt for windows under MSVC.
14831541

1542+
Download Qt 4.x.x source for windows from
1543+
1544+
```
1545+
http:\\www.trolltech.com
1546+
```
1547+
1548+
Unpack the source to
1549+
1550+
```
1551+
c:\Qt\4.x.x\
1552+
```
1553+
1554+
1555+
1556+
1557+
1) open Visual Studio Express IDE
1558+
1559+
2) Tools -> Options -> Projects and Solutions -> VC++ Directories
1560+
1561+
3) Add:
1562+
```
1563+
Executable files:
1564+
$(QTDIR)\bin
1565+
1566+
Include files:
1567+
$(QTDIR)\include
1568+
$(QTDIR)\include\Qt
1569+
$(QTDIR)\include\QtCore
1570+
$(QTDIR)\include\QtGui
1571+
$(QTDIR)\include\QtNetwork
1572+
$(QTDIR)\include\QtSvg
1573+
$(QTDIR)\include\QtXml
1574+
$(QTDIR)\include\Qt3Support
1575+
1576+
Library files:
1577+
$(QTDIR)\lib
1578+
1579+
Source Files:
1580+
$(QTDIR)\src
1581+
```
1582+
1583+
== Environment Variables
1584+
1585+
Right click on 'My computer' then select the 'Advanced' tab. Click environment variables and
1586+
create or augment the following '''System''' variables:
1587+
1588+
```
1589+
Variable Name: Value:
1590+
--------------------------------------------------------------------------
1591+
EDITOR vim
1592+
INCLUDE C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\.
1593+
LIB C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\.
1594+
LIB_DIR C:\dev\cpp\qgislibs-release
1595+
PATH C:\Program Files\CMake 2.4\bin;%SystemRoot%\system32;
1596+
%SystemRoot%;
1597+
%SystemRoot%\System32\Wbem;
1598+
"c:\Program Files\Microsoft Visual Studio 8\Common7\Tools";
1599+
c:\Qt\4.3.2\bin;
1600+
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\.;
1601+
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\WinNT\;
1602+
C:\Program Files\svn\bin;C:\Program Files\Microsoft Visual Studio 8\VC\bin;
1603+
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
1604+
"C:\Program Files\PuTTY"
1605+
QTDIR c:\Qt\4.3.2
1606+
SVN_SSH "C:\\Program Files\\PuTTY\\plink.exe"
1607+
1608+
1609+
1610+
1611+
== Install CMake ==
1612+
1613+
Download and install cmake 2.4.7 or better, making sure to enable the
1614+
option
1615+
1616+
```
1617+
Update path for all users
1618+
```
1619+
1620+
== Install Subversion ==
1621+
1622+
You '''must''' install the command line version if you want the CMake svn scripts to work.
1623+
Its a bit tricky to find the correct version on the subversion download site as they have
1624+
som misleadingly named similar downloads. Easiest is to just get this file:
1625+
1626+
http://subversion.tigris.org/downloads/1.4.5-win32/apache-2.2/svn-win32-1.4.5.zip
1627+
1628+
1629+
14841630

14851631

14861632

0 commit comments

Comments
 (0)