链接在这里
http://sourceforge.net/apps/trac/shareaza/wiki/Guides/Compiling%20Shareaza
不喜欢去哪里看的可以看下面,我放在这里主要是自己看方便
Microsoft Visual Studio 2008 Full Edition This needs to be a Full Edition preferably Team Edition and not the Express Release. If you want to compile to 64-bit, make sure to enable it during the install process under Add or Remove Features (Language Tools -> Visual C++ -> X64 Compilers and Tools).
Microsoft Visual Studio 2008 Service Pack 1 This fixes a lot of VS2008 errors so it is a must have. You can download the pack fromhttp://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
Microsoft Windows SDK v6.01 If you are installing a Full Edition of Visual Studio you should by default get Windows SDK installed. In my case Microsoft Windows v6.0A SDK was installed by default with Microsoft.Visual.Studio.Team.System.2008.Team.Suite. If v6.01 was not installed with your Visual Studio 2008 installation then you will need to download and install SDK v6.1 from http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en Please note that a full download of all installation options of SDK v6.1 is 1.2GB. For compiling purposes “Documentation” and “Samples” are not required. In installation options deselect all “Documentation” and “Samples” to reduce the instillation download size to 83.3MB.
I am using version 1.2.4 which you can download from http://www.gzip.org/. On some systems, possibly related to Windows 7 or Windows 64-bit, placing gzip in system32 will not be recognized. In that case, just put it somewhere else in Visual Studio's executable path, such as under 'Microsoft Visual Studio 9.0/Common7/Tools'.
You will only need to extract the zipped files and not compile the library.
Uncompress boost_1_39_0.zip to a drive/folder on your PC. ie X:/Program Files/boost_1_39_0
You need to make sure that Visual Studio is pointing to and including the boost library. Go to Tools -> Options -> Projects and Solutions -> VC++ Directories -> Win 32 - Include Files Make sure the first entry in the list is the path to your boost library. If the entry is not there add it. ie X:/Program Files/boost_1_39_0 Do the same for Tools -> Options -> Projects and Solutions -> VC++ Directories -> x64 - Include Files
Make sure you install the "Inno QuickStart Pack" not the standard setup/install. The "QuickStart Pack" includes additional components that are required that the standard setup does not include. When it asks you whether you want to download and install additional features be sure to choose yes [to at least ISTool]. I am using ispack-5.2.4.exe. Also make sure you install Inno on your C drive. I generally install my programs on another drive but found when setting up VS2005 last time that the visual studio project file used to build Shareaza used a script reference to access Inno. This script assumed that Inno was installed on C drive, so not having Inno installed on C drive caused an error in compiling. To avoid this potential problem I installed Inno on my C drive this time and had no problems.
6. Download and install TortoiseSVN from http://tortoisesvn.net.
Use TortoiseSVN "Checkout" with URL repository https://shareaza.svn.sourceforge.net/svnroot/shareaza/trunk/ to download current code. TortoiseSVN will notify you of updates to the program as they are made available.
Please note, the choice of SVN client is just a personal preference, other good SVN clients you can also use include AnkSVN and RapidSVN.
7. Download and install the old August 2007 DirectX SDK. http://www.microsoft.com/downloads/details.aspx?familyid=529F03BE-1339-48C4-BD5A-8506E5ACF571&displaylang=en
8. Add to include path Following the procedure in Step 4, add the DirectX SDK include to your include path. The DirectX SDK's include path is by default C:/Program Files/Microsoft DirectX SDK (August 2007)/Include
Once all the above is in place you can compile.
Open in VS2008 the following source file /vc9/Shareaza.sln This will open the "Solution" Go into Build -> Configuration Manager and set Shareaza build config eg Configuration = Debug / Platform = Win32 or Configuration = Debug / Platform = x64 Then select "Rebuild Solution" to start to compile At the end of a successful compile you will find a newly compiled installer in /setup/builds folder.
Note: If you try compiling an x64 build on a 32bit machine you will get the following repeated error "Project : error PRJ0019: A tool returned an error code from "Performing registration". This error occurs because you can not register 64bit DLLs on a 32bit machine! It is not advisable to compile a 64-bit build on 32-bit windows, as you cannot test what you are compiling.
The following is a useful link for keeping up to date with revision numbers and changes http://cia.vc/stats/project/shareaza/.rss.
As a side note, I found setting up with VS2008 was less problematic than VS2005.
Enjoy ;)