Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.
Comentarios: Added extra line about opening the solution directly from CMake

...

Info

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 Windows Core Installation.)

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).

Note 3: If you get an error that CMake can't find OpenSSL, check the advanced checkbox.

Find the OpenSSL in the list and point to the correct directories (you have to point to the OpenSSL root and the OpenSSL include directories)

Compiling the Source 

Browse In Visual Studio, browse into your DC:\Build folder and open TrinityCore.sln with Visual Studio Community.

  • if you are using CMake 3.8.0 or newer, you can use the button [Open Project] to open the solution directly with VS.

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

...