LegionCore-7.3.5 icon indicating copy to clipboard operation
LegionCore-7.3.5 copied to clipboard

Wiki for how to set this up is down

Open AwkwardOrpheus opened this issue 3 years ago • 23 comments

The links in the description for the wiki to set this up are invalid. I get a 404 from them

I tried following the base TrinityCore setup guide but I ran into a few problems like CMake having issues with regards to openssl. I used 1.1.1m and received issues making the build. After that, attempting to compile with Visual Studio was frustrating as well.

I eventually tried using 1.1.1 but I still had problems using Vistual Studio 2019 to compile the code. I feel like I'm missing something?

AwkwardOrpheus avatar Feb 08 '22 17:02 AwkwardOrpheus

@AwkwardOrpheus have you tried what is posted here?: https://github.com/dufernst/LegionCore-7.3.5/issues/37

dufernst avatar Feb 09 '22 00:02 dufernst

@AwkwardOrpheus have you tried what is posted here?: #37

I have indeed. I'm not 100% certain on what exact version of open ssl or CMake, mysql that i require.

I'm using mysql 8.0 64bit 1.1.1 OpenSSL CMake 3.14 BOOST 1.64

All are 64bit. I also run into this occasional error with CMake. I've tried multiple versions of CMake to avoid it, to no avail

CMake Warning (dev) at dep/boost/CMakeLists.txt:29 (find_package): Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Environment variable Boost_ROOT is set to:

C:/local/boost_1_64_0

For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it.

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

Boost version: 1.64.0

Boost include path: C:/local/boost_1_64_0

Could not find the following static Boost libraries:

      boost_system
      boost_filesystem
      boost_thread
      boost_program_options
      boost_iostreams
      boost_regex

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:29 (find_package)

Beyond that, I added the required binaries manually for BOOST but though i built with no errors, i still had struggles compiling it in Visual Studio

AwkwardOrpheus avatar Feb 09 '22 01:02 AwkwardOrpheus

Can you post full CMake log here?

eXPeRi91 avatar Feb 09 '22 06:02 eXPeRi91

Can you post full CMake log here?

Selecting Windows SDK version 10.0.16299.0 to target Windows 10.0.19042. CMake Deprecation Warning at CMakeLists.txt:18 (cmake_policy): The OLD behavior for policy CMP0005 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:20 (cmake_policy): The OLD behavior for policy CMP0043 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

Detected 64-bit platform MSVC: 64-bit platform, enforced -D_WIN64 parameter MSVC: Enabled increased number of sections in object files MSVC: Overloaded standard names MSVC: Disabled NON-SECURE warnings MSVC: Disabled POSIX warnings MSVC: Disabled generic compiletime warnings Found MySQL library: C:/Program Files/MySQL/MySQL Server 8.0/lib/libmysql.lib Found MySQL headers: C:\Program Files\MySQL\MySQL Server 8.0\include Found MySQL executable: C:/Program Files/MySQL/MySQL Server 8.0/bin/mysql.exe WARNING - Missing repository tags - you may need to pull tags with git fetch -t WARNING - Continuing anyway - note that the versionstring will be set to 0000-00-00 00:00:00 (Archived)

  • LegionCore

  • Build world/auth : Yes (default)

  • Build with scripts : Yes (default)

  • Build core w/PCH : Yes (default)

  • Build scripts w/PCH : Yes (default)

  • Show compile-warnings : No (default)

  • Use coreside debug : No (default)

  • Show source tree : Yes - "hierarchical"

CMake Warning (dev) at dep/boost/CMakeLists.txt:29 (find_package): Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Environment variable Boost_ROOT is set to:

C:/local/boost_1_64_0

For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it.

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

Boost version: 1.64.0

Boost include path: C:/local/boost_1_64_0

Could not find the following static Boost libraries:

      boost_system
      boost_filesystem
      boost_thread
      boost_program_options
      boost_iostreams
      boost_regex

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:29 (find_package)

Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Failed Found OpenSSL library: optimized;C:/Program Files/OpenSSL-Win64/lib/VC/libssl64MD.lib;optimized;C:/Program Files/OpenSSL-Win64/lib/VC/libcrypto64MD.lib;debug;C:/Program Files/OpenSSL-Win64/lib/VC/libssl64MDd.lib;debug;C:/Program Files/OpenSSL-Win64/lib/VC/libcrypto64MDd.lib Found OpenSSL headers: C:/Program Files/OpenSSL-Win64/include CMake Warning (dev) at cmake/macros/FindOpenSSL.cmake:221 (math): Unexpected character in expression at position 2: d

Call Stack (most recent call first): dep/openssl/CMakeLists.txt:16 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

SCRIPT PREPARATIONS -> Prepared: Spells -> Prepared: Commands -> Prepared: BrawlersGuild -> Prepared: BattlePay -> Prepared: Custom -> Prepared: Kalimdor -> Prepared: Maelstrom -> Prepared: Northrend -> Prepared: OutdoorPvP -> Prepared: Outland -> Prepared: PetBattle -> Prepared: World -> Prepared: Draenor -> Prepared: EasternKingdoms -> Prepared: Legion -> Prepared: Outland -> Prepared: Pandaria -> Prepared: Scenario -> Prepared: Maelstrom Configuring incomplete, errors occurred! See also "E:/Build/CMakeFiles/CMakeOutput.log". See also "E:/Build/CMakeFiles/CMakeError.log".

AwkwardOrpheus avatar Feb 09 '22 10:02 AwkwardOrpheus

Can you re-install OpenSSL-64 like that: Screenshot 2022-02-09 125018

And download boost_1_67_0-msvc-14.1-64.exe from: https://sourceforge.net/projects/boost/files/boost-binaries/1.67.0/boost_1_67_0-msvc-14.1-64.exe/download

eXPeRi91 avatar Feb 09 '22 10:02 eXPeRi91

Hi. The CMake process is finishing, however I do receive this error during the build. Not sure if it's part of the problem I'm facing next.

Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success Found OpenSSL library: optimized;C:/Program Files/OpenSSL-Win64/lib/VC/libssl64MD.lib;optimized;C:/Program Files/OpenSSL-Win64/lib/VC/libcrypto64MD.lib;debug;C:/Program Files/OpenSSL-Win64/lib/VC/libssl64MDd.lib;debug;C:/Program Files/OpenSSL-Win64/lib/VC/libcrypto64MDd.lib Found OpenSSL headers: C:/Program Files/OpenSSL-Win64/include CMake Warning (dev) at cmake/macros/FindOpenSSL.cmake:221 (math): Unexpected character in expression at position 2: d

Call Stack (most recent call first): dep/openssl/CMakeLists.txt:16 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

Beyond this step when I'm building in Visual Studio 2017 x64 I find that the build has plenty of errors while compiling. I clean it before attempting to build but I still run into many issues with errors.

Here is a list of the errors I get https://i.imgur.com/vbMcepd.png

Thank you so much for helping me by the way, I appreciate the patience so much!

AwkwardOrpheus avatar Feb 09 '22 11:02 AwkwardOrpheus

I can't open the image..

eXPeRi91 avatar Feb 09 '22 11:02 eXPeRi91

I can't open the image..

Hi, sorry, I've fixed the link.

AwkwardOrpheus avatar Feb 09 '22 11:02 AwkwardOrpheus

Have you change the Boost Environment to: C:/local/boost_1_67_0 ?

eXPeRi91 avatar Feb 09 '22 12:02 eXPeRi91

Have you change the Boost Environment to: C:/local/boost_1_67_0 ?

I have indeed. I feel like there might be something missing in Visual Studio. CMake is finishing the build as far as I can tell

Here's my environment path https://i.imgur.com/q86eH32.png

AwkwardOrpheus avatar Feb 09 '22 12:02 AwkwardOrpheus

Have you change the Boost Environment to: C:/local/boost_1_67_0 ?

I have indeed. I feel like there might be something missing in Visual Studio. CMake is finishing the build as far as I can tell

than https://sourceforge.net/projects/boost/files/boost-binaries/1.64.0/boost_1_64_0-msvc-14.1-64.exe/download and don't forget about Environment C:/local/boost_1_64_0

Btw. Which Compiler are you using?

eXPeRi91 avatar Feb 09 '22 12:02 eXPeRi91

Have you change the Boost Environment to: C:/local/boost_1_67_0 ?

I have indeed. I feel like there might be something missing in Visual Studio. CMake is finishing the build as far as I can tell

than https://sourceforge.net/projects/boost/files/boost-binaries/1.64.0/boost_1_64_0-msvc-14.1-64.exe/download and don't forget about Environment C:/local/boost_1_64_0

Btw. Which Compiler are you using?

cmake-3.22.2-windows-x86_64 with Visual Studio 2017 x64

AwkwardOrpheus avatar Feb 09 '22 12:02 AwkwardOrpheus

Have you change the Boost Environment to: C:/local/boost_1_67_0 ?

I have indeed. I feel like there might be something missing in Visual Studio. CMake is finishing the build as far as I can tell

than https://sourceforge.net/projects/boost/files/boost-binaries/1.64.0/boost_1_64_0-msvc-14.1-64.exe/download and don't forget about Environment C:/local/boost_1_64_0 Btw. Which Compiler are you using?

cmake-3.22.2-windows-x86_64 with Visual Studio 2017 x64

Same, you're good to go dude, just install 1_64_0 and set the environment to C:/local/boost_1_64_0. The compiler should build without any problems.

eXPeRi91 avatar Feb 09 '22 12:02 eXPeRi91

I'm really sorry for the trouble, but it didn't seem to build still.

https://i.imgur.com/oYovACa.png

I'm getting a whole lot more errors now. I'm using mysql 8.0

AwkwardOrpheus avatar Feb 09 '22 12:02 AwkwardOrpheus

Sorry, but you need to downgrade to 5.7 :( You can use the requirements for mysql: https://trinitycore.atlassian.net/wiki/spaces/tc/pages/10977296/Windows+Requirements

eXPeRi91 avatar Feb 09 '22 12:02 eXPeRi91

Sorry, but you need to downgrade to 5.7 :( You can use the requirements for mysql: https://trinitycore.atlassian.net/wiki/spaces/tc/pages/10977296/Windows+Requirements

That's okay, I'm just thankful you're helping me out! Will post my results when I've reinstalled MySQL

AwkwardOrpheus avatar Feb 09 '22 12:02 AwkwardOrpheus

Sorry, but you need to downgrade to 5.7 :( You can use the requirements for mysql: https://trinitycore.atlassian.net/wiki/spaces/tc/pages/10977296/Windows+Requirements

That's okay, I'm just thankful you're helping me out! Will post my results when I've reinstalled MySQL

I am glad I can help you.

eXPeRi91 avatar Feb 09 '22 12:02 eXPeRi91

Sorry, but you need to downgrade to 5.7 :( You can use the requirements for mysql: https://trinitycore.atlassian.net/wiki/spaces/tc/pages/10977296/Windows+Requirements

That's okay, I'm just thankful you're helping me out! Will post my results when I've reinstalled MySQL

I am glad I can help you.

The build was a success! Thank you so much for assisting me!

AwkwardOrpheus avatar Feb 09 '22 13:02 AwkwardOrpheus

I know this isn't much related, I tried to do the tutorial in TrinityCore explaining setting up the database, though that showed an automated process I've noticed this project does not have. How would I go about adding the database to avoid crashing?

AwkwardOrpheus avatar Feb 09 '22 16:02 AwkwardOrpheus

@AwkwardOrpheus You need to configure 4 databases: auth/char/world/hotfix and run their respective base SQL files: https://github.com/dufernst/LegionCore-7.3.5/tree/master/sql/base

Then apply the relevant updates to their respective databases, with the ordering found in the filename (e.g. 0001 -> 0002 -> 0003 -> etc): https://github.com/dufernst/LegionCore-7.3.5/tree/master/sql/updates

dufernst avatar Feb 09 '22 21:02 dufernst

Haven't wanted to create a new thread, but I'm at the point where, having installed MySQL server 5.7, and Boost 1.64, that I get 2 errors when attempting to build.

Both bnetserver and worldserver throw LNK1104 errors. LNK1104 cannot open file 'libboost_system-vc141-mt-1_64.lib'

I've added a separate Linker property to my boost stage directory, but still no dice.

If you have any suggestions to offer I'd love to hear them. Thanks!

TomPratchios avatar Nov 14 '22 18:11 TomPratchios

You might using a build type that won't work with the boost setup you have. If you are building Debug try Release or ReleaseWithDebugInfo or the other way around @TomPratchios .

dufernst avatar Nov 14 '22 22:11 dufernst

Thanks, @dufernst - I was doing RelWithDebug, switched to Debug, and got the same failure. So switched to Release and got the same failure as well.

I built the boost libraries in both 32/64 bit flavors in release as well as debug versions for 140-143. And to be honest, having the builds fail with one error each is the closest I've been to success.

If it matters, I'm using VS2022 but have compilers back to 14.0 installed. Tried it under VS2019 and didn't get any further. Have tried targeting 141, 142, and 143. And I seem to get the same failures under whichever IDE I use, no matter the settings.

I appreciate your input, and will see what else I can try.

Cheers.

EDIT: switched all the way down to VS 14 (2017) and I only get MYSQL errors now (5.7 installed/linked).

TomPratchios avatar Nov 14 '22 23:11 TomPratchios