The Common Man's Guide to compile ApexDC++ In Windows Vista Wrighten by the Common man
--Needed-----------------
-VS / VC++ .NET 2005
-Microsoft® Visual Studio® 2005 Team Suite Service Pack 1 Download
-Visual Studio 2005 Service Pack 1 Update for Windows Vista Download
-Patched WTL Download
-STLport 5.0.1 or newer (don't use betas RC's etc.) Download
-WMP SDK9 Download
-DX SDK feb2007 Download
-vld-10-src
-WinXPSP2Firewall_src
-Apex Source Download?
-StrongDc Source Download
I am going to do this guide Start to Finish
First of all you must download buy VS2005.net
Install this as normaly untill you get prompt that you need to download VS80sp1-KB926601-X86-ENU ,VS80sp1-KB932232-X86-ENU install both of these then vs will work on Vista ok ,
This is where i got stuck Xp you only need STLport and WTL and a few small bits
with vista setting up the enviroment you need to compile is a nighmare so here we go .....
Download WMP SDK9 The Microsoft® Windows Media® Player 9 Series Software Development Kit i was told i only need a few file from this as in all the packs you need but for some reason i could not compile with out the full packs.
Why we downloading you also need DX SDK feb2007 DirectX Software Development Kit these 2 are the bigest of the downloads so best to get these first
Smaller bits to download are vld-10-src & WinXPSP2Firewall_src small but hard to find i may say only a few files from theses are needed
Then there's the STLport and WTL (i am adding links above so you wont have as much trouble i had finding)
Ok then lets start i started with adding stlport first, i created a folder on drive C: called CVS in that folder i made a folder called stlport you unzip stlport in to that folder.
Open the folder up and double click on install and stlport with open a win32 window and start compiling itself.
When this has done create a folder again in CVS folder called WTL unzip WTL there .right thats the 2 bit need on xp let do the vista bit .
Create 4 more folders in CVS called DirectX WMP-SDK SP2-Firewall VLD.
Install DX SDK feb2007 to DirectX Folder WMP SDK9 to WMP-SDK folder
Unzip XPSP2 to SP2-Firewall and also Unzip vld-10-src to VLD folder.
Now with all that done its time to add these as includes to vs2005 .
-----Follow These Steps or it will not work----
OpenUp VS 2005 on the file menu select Tools then options this will open up a options box, on the left hand side of the options box at the bottom tick show all settings.
now you see all the setting's in the option box.
On the left had side select the Projects and solutions .Then in the submenu select VC++ Directories......Right now on your right hand side at the top Show directories.
on the pull down menu select Include files.
you have 5 button above the window click the one with a folder in and start addin the includes
-=as follow=-
C:\CVS\STLPort\stlport
C:\CVS\WTL
C:\CVS\WMP-SDK\include
C:\CVS\SP2-Firewall
C:\CVS\DirectX\Include
C:\CVS\VLD
STLport must be at the top of the list
Also in the pull down menu select Library files
and add the following in order
-=as follow=-
C:\CVS\STLPort\lib
C:\CVS\VLD
On both the parts above make sure your paths are right if you followed the guide with the CVS folder then there be right .
ok now we got vs in vista and its ready to compile
now you can download the apex source unzip it and start , remeber in the apex source add a folder called compiled
hope this help us commom guys out there..... Skynet
The Guide below is the standerd XP install For STLPort and WTL
Preparing STLport
1. Download the patched version of STLport from *coming soon* under Downloads
2. Unzip it into any directory i.e. E:\CVS\StrongDC\ STLport-5.0.1 <--- my dir
(Referenced as STLport dir)
3. Go to VS / VC++ 2005 look at the top menu:
Tools > Options > Projects & Solutions > VC++ directories
There you select Include Files (from dropdown menu) and you add the STLport header directory which is located in your STLport dir and named stlport.
Them make sure your STLport header directory is on the very top of the Include Files list.
Preparing WTL
1. Download WTL from *coming soon*
(Please note this is a patched WTL)
2. Extract to some folder. In my case E:\CVS\StrongDC
3. Rename folder include to WTL (Optional)
4. Go to VS / VC++ 2005 look at the top menu
Tools > Options > Projects & Solutions > VC++ directories
There you select Include Files (from dropdown menu) and you add your WTL dir
(in my case: E:\CVS\StrongDC\WTL)
Then click on the up arrow and make sure that the directory goes all the way to the second of the list.
5. Make sure STLport is at the TOP of the Include list of VS / VC++ 2005 & WTL is directly BELOW STLport.
Now you have WTL & STLport prepared !!!
--------------------------------------------------------------------
Get the missing natupnp files from: Here and put them to:
C:\ Program Files\Microsoft Visual Studio 8\VC\include\
--------------------------------------------------------------------
Compilation to .exe & .pbd
1. Go to dir where ApexDC++ source is and find file named StrongDC.sln and double-click it to open
Note: IF YOU HAVE SP2 SDK INSTALLED REMOVE IT FROM VS 2005 Include Files
(This was the thing that failed my compilation numerous of times)
2. Near the toolbars you should see a box with either Debug or Release in it, if it is set to Release leave it as it is otherwise change it to Release
3. right-click the Solution "StrongDC" (8 projects) and choose Build Solution
(after the first compile it's recommended to choose Rebuild Solution)
4. Wait it to Finnish.
5. After it has finished the .exe & .pdb file can be found from the ApexDC++ source dir in Compiled directory.
Edit: This is directly pasted from Word to Rich Text Editor on the forums so bare with the formatting...
--------------------