User Tag List

Page 1 of 4 1 2 3 4 LastLast
Results 1 to 7 of 23

Thread: How to install and setup Boost

  1. #1
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,399
    XP
    3,449,919
    Level
    378
    Thanks
    891
    Thanked 1,860 Times in 1,121 Posts

    How to install and setup Boost

    Hello, in this tutorial we will be going through the installation and setup process of the Boost library.


    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:
    1. 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.
    2. 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.
    3. Make sure the boost folder is accessible. Recommended location C:\ drive.
    4. 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".
    5. Make sure CMake was closed during the new system variable addition. Else, restart the program.
    6. 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!

  2. The Following 5 Users Say Thank You to Tommy For This Useful Post:


  3. #2
    Enthusiast
    Join Date
    Sep 2014
    Posts
    35
    XP
    1,797
    Level
    11
    Thanks
    2
    Thanked 7 Times in 4 Posts
    doesnt work for me

  4. #3
    Original Poster
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,399
    XP
    3,449,919
    Level
    378
    Thanks
    891
    Thanked 1,860 Times in 1,121 Posts
    Quote Originally Posted by cliffsmits View Post
    doesnt work for me
    You didn't do it correctly or your boost version is outdated.

  5. #4
    Noble Member Seraphim's Avatar
    Join Date
    Mar 2014
    Location
    United States
    Posts
    82
    XP
    49,981
    Level
    69
    Thanks
    14
    Thanked 13 Times in 7 Posts
    This is a very nice tutorial! Out of curiosity, do you know the way to set up TrinityCore without it? Someone did that for me, and I thought it could be a fairly nice tutorial written by someone who knows what they're doing.

  6. #5
    Original Poster
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,399
    XP
    3,449,919
    Level
    378
    Thanks
    891
    Thanked 1,860 Times in 1,121 Posts
    Quote Originally Posted by Valtorei View Post
    This is a very nice tutorial! Out of curiosity, do you know the way to set up TrinityCore without it? Someone did that for me, and I thought it could be a fairly nice tutorial written by someone who knows what they're doing.
    That, I'm assuming, was a CMake edit. It is best to add the system variable because when editing CMake, it can conflict with their (TC team) edits if they edited the same file. Editing the system variable is a one time edit and the CMake edit will just be a burden.


    Updated the thread is a "I'M GETTING ERRORS" portion to read through.

  7. #6
    Respected Member
    Join Date
    Aug 2013
    Posts
    57
    XP
    3,676
    Level
    17
    Thanks
    0
    Thanked 1 Time in 1 Post
    i get this error


    CMake Error at cmake/macros/FindBoost.cmake:1115 (message):
    Unable to find the requested Boost libraries.

    Boost version: 1.55.0

    Boost include path: C:/boost_1_55_0

    Could not find the following static Boost libraries:

    boost_system
    boost_thread
    boost_program_options

    No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
    directory containing Boost libraries or BOOST_ROOT to the location of
    Boost.
    Call Stack (most recent call first):
    cmake/macros/ConfigureBoost.cmake:28 (find_package)
    CMakeLists.txt:60 (include)

  8. #7
    Original Poster
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,399
    XP
    3,449,919
    Level
    378
    Thanks
    891
    Thanked 1,860 Times in 1,121 Posts
    Quote Originally Posted by albag View Post
    i get this error
    I'm working on this issue, give me some time to re-create the issue and resolve it.

    ------------------------------
    Found the issue and resolved it. View "I"M GETTING ERRORS" to fix your issue. The problem was you need to download the 32bit binaries, installer for that matter. The installer comes with pre-built library files, whilst downloading non-binaries which is, I'm assuming, "raw files" don't come with pre-built libs. They most likely would have to be built yourself -- in this case people don't want to do that and it is best to download the 32bit installer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •