该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

Getting started

Before you get scared by this long guide, we assure you the procedure is quite simple. Most of the following steps are to be performed only the first time you install Trinity and only the Trinity updating procedures will need to be run from time to time.

Required Software

See Requirements

Pulling & Compiling the SourcePulling the Source

Create a directory in which Core files will be pulled (for example: C:\Trinity).

Right-click on the directory and click on Git Extensions -> Clone.

Fill in the data as follows:

1、3.3.5

Repository to clone: https://github.com/TrinityCore/TrinityCore

Destination: C:\Trinity

Subdirectory to create:

Branch: 3.3.5

Personal Repository: Yes

2、6.x

Repository to clone: https://github.com/TrinityCore/TrinityCore

Destination: C:\Trinity

Subdirectory to create:

Branch: 6.x

Personal Repository: Yes

This will clone 6.x branch, note that this is NOT the recommended branch for starters.

Click Clone. Within a few minutes all of the TrinityCore source files will be pulled into the directory C:\Trinity.

Contents

Configuring and generating Visual C++ solutions with CMake

Before you begin, create an empty directory called Build. In this example, we will use D:\Build.

Note: If CMake do not recognize C/C++ compiler, choose Specific Native Compiler, and choose path to target vcvarsall.bat, e.g. C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat

Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat

Click Browse Source... -> Select the source directory (C:/Trinity) 2. Click Browse Build... -> Select the build directory (D:/Build) 3. Click Configure

4. Make sure Use default native compilers is checked 5. In the drop-down menu, choose the version of the compiler you downloaded in the Software Required section . 6. Click Finish.

7. Make sure Tools is checked. This will compile the map extractors needed later in the setup. 8. Click Configure again. 9. Click Generate. This will install the selected build files into your D:/Build folder.

Note: If MySQL is not found by CMake it is required to set MYSQL_INCLUDE_DIR = C:/mysql_libs/include and MYSQL_LIBRARY= C:/mysql_libs/lib_XX/libmysql.lib.

XX depends if you are compiling in 32 or 64 bits mode. (See the 9th point of the Windows requirement list in Requirements.)

Note 2: If you get linker errors (e.g "error LNK2019: unresolved external symbol mysql_server_init"), make sure MYSQL_LIBRARY is set to the libmysql.lib that matches your compile mode (x64 vs 32 bits).

(If you do not see the MYSQL fields in CMake, tick the Advanced box).

Tip: Use the WITH_SOURCE_TREE option to enable a pretty source tree structure in Visual Studio:

no source tree: flat: hierarchical:

Compiling the Source

Browse into your D:\Build folder and open TrinityCore.sln with Visual C++ Community.

On the menu at the top, click Build and select Configuration Manager.

Set Active Solution Configuration to Release

In the list menus below "Help", set Active Solution Platform to Win32 (if you set 64-bit compilation during the CMake configuration, select Win64)

click Close (settings get saved instantly).

Right-click ALL_BUILD in the Solution Explorer on the left sidebar and select Clean .

(on some VS2013 versions, click the Build menu and select Clean Solution.)

Right-click ALL_BUILD and select Build.

Compilation length differs from machine to machine, you should expect it to take 5-30 minutes.

If you are asked to "Reload build files" during the compile, do so.

When the build is complete, you will find a message similar to the one below (the numbers may be different).

========== Build: 22 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

You will find your freshly compiled binaries in the C:\Build\bin\Release or C:\Build\bin\Debug folder. These are all used to run your server at the end of this instruction.

You will need the following files in order for the core to function properly:

libeay32.dll

libmySQL.dll

ssleay32.dll

worldserver.conf.dist

worldserver.exe

authserver.conf.dist

authserver.exe

There are a few DLLs that needs to be manually added to this folder, and you need to copy them over from the following installation/bin directories:

libmySQL.dll - C:\Program Files\MySQL\MySQL Server 5.x\lib

libeay32.dll, ssleay32.dll - C:\OpenSSL-Win32\bin

libzmq-v120-mt-4_0_4.dll - C:\Program Files\ZeroMQ 4.0.4\bin

Keeping the Source Up-to-Date

TrinityCore Developers are always at work fixing and adding new features to the core. You can always check them here, or by viewing them from within Git Extensions.

Open your TrinityCore repository in GitExtensions.

Click on the blue arrow

In the new window, click Pull.

This will sync your local repo to the latest commits from the branch you have setup as default.

Now you will need to re-run CMake Configure & Generate to update your SLN files.

Compile

??

Profit!!

linux编译trinitycore,TC编译步骤之二代码安装相关推荐

  1. linux 架设J2EE网站过程分享之二 —— JDK安装

    本系列文章是我最近在搭建网站过程遇到的文件的分享,希望对也在建站的人有所帮助. 第一步:下载JDK jdk 下载地址: http://www.oracle.com/technetwork/java/j ...

  2. 在Linux下gcc缺省编译,在Linux下用gcc编译hello world

    1. 确保Linux系统里已经装好了gcc 测试:输入gcc后是如下的结果就说明已经安装成功 2. 创建HelloWorld.c 使用 touch 创建一个空文件; 用vim编辑 按下A或者I 插入 ...

  3. Linux 驱动开发之内核模块开发 (二)—— 内核模块编译 Makefile 入门

    一.模块的编译        我们在前面内核编译中驱动移植那块,讲到驱动编译分为静态编译和动态编译:静态编译即为将驱动直接编译进内核,动态编译即为将驱动编译成模块. 而动态编译又分为两种: a -- ...

  4. 简单实例讲解linux的module模块编译步骤

    简单实例讲解linux的module模块编译步骤 (2014-10-24 10:19:17) 标签: module linux 分类:Linux/Unix 本文将直接了当的带你进入linux的模块编译 ...

  5. Android 驱动(8)---简单实例讲解linux的module模块编译步骤

    简单实例讲解linux的module模块编译步骤 原博文地址http://blog.sina.com.cn/s/blog_4ba5b45e0102v25h.html ----------------- ...

  6. linux从源码编译cairo,Windows 下编译 cairo 二维图形库

    cairo 的简介 cairo 是一个免费的矢量绘图软件库,它可以绘制多种输出格式.cairo 支持许多平台,包括 Linux.BSD.Microsoft® Windows® 和 OSX(BeOS 和 ...

  7. linux编译trinitycore,在Ubuntu上搭建基于TrinityCore的魔兽私服

    为什么要架私服 最近有天突然想玩wow,但是现在的游戏太便当,又是月卡制,兴趣就没那么大了.突发奇想去玩私服,下好了客户端进去折腾了一会.后来我又想,为什么不自己架个私服玩呢?以前虽然折腾过,但用得是 ...

  8. linux下gcc编译的四个步骤,linux:gcc编译程序的四个阶段

    gcc的编译流程分为四个步骤,分别为: 预处理(Pre-Processing) 编译(Compiling) 汇编(Assembling) 链接(Linking) gcc指令的一般格式为:gcc [选项 ...

  9. Linux中gcc的编译、静态库和动态库的制作

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 Linux中gcc的编译.静态库.动态库 文章目录: 1 gcc的编译过程 1.1 gcc的编译过程 1.2 gcc的常用参数 2 gcc 静态库的制 ...

  10. Linux内核裁剪及编译

    Linux内核裁剪及编译可加载模块 一 Linux基础知识 linux内核组要由五个子系统组成: 进程调度 内存管理 文件系统 网络接口 进程间通信 Linux源码目录 arch    目录中包含于体 ...

最新文章

  1. python中调用多进程加速处理文件
  2. (4opencv)OpenCV PR 成功的收获和感悟
  3. Mac下安装jdk8
  4. C#如何用正则表达式截取https和带端口的域名
  5. map转字符串数组中 php_js将map转换成数组
  6. 数组shift方法_数组shift()方法以及JavaScript中的示例
  7. Atitit. Dwr 抛出异常error解决方案
  8. [译转]深入理解LayoutInflater.inflate()
  9. 删除exchange误发邮件
  10. ipvsadm命令的用法
  11. 根据当前节点获取所有上层结构的组织(递归算法)
  12. simulink中积分环节、惯性环节、比例环节
  13. 如何将多个TXT合并成一个TXT,文件名称提取
  14. 马克飞象怎么转成html,马克飞象教程
  15. MySQL索引的详细分析和数据结构
  16. java网课|包装类
  17. 首个实时全球空中交通监控系统在北大西洋上空全面投入运行和试用
  18. 微信小程序动态点赞php,微信小程序小组件 基于Canvas实现直播点赞气泡效果
  19. 【应用场景】智能定位胸牌帮你识别高质量月嫂
  20. Codeforces Round #495 C. Sonya and Robots

热门文章

  1. 同花顺黄金分割线及斐波那契数列分析网格(主图公式)
  2. 要开始算法了 什么顺序呢?
  3. UIView中的坐标转换
  4. Android连接数据库的问题
  5. Requirement-Driven Linux Shell Programming
  6. Object对象的内存布局学习总结
  7. Java集合Collection之实现原理解读(HashSet)
  8. ArrayList的动态扩容机制
  9. hadoop发行版本之间的区别
  10. EasyAndroid基础集成组件库之:EasyPhoto (单张)图片选择库