Tommy
Founder
Hello, in this tutorial we will be going through the installation and setup process of the Boost library.
Required Sources
Before you continue
Make sure:
Not recommended:
I'm getting errors:
Installing Boost
Find the drive you want to install Boost files in. Mine will be in C:\ drive. Here's what it should look like after extraction:
Setting up BOOST_PATH
Again, make sure CMake is closed. If CMake is not closed after you add the new System Variable, CMake will need to be restarted.
For Windows 7 (and if Windows 8 is the same) users, here's how to set up the System Variable in your Environment Variables:
For Windows XP, follow this link to access the Environment Variables: http://support.microsoft.com/kb/310519
For Windows Vista, follow this link to access the Environment Variables: http://support.microsoft.com/kb/931715
For the operating systems I did not list you will need to find and do them yourself as I'm not familiar with it.
Computer -> System Properties -> Advanced System Settings -> Environment Variables -> New System Variable -> Variable Name: BOOST_ROOT, Variable value: Your/Boost/Path.
Go to Computer and click System Properties or open your Control Panel, click System and Security -> System:
Computer -> System Properties
Control Panel -> System and Security -> System
After that, click on Advanced System Settings:
Once you've done that the System Properties window will appear, and on the bottom of the System Properties window you should see "Environment Variables."
Click Environment Variables. After you have that done the Environment Variables window will appear. You should be looking at System Variables.
Under System Variables click "New." It should now have prompt you with the "New System Variable Window"
Variable Name: BOOST_ROOT
Variable Value: PATH_TO_YOUR_BOOST_DIRECTORY
Here is what mine looks like (remember I extracted mine into my C:\ drive):
Click OK and you're done!
Required Sources
- Boost - (Make sure the version you choose TC supports it.)
If there's a newer version of boost and TC supports it, click the "Boost Download Page" link above and download the current release. Download the binaries though.
Before you continue
Make sure:
- CMake is closed.
- The Boost version you downloaded TC supports it. It is recommended to stay updated.
Not recommended:
- It is not recommended to edit your CMake source to bypass the System Variable addition. It can have conflicts if that same file was edited by TC team (or other team) and you'd have to deal with that. It is best to add the System Variable because it is a one time edit whilst the CMake edit can be a burden.
I'm getting errors:
- Version not supported: Make sure TrinityCore supports your boost version. If you go to "TCSOURCE/cmake/macros/FindBoost.cmake" and on this line (line numbers will be inconsistent overtime if they update this file) you can find the latest version of Boost TC supports. Right now the highest version supported is 1.60.0. Other additional versions are optional to download, but it is best to stay updated.
- Could not find the following static Boost libraries: Make sure the static libraries are in your boost_X_XX_X folder. Static library folder is called "lib32-msvc-XX.0" or "lib64-msvc-XX.0" for 64bit- "XX" is the msvc version. For example, "boost_1_60_0-msvc-14.0-64.exe" is 64 bit and "boost_1_60_0-msvc-14.0-32.exe" is 32bit "14.0" is Visual Studio 2015. Overall, this error can be resolved if you have the static library folder in the BOOST_ROOT directory.
- Make sure the boost folder is accessible. Recommended location C:\ drive.
- Make sure you're linking the variable path to the boost directory only and not a folder inside of boost. For example: "C:\boost_1_56_0" is a correct path, incorrect: "C:\boost_1_56_0\boost".
- Make sure CMake was closed during the new system variable addition. Else, restart the program.
- Make sure if you're compiling in 32bit you have all 32bit binaries.
Installing Boost
Find the drive you want to install Boost files in. Mine will be in C:\ drive. Here's what it should look like after extraction:
Setting up BOOST_PATH
Again, make sure CMake is closed. If CMake is not closed after you add the new System Variable, CMake will need to be restarted.
For Windows 7 (and if Windows 8 is the same) users, here's how to set up the System Variable in your Environment Variables:
For Windows XP, follow this link to access the Environment Variables: http://support.microsoft.com/kb/310519
For Windows Vista, follow this link to access the Environment Variables: http://support.microsoft.com/kb/931715
For the operating systems I did not list you will need to find and do them yourself as I'm not familiar with it.
Computer -> System Properties -> Advanced System Settings -> Environment Variables -> New System Variable -> Variable Name: BOOST_ROOT, Variable value: Your/Boost/Path.
Go to Computer and click System Properties or open your Control Panel, click System and Security -> System:
Computer -> System Properties
Control Panel -> System and Security -> System
After that, click on Advanced System Settings:
Once you've done that the System Properties window will appear, and on the bottom of the System Properties window you should see "Environment Variables."
Click Environment Variables. After you have that done the Environment Variables window will appear. You should be looking at System Variables.
Under System Variables click "New." It should now have prompt you with the "New System Variable Window"
Variable Name: BOOST_ROOT
Variable Value: PATH_TO_YOUR_BOOST_DIRECTORY
Here is what mine looks like (remember I extracted mine into my C:\ drive):
Click OK and you're done!
Last edited: