@@ -1439,16 +1439,22 @@ described elsewhere in this document.
1439
1439
1440
1440
After the SDK is installed, follow the remaining notes on the page link
1441
1441
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:
1443
1444
1444
1445
1) open Visual Studio Express IDE
1445
1446
1446
1447
2) Tools -> Options -> Projects and Solutions -> VC++ Directories
1447
1448
1448
1449
3) Add:
1449
1450
```
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
1452
1458
Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
1453
1459
```
1454
1460
@@ -1469,18 +1475,158 @@ AdditionalDependencies="kernel32.lib"
1469
1475
To read:
1470
1476
1471
1477
```
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"
1473
1480
```
1474
1481
1475
1482
The notes go on to show how to build a mswin32 application which you can try if you like -
1476
1483
I'm not going to recover that here.
1477
1484
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
+ ```
1478
1536
1479
1537
== Building Qt4.3.2 ==
1480
1538
1481
1539
You need a minimum of Qt 4.3.2 here since this is the first version to officially
1482
1540
support building the open source version of Qt for windows under MSVC.
1483
1541
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
+
1484
1630
1485
1631
1486
1632
0 commit comments