LegionCore-7.3.5
LegionCore-7.3.5 copied to clipboard
Wiki for how to set this up is down
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 have you tried what is posted here?: https://github.com/dufernst/LegionCore-7.3.5/issues/37
@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
Can you post full CMake log here?
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".
Can you re-install OpenSSL-64 like that:
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
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!
I can't open the image..
I can't open the image..
Hi, sorry, I've fixed the link.
Have you change the Boost Environment to: C:/local/boost_1_67_0 ?
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
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?
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
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.
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
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
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
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.
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!
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 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
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!
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 .
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).