Jump to content
TrinityCore

Recommended Posts

If you build the server to C:/TrinityCoreBuild, you cannot launch the binaries from C:/TrinityCoreBuild/bin/Release/worldserver.exe

You can either copy the contents of the Release directory somewhere else OR, as explained, use the CMAKE_INSTALL_PREFIX to put the files in the correct place automatically (once you compile the INSTALL project in Visual Studio or run "make install" on Linux).

  • Upvote 1

Share this post


Link to post
Share on other sites

If you want to use the automatic script recompiler you must use the INSTALL target. otherwise it won't reinstall changed libraries.

You don't have to do additional stuff when you use the INSTALL target.

  • Upvote 1

Share this post


Link to post
Share on other sites

Hi, I have a problem with the server files. I do not know much English, so maybe I'll write weird.
I tried to compile version 4.3.4, but some files were not generated, among them missing authserver.exe, worldserver.exe and mmap_extractor.exe.
I thought it would be a problem with that version, but I downloaded and compiled the 3.3.5 that appears in the guide and did not generate any of the files mentioned, nor did the extraction files.
I think the problem may be from cmake, when generating the files the following message appears:
"WARNING: Target "common" requests linking to directory "C:/local/boost_1_59_0/libs/system". Targets may link only to libraries. CMake is dropping the item."

This warning appears repeatedly when cmake goes through several directories, among them, those responsible for generating the mentioned files.

I had to manually specify a path for cmake to find the boost libraries it was telling me, but I think the path I've specified is not correct. The libraries that cmake can not find automatically are:

Boost_DIR-NOTFOUND
Boost_FILESYSTEM_LIBRARY_DEBUG-NOTFOUND
Boost_FILESYSTEM_LIBRARY_RELEASE-NOTFOUND
Boost_IOSTREAMS_LIBRARY_DEBUG-NOTFOUND
Boost_IOSTREAMS_LIBRARY_RELEASE-NOTFOUND
Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG-NOTFOUND
Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE-NOTFOUND
Boost_SYSTEM_LIBRARY_DEBUG-NOTFOUND
Boost_SYSTEM_LIBRARY_RELEASE-NOTFOUND
Boost_THREAD_LIBRARY_DEBUG-NOTFOUND
Boost_THREAD_LIBRARY_RELEASE-NOTFOUND

I left the error indicating that cmake did not find those libraries so I indicated the path C: \ local \ boost_1_59_0 \ libs and in that folder I looked for the ones cmake said to me, but obviously it is not that, because cmake did not find them.

Sin título.png

 

I think that's the reason I do not have those files, does anyone know how I can fix it?
To clarify, the "tools" field is marked in the configuration.

Share this post


Link to post
Share on other sites
17 minutes ago, Aokromes said:

I sugest you to downgrade to boost 1.63

thanks for the answer aokromes, I’d tried first with boost 1.59, and later i tried with 1.64. 

I'll try now with 1.63 version, back in a moment.

Share this post


Link to post
Share on other sites

Okay I installed boost version 1.63, I solved the problem of the libraries in cmake, I do not see any error or warning, cmake found the libraries automatically (I put it now in c: / boost_1_63_0).

The problem now is when I finish compiling with visual studio 2017, it sends the following message:

========== Compilar: 22 correctos, 3 incorrectos, 0 actualizados, 0 omitidos ==========

 

I checked if I had the files and only generated them:

2.png

 

Then looking for the errors in the output of visual studio, I found 2 that refer to the missing files.

1.png

 

3.png

 

 

Share this post


Link to post
Share on other sites
1 hour ago, Aokromes said:

you mixed 32 and 64 bits mysql libraries.

The problem was that I installed appserv and xampp in 32-bit version, so they generated conflict with visual studio. I just uninstalled them and re-installed mysql community server, with that the problem has been solved. Now I was able to get all the files and the compilation did not give me any error. Thanks Aokromes, you are my hero!

Sin título4.png

Edited by kmilo93sd

Share this post


Link to post
Share on other sites

Kmilo93sd are you using a different version of trinitycore for a different language or what because I don't even have the option to change the directory for cmake to locate the directory for boost, which I will try 63 since my other computer doesn't see it and I can't set the path to the libraries for boost because I don't get the option to unless there is a command in cmake I can do which I think there is I just need to look it up, thanks for the post it helps with my problem too.

  • Upvote 1

Share this post


Link to post
Share on other sites
2 hours ago, codeman8214 said:

Kmilo93sd are you using a different version of trinitycore for a different language or what because I don't even have the option to change the directory for cmake to locate the directory for boost, which I will try 63 since my other computer doesn't see it and I can't set the path to the libraries for boost because I don't get the option to unless there is a command in cmake I can do which I think there is I just need to look it up, thanks for the post it helps with my problem too.

Hi, I do not understand much english, I do not know if I understand correctly what you want. Do you need to manually set the boost path in cmake? In that case, you must have the "advanced" box active, it's up, beside the add button

Edited by kmilo93sd
  • Upvote 1

Share this post


Link to post
Share on other sites

Hey guys, when I try to build the solution for Legion using Visual Studio Community 2017 I get the following errors:

TC error.PNG

I'm on Windows 10, 64-bit, and both the CMake and Build configurations were set to x64. I'm not sure if it's of any use but when I went to check the file for the first two errors an additional error showed up:

TC error2.PNG

The line causing the 3 errors in the mysql_com.h file is 'my_socket fd;'.

Share this post


Link to post
Share on other sites

Update your source, this error was fixed last night.

Share this post


Link to post
Share on other sites
1 minute ago, CDawg said:

Update your boost library. It's looking for a 64 bit boost.

It is the latest version.  Tried both the 32-bit and 64-bit versions. Also switched the project's architecture in Visual Studio

Share this post


Link to post
Share on other sites
6 minutes ago, j8a2b0e7 said:

It is the latest version.  Tried both the 32-bit and 64-bit versions. Also switched the project's architecture in Visual Studio

I don't see boost in your cmake output. Did you skip a step?

 

    1. Add an environment variable to "System" variables named "BOOST_ROOT" pointing to your Boost installation directory, e.g "C:/local/boost_1_60_0".
      (Make sure that it does not have a trailing slash. If you still get problems, add the same variable in the "USER" variables section too, like shown in the image below.)


      boost_envs.PNG?version=1&modificationDat
    2. Notice that this image shows the version number 1.59.0 - use your actual version number in your settings.
       
  1. Restart CMake if it was already running

Share this post


Link to post
Share on other sites

Help Please

inux min 18.1
Boost 1.64
GNU 5.4.0
OpenSSL 1.0.2g
mysql  Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using  EditLine wrapper
cmake version 3.5.1
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
ZLIB: version 1.2.8

installed clang and Afl-clang.

 

7.2 master

 

When i cmake i get no errors other than pthread shows 4 lines before found.but finishes no errors. when i do the make it goes to 23% and fails with line after line of this type of stuff.

/home/trinity/TrinityCore/src/server/game/Server/Packets/QueryPackets.h:235:43: error: declaration of ‘TaggedPosition<Position::XYZ> WorldPackets::Query::CorpseLocation::Position’ [-fpermissive]

 

I am not enough of a programmer to find the fault. probably have the wrong version of something. Any directions for a struggling newb?

CMakeError.log

Edited by new-b-e
add more info

Share this post


Link to post
Share on other sites

Reloaded OS 3 more times and it compiled. Running boost 1.58 and now everything is working. thanks so much for all the help.

Edited by new-b-e
Things changed

Share this post


Link to post
Share on other sites

**Description:**

When I try compile with CMake then I got this error.

----------------------------

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

  Boost version: 1.64.0

  Boost include path: D:/boost_1_64_0

  Could not find the following static Boost libraries:

          boost_system
          boost_filesystem
          boost_thread
          boost_program_options
          boost_iostreams

  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.  If you still have problems search on forum for TCE00020.
Call Stack (most recent call first):
  dep/boost/CMakeLists.txt:37 (find_package)

----------------------------

I Installed boost 1.64.0 and add it to the systemvariables

See here -> https://www.dropbox.com/s/qk0xbv870ku3wfo/systemvariables.jpg?dl

**Branch(es):**

master


**TC hash/commit**:

5b754ee08c433302531bbbb66aabf898d594dc1b
 
**TDB version**: 

newest
 
**Operating system**:  

Windows 10 Pro 64bit

 

Share this post


Link to post
Share on other sites
1 hour ago, ChiefMcClane said:

**Description:**

When I try compile with CMake then I got this error.

----------------------------

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

  Boost version: 1.64.0

  Boost include path: D:/boost_1_64_0

  Could not find the following static Boost libraries:

          boost_system
          boost_filesystem
          boost_thread
          boost_program_options
          boost_iostreams

  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.  If you still have problems search on forum for TCE00020.
Call Stack (most recent call first):
  dep/boost/CMakeLists.txt:37 (find_package)

----------------------------

I Installed boost 1.64.0 and add it to the systemvariables

See here -> https://www.dropbox.com/s/qk0xbv870ku3wfo/systemvariables.jpg?dl

**Branch(es):**

master


**TC hash/commit**:

5b754ee08c433302531bbbb66aabf898d594dc1b
 
**TDB version**: 

newest
 
**Operating system**:  

Windows 10 Pro 64bit

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
    • By Wark
      I'd just like to get a little insight to why so much of the current Trinitycore code doesn't match up to a few years ago.
      Now I know I'm not a pro at coding on Trinitycore and I understand that the core is open sourced but these just seem so significant and doesn't seem right to remove this stuff.
       
      Let me give an example. Lets say I'm watching this tutorial to get a little information about classes and methods that I can use when making a script. (I've also been using the Trinitycore Code Documentation as reference as well but it also seems to show the same issues)
      Although the tutorial is a little out of date, I don't see why OnGossipSelect doesn't exist anywhere in CreatureScript and that when I try to link the script to the core code it spits out this error.
      object of abstract class type "GossipTeleporter" is not allowed:
      pure virtual function "CreatureScript::GetAI" has no overrider
      The DEFINES of "ADD_GOSSIP_ITEM" and many more don't exist either.
       
      Am I missing something? All I want to know is if the core is mean't to be this way and if not should I download an older version of the core before I put to much working into my current core.
      (I downloaded my core right from the Trinitycore website tutorial)
       
      I'm currently trying to write a simple gossipteleporter that will let you talk to an npc and teleport to the given location. It's very hard to do this when so many things just don't exist within my core.
       
      EXTRA: I pasted this into a new custom script just to see if I would get errors and I got a lot of different errors: http://pastebin.com/raw/G62e0t49
      This was obtained from here: http://www.ac-web.org/forums/showthread.php?129885-Request-Teleporter-NPC-for-TrinityCore
      By no means am I looking to copy the code from the two links above, I was using them as a test to see if my core accepted them.
       
      Thanks,
      Wark
    • By Cantte
      Well ... today I was about to compile the trinity core version for WoW 4.3.4 of this repository "https://gitlab.com/trinitycore/TrinityCore_434". Download them and when you use the cmake, I generate the solution correctly. When I began to compile this went well until I got to the last step, when I was 90% practically.
      This was the error:
      Main.obj: error LNK2019: external symbol SSLeay_version unresolved referred to in the function "public: void __cdecl <lambda_4a2d53ce610f18dba0b4b4d6532c13a7> :: operator () (void) const" (?? R <lambda_4a2d53ce610f18dba0b4b4d6532c13a7> @@ QEBAXXZ)
      25> scripts.lib (cs_server.obj): error LNK2001: external symbol SSLeay_version unresolved
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved sk_num external symbol referenced in the tcp_connect function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved sk_value external symbol referenced in the tcp_connect function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved sk_pop_free external symbol referenced in the tcp_connect function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: outer symbol OPENSSL_add_all_algorithms_noconf unresolved referenced in the soap_ssl_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: external symbol SSL_load_error_strings unresolved referenced in the soap_ssl_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved external SSLv23_method symbol referenced in the ssl_auth_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: external symbol SSL_library_init unresolved referenced in the soap_ssl_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: external symbol SSL_state unresolved referenced in the tcp_connect function
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_num_locks unresolved referred to in the function "void __cdecl OpenSSLCrypto :: threadsCleanup (void)" (? ThreadsCleanup @ OpenSSLCrypto @@ YAXXZ)
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_set_locking_callback unresolved referred to in the function "void __cdecl OpenSSLCrypto :: threadsCleanup (void)" (? ThreadsCleanup @ OpenSSLCrypto @@ YAXXZ)
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_THREADID_set_numeric unresolved referred to in the function "void __cdecl threadIdCallback (struct crypto_threadid_st *)" (? ThreadIdCallback @@ YAXPEAUcrypto_threadid_st @@@ Z)
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_THREADID_set_callback unresolved referenced in the function "void __cdecl OpenSSLCrypto :: threadsCleanup (void)" (? ThreadsCleanup @ OpenSSLCrypto @@ YAXXZ)
      25> common.lib (ARC4.obj): error LNK2019: external symbol EVP_CIPHER_CTX_init unresolved referred to in the function "public: __cdecl ARC4 :: ARC4 (unsigned int)" (?? 0ARC4 @@ QEAA @ I @ Z)
      25> common.lib (HmacHash.obj): error LNK2019: unresolved HMAC_CTX_init external symbol referenced in the "struct hmac_ctx_st * __cdecl HMAC_CTX_new (void)" function (? HMAC_CTX_new @@ YAPEAUhmac_ctx_st @@ XZ)
      25> common.lib (HmacHash.obj): error LNK2019: unresolved HMAC_CTX_cleanup external symbol referenced in the "void __cdecl HMAC_CTX_free (struct hmac_ctx_st *)" function (? HMAC_CTX_free @@ YAXPEAUhmac_ctx_st @@@ Z)
      25> E: \ Server-Wow \ TrinityCore_434-4.3.4 \ Build \ bin \ RelWithDebInfo \ worldserver.exe: fatal error LNK1120: 16 external unresolved
      25> Compilation of the "worldserver.vcxproj" project completed - ERROR.
      26> ------ Compile operation started: project: ALL_BUILD, configuration: RelWithDebInfo x64 ------
      26> Building Custom Rule E: /Server-Wow/TrinityCore_434-4.3.4/CMakeLists.txt
      26> CMake does not need to re-run because E: /Server-Wow/TrinityCore_434-4.3.4/Build/CMakeFiles/generate.stamp is up-to-date.
      ========== Compile: 23 correct, 3 incorrect, 0 updated, 0 omitted ==========
       
      And this is the original error in Spanish (since I use the compiler in Spanish)
       
      Main.obj : error LNK2019: símbolo externo SSLeay_version sin resolver al que se hace referencia en la función "public: void __cdecl <lambda_4a2d53ce610f18dba0b4b4d6532c13a7>::operator()(void)const " (??R<lambda_4a2d53ce610f18dba0b4b4d6532c13a7>@@QEBAXXZ)
      25>scripts.lib(cs_server.obj) : error LNK2001: símbolo externo SSLeay_version sin resolver
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo sk_num sin resolver al que se hace referencia en la función tcp_connect
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo sk_value sin resolver al que se hace referencia en la función tcp_connect
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo sk_pop_free sin resolver al que se hace referencia en la función tcp_connect
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo OPENSSL_add_all_algorithms_noconf sin resolver al que se hace referencia en la función soap_ssl_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSL_load_error_strings sin resolver al que se hace referencia en la función soap_ssl_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSLv23_method sin resolver al que se hace referencia en la función ssl_auth_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSL_library_init sin resolver al que se hace referencia en la función soap_ssl_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSL_state sin resolver al que se hace referencia en la función tcp_connect
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_num_locks sin resolver al que se hace referencia en la función "void __cdecl OpenSSLCrypto::threadsCleanup(void)" ([email protected]@@YAXXZ)
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_set_locking_callback sin resolver al que se hace referencia en la función "void __cdecl OpenSSLCrypto::threadsCleanup(void)" ([email protected]@@YAXXZ)
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_THREADID_set_numeric sin resolver al que se hace referencia en la función "void __cdecl threadIdCallback(struct crypto_threadid_st *)" ([email protected]@[email protected]@@Z)
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_THREADID_set_callback sin resolver al que se hace referencia en la función "void __cdecl OpenSSLCrypto::threadsCleanup(void)" ([email protected]@@YAXXZ)
      25>common.lib(ARC4.obj) : error LNK2019: símbolo externo EVP_CIPHER_CTX_init sin resolver al que se hace referencia en la función "public: __cdecl ARC4::ARC4(unsigned int)" ([email protected]@[email protected]@Z)
      25>common.lib(HmacHash.obj) : error LNK2019: símbolo externo HMAC_CTX_init sin resolver al que se hace referencia en la función "struct hmac_ctx_st * __cdecl HMAC_CTX_new(void)" ([email protected]@[email protected]@XZ)
      25>common.lib(HmacHash.obj) : error LNK2019: símbolo externo HMAC_CTX_cleanup sin resolver al que se hace referencia en la función "void __cdecl HMAC_CTX_free(struct hmac_ctx_st *)" ([email protected]@[email protected]@@Z)
      25>E:\Server-Wow\TrinityCore_434-4.3.4\Build\bin\RelWithDebInfo\worldserver.exe : fatal error LNK1120: 16 externos sin resolver
      25>Compilación del proyecto "worldserver.vcxproj" terminada -- ERROR.
      26>------ Operación Compilar iniciada: proyecto: ALL_BUILD, configuración: RelWithDebInfo x64 ------
      26>Building Custom Rule E:/Server-Wow/TrinityCore_434-4.3.4/CMakeLists.txt
      26>CMake does not need to re-run because E:/Server-Wow/TrinityCore_434-4.3.4/Build/CMakeFiles/generate.stamp is up-to-date.
      ========== Compilar: 23 correctos, 3 incorrectos, 0 actualizados, 0 omitidos ==========
       
       
      Thanks.
×