| 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: |
| | 77 | Windows with Visual Studio |
| | 78 | -------------------------- |
| | 79 | Starting with Qt 4.3.2, the open source editions of Qt/Win include support for |
| | 80 | Visual Studio. Previously, Visual Studio support was limited to commercial |
| | 81 | editions of Qt unless you patched Qt's source. |
| 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 | |
| | 109 | Once you have Qt compiled with Visual Studio support, you can use CMake to |
| | 110 | generate a Visual Studio project file by running |
| | 111 | |
| | 112 | cmake -G "Visual Studio 8 2005" . |
| | 113 | |
| | 114 | or whatever your particular version of Visual Studio happens to be. |
| | 115 | 'cmake --help' lists other available generators. |
| | 116 | |
| | 117 | |
| | 118 | Windows with NMake |
| | 119 | ------------------- |
| | 120 | To compile Vidalia from the command line using NMake, you will first need to |
| | 121 | follow the steps under the 'Windows with Visual Studio' section for compiling |
| | 122 | Qt with Visual Studio support. |
| | 123 | |
| | 124 | If you want to build Vidalia from the command line, you can have CMake generate |
| | 125 | NMake makefiles by running: |
| | 126 | |
| | 127 | cmake -G "NMake Makefiles" . |
| | 128 | |
| | 129 | You can then compile Vidalia from the command line by simply running: |
| | 130 | |
| | 131 | nmake |