What's new

Error while compiling trinitycore

a7mad3ayya6

Verified Member
4
2017
1
Hello I have been trying to compile the most recent trinitycore using Microsoft visual community 2017 but when I run the build solution order it only gets 18/22 right and I get 4 errors the errors are these:
Severity Code Description Project File Line Suppression State
Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' authserver E:\Build\src\server\authserver\libboost_program_options-vc141-mt-1_64.lib(value_semantic.obj) 1
and
Severity Code Description Project File Line Suppression State
Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' worldserver E:\Build\src\server\worldserver\libboost_program_options-vc141-mt-1_64.lib(value_semantic.obj) 1
and
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'libboost_system-vc141-mt-1_64.lib' mmaps_generator E:\Build\src\tools\mmaps_generator\LINK 1
and
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'libboost_system-vc141-mt-1_64.lib' mapextractor E:\Build\src\tools\map_extractor\LINK 1



I looked around all the web and did not find a solution to my problem so can anyone help me?
 

mastermind

Silver Supporter
Senior User
188
2017
13
Location
PA, USA
Hello a7mad3ayya6,

If you are working with the project from trinitycore.org you may have better luck posting in their projects forum. https://community.trinitycore.org/

With that being said, it looks like you are setup with 64 bit versions of the various required software (Boost, OppenSSL, etc...) but you are compiling for 32 bit.

If this is indeed the case you can either download and install the 32 bit versions (they can be installed along with the 64 bit versions) of the required software or set your compiler (debug and/or release) to 64 bit.

On a side note the trinitycore project gave up on Cata. They still support Wotlk (3.3.5) but the master branch is Legion (7.2.5).

If you want Cata might I suggest giving Emucoach's repack a go. Easy to get up and running one of the most complete Cata repack you can find.

Hope this is helpful and good luck with your compiling.
 

a7mad3ayya6

Verified Member
4
2017
1
Hello a7mad3ayya6,

If you are working with the project from trinitycore.org you may have better luck posting in their projects forum. https://community.trinitycore.org/

With that being said, it looks like you are setup with 64 bit versions of the various required software (Boost, OppenSSL, etc...) but you are compiling for 32 bit.

If this is indeed the case you can either download and install the 32 bit versions (they can be installed along with the 64 bit versions) of the required software or set your compiler (debug and/or release) to 64 bit.

On a side note the trinitycore project gave up on Cata. They still support Wotlk (3.3.5) but the master branch is Legion (7.2.5).

If you want Cata might I suggest giving Emucoach's repack a go. Easy to get up and running one of the most complete Cata repack you can find.

Hope this is helpful and good luck with your compiling.


I changed the platform from win32 to x64 now I am getting 1/22 success and 21 errors
 

mastermind

Silver Supporter
Senior User
188
2017
13
Location
PA, USA
I have compiled that same projects dozens of times both 32 and 64 bit and the only time I ever ran into those type of errors is when I did not have the proper platform of the required software installed. ie. build set for 64 bit with only 32 bit third party apps installed or vice versa.

That a look here: https://trinitycore.atlassian.net/wiki/display/tc/Windows+Requirements

At the top of the page:

Processor with SSE2 support
Boost 1.59 (1.63 recommended if visual studio 2015) 1.63 (if visual studio 2017, if you have problems with 1.64 downgrade to 1.63)
MySQL ≥ 5.1.0
OpenSSL = 1.0.x
CMake ≥ 3.3.2 (≥ 3.8.2 to recognize VS2017)
MS Visual Studio (Community) ≥ 14 (2015 update 3) (Desktop)

Verify the version of Boost and CMake you have installed.

Good luck
 

a7mad3ayya6

Verified Member
4
2017
1
This thread can be closed as my problem has been solved I solved it by downloading the c++ 64 bit visual 15 2017 tools and using cmake to configure the core with the 64 bit tools and all my problems disappeared Thanks mastermind your answer gave me a hint
 
Top