打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
TrinityCore

rinityCore - BOOST - How To Fix - ERROR - CMAKE

Alright, I know a lot of people who struggle installing and setting up boost that is now required to be able to compile a TrinityCore, therefor I thought I would share this tutorial.
I have nothing to do with it, and credits for creating it is unknown.


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.

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:

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

For any extra assistance, feel free to post below and I will help you out.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Move Temp and TMP Directories
批处理解决环境变量的问题
ant 中文手册--下载安装
installing Aglets Workbench
System Administration
Setting up a Windows, Linux or Mac OS X Android Studio Development Environment
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服