- 262
- 2014
- 33
- Location
- netherlands
this is for the people that have trouble with Boost cmake
How to install and setup Boost
Hello, in this tutorial we will be going through the installation and setup process of the Boost library.
Links
Download the binaries though.
Boost 32bit 1.56.0 exe Download
MAKE SURE
CMake is closed.
The Boost version you downloaded is the latest version that TC supports.
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
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 it is 1.56.0. Other additional versions are optional to download, but it is best to stay updated.
-----------------------------------------------------
If you're getting these errors:
Could not find the following static Boost libraries:
boost_system
boost_thread
boost_program_options
Read below:
If you downloaded your Boost source from http://sourceforge.net/projects/boost/files/boost/ and you're using Windows, delete that folder and download the 32bit binaries. Assuming http://sourceforge.net/projects/boost/files/boost/ is for setting up boost without the libs already included. Downloading the 32bit executable already has the libs included in "lib32-msvc-12.0".
-----------------------------------------------------
Make sure the folder boost is in is accessible
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". Just make sure the folder you're setting the path to has the actual boost files inside of it.
Make sure CMake was closed during the new system variable addition. Else, restart the program.
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 it will need to be restarted for CMake to reload the data again -- it's best to keep it closed until we're done. Another side note, you DO NOT need to restart your PC.
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!
How to install and setup Boost
Hello, in this tutorial we will be going through the installation and setup process of the Boost library.
Links
Download the binaries though.
Boost 32bit 1.56.0 exe Download
MAKE SURE
CMake is closed.
The Boost version you downloaded is the latest version that TC supports.
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
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 it is 1.56.0. Other additional versions are optional to download, but it is best to stay updated.
-----------------------------------------------------
If you're getting these errors:
Could not find the following static Boost libraries:
boost_system
boost_thread
boost_program_options
Read below:
If you downloaded your Boost source from http://sourceforge.net/projects/boost/files/boost/ and you're using Windows, delete that folder and download the 32bit binaries. Assuming http://sourceforge.net/projects/boost/files/boost/ is for setting up boost without the libs already included. Downloading the 32bit executable already has the libs included in "lib32-msvc-12.0".
-----------------------------------------------------
Make sure the folder boost is in is accessible
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". Just make sure the folder you're setting the path to has the actual boost files inside of it.
Make sure CMake was closed during the new system variable addition. Else, restart the program.
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 it will need to be restarted for CMake to reload the data again -- it's best to keep it closed until we're done. Another side note, you DO NOT need to restart your PC.
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!