Changeset 2282 for vidalia/trunk/INSTALL

Show
Ignore:
Timestamp:
01/06/08 14:07:33 (11 months ago)
Author:
edmanm
Message:

Add some instructions for compiling Vidalia using either Visual Studio or
from the command line with nmake.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/INSTALL

    r2231 r2282  
    7575 
    7676 
    77 Windows with Visual Studio (untested) 
    78 -------------------------------------- 
    79 To build Vidalia on Windows with Visual Studio, you will need to download and 
    80 patch the Qt for Windows source code from Trolltech. You can download the 
    81 original source from Trolltech: 
     77Windows with Visual Studio 
     78-------------------------- 
     79Starting with Qt 4.3.2, the open source editions of Qt/Win include support for 
     80Visual Studio. Previously, Visual Studio support was limited to commercial  
     81editions of Qt unless you patched Qt's source. 
    8282 
    83               http://trolltech.com/developer/downloads/qt/windows 
     83To build Vidalia under Visual Studio, you will first need to obtain Qt's  
     84source code and compile it with Visual Studio support. To do that, follow these 
     85steps: 
    8486 
    85 You will then need to apply the patches from the qt-win32 open source project 
    86 and recompile Qt: 
     87  1. Download Qt's source code from  
    8788 
    88               http://sourceforge.net/projects/qtwin/ 
     89      http://trolltech.com/developer/downloads/qt/windows 
    8990 
    90 After Qt is finished compiling, you can have CMake generate Visual Studio 
    91 project files for several different version of Visual Studio. To see which 
    92 generators are available, you can run 'cmake --help'. 
     91  2. Extract the source to some directory without spaces (e.g., C:\Qt\4.3.3) 
     92  
     93  3. Open a command prompt and 'cd' to the directory to which you extracted 
     94     Qt's source code. (e.g., 'cd C:\Qt\4.3.3') 
     95 
     96  4. Configure Qt with support for your version of Visual Studio. For example, 
     97     to configure Qt with support for Visual Studio 2005, you would run: 
     98 
     99       configure.exe -debug-and-release -static -fast -platform win32-msvc2005 
     100 
     101     See Qt's README file for more available platform options. 
     102 
     103  5. Compile Qt by running:   
     104      
     105                                    nmake.exe 
     106   
     107     (NOTE: This step will take several hours and lots of hard drive space.) 
     108  
     109Once you have Qt compiled with Visual Studio support, you can use CMake to 
     110generate a Visual Studio project file by running 
     111 
     112                          cmake -G "Visual Studio 8 2005" . 
     113 
     114or whatever your particular version of Visual Studio happens to be. 
     115'cmake --help' lists other available generators. 
     116 
     117 
     118Windows with NMake 
     119------------------- 
     120To compile Vidalia from the command line using NMake, you will first need to 
     121follow the steps under the 'Windows with Visual Studio' section for compiling 
     122Qt with Visual Studio support. 
     123 
     124If you want to build Vidalia from the command line, you can have CMake generate 
     125NMake makefiles by running: 
     126 
     127                     cmake -G "NMake Makefiles" . 
     128 
     129You can then compile Vidalia from the command line by simply running: 
     130 
     131                               nmake 
    93132 
    94133