forked from Mogara/QSanguosha
-
Notifications
You must be signed in to change notification settings - Fork 60
/
README.vs2010
24 lines (13 loc) · 1.4 KB
/
README.vs2010
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
How to build QSanguosha with VS2010
1. If you do not know what VS2010 means, or if you don't know how to install it, or if you are using linux/Mac, please find the red button with a cross sign on this window (it's usually located on the top right corner if you are using Windows), and click it.
2. Download the following packages:
(1) QT libraries for Windows (Visual Studio 2010) http://qt.nokia.com/downloads/windows-cpp-vs2010
(2) QT Visual Studio Add-in http://qt.nokia.com/downloads/visual-studio-add-in
(3) Lateset swigwin (swig for Windows) http://www.swig.org/download.html
3. Create a tools/swig folder under your source directory. Unzip swigwin and copy all unzipped files to tools/swig. To make sure you copied them to the right directory hierachy, check if this file exists: <Your source direcotry>/QSanguosha/tools/swig/swig.exe
4. Go to font directory, unzip font.7z.
5. Install QT libraries for Windows and QT Visual Studio Add-in you downloaded in the first step.
6. Open Qsanguosha.sln right under <Your source directory>/Qsanguosha/builds/vs2010.
7. Right click project "QSanguosha" in your Solution Explorer, select "Properties", go to "Debugging" tab, set "Working Directory" to "$(ProjectDir)..\..\" (do not enter the quote marks). Then select "OK".
8. In "Solution Explorer", select "Translation Files", right click "sanguosha.ts" and then "lrelease"
9. You are now able to build and run the solution.