[Tutorial]Compiling TFS under Win64
Error after error and then I searched and I searched and I searched... "how to compile TFS under win64"?. After 2 days of searching I figured out how to it!. So I decided to do a tutorial for it! Haters gonna hate!
(And I am completely new to this so It may not be the best solution but It worked for me.
Things you will need:
- Microsoft Visual C++/Studio 2012 (2010 should work fine too)
- TFS SDK v1.0 for MSVC++ (thx Kornholijo): Download here!
- Boost: Download here!
- Boost Pre-Built Binaries: Download here!
Preparations
____________________________________________________________________________________________________
1. Download and install Microsoft Visual C++ (MSVC)
____________________________________________________________________________________________________
2. Create a folder (Name it whatever you like ex. VC) Inside of that folder you make two more named include and library64
Should look like this:
____________________________________________________________________________________________________
3. Copy all "lib64" files(not folders) inside TFS SDK into your VC/library64 folder.
Note: Make sure you also copy bin64 files inside openssl into your library64 folder.
Inside TFS SDK:
____________________________________________________________________________________________________
4. Now copy all include files(not folders) inside TFS SDK into your VC/include folder.
Inside TFS SDK:
____________________________________________________________________________________________________
5. Download Boost Pre-Built Binaries and extract all of it into your VC/library64 folder.
Note: Make sure you download the same version of Binaries as Boost. I’d recommend version 1_53(Latest for now).
____________________________________________________________________________________________________
6. Copy the downloaded boost folder into VC folder.
Now it should look like this:
Now you’re ready to open Microsoft Visual C++/Studio
Inside Microsoft Visual C++/Studio
____________________________________________________________________________________________________
1. Open Project
File > Open > Project/Solution…
Then => ex. C:/TFS/source/vc10/tfs.vcxproj
Note: If you got .dev file and not .sln or .vcxproj file you can’t compile in MSVC.
____________________________________________________________________________________________________
2. Now, make sure you got x64(win64) and release selected.
____________________________________________________________________________________________________
3. Go to Project > Properties
a)
Go to => Configuration Properties > VC++ Directories
Here I'm not quite sure because I have mixed and trixed too much so I don't know if it's standard or not.
It may be different from computer to computer so don't change anything at start! Wait and see if you got errors when compiling and if so, try these:
Include Directories:
Code:
$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include
Code:
$(VCInstallDir)lib\amd64;$(VCInstallDir)atlmfc\lib\amd64;$(WindowsSdkDir)lib\x64
b)
Go to => Configuration Properties > C/C++ > General
At Additional Include Directories:
Edit => Select your VC folder (the one you created earlier)
c)
Go to => Configuration Properties > Linker > General
At Additional Library Directories:
Edit => Select your library64 folder (the one you created earlier inside VC folder)
____________________________________________________________________________________________________
4. Let’s compile! Project > Rebuild…
If compile succeeded, you should find your tfs.exe in C:/.../source/vc10/x64/Release/
That's all. I hope it work as well for you as it did for me!
Last edited: