Azerothcore-wotlk: [vs] Compilation errors MariaDB

Created on 14 Jan 2019  路  15Comments  路  Source: azerothcore/azerothcore-wotlk

CURRENT BEHAVIOUR:


Please tell me how to solve?

ERRORS:
  1. Error C2065 CR_INVALID_CONN_HANDLE: undeclared identifier shared D:\azerothcore-wotlk\src\common\Database\MySQLConnection.cpp 492
  2. Error C2051 The value of the expression for the selection is not a constant shared D:\azerothcore-wotlk\src\common\Database\MySQLConnection.cpp 492
  3. Error LNK1181 cannot open the input file "....\commonRelease\shared.lib" authserver D:\Azeroth\Maria\src\server\authserver\LINK 1
BRANCH(ES):

master

OPERATING SYSTEM:


WIN 10 x64 MariaDB 10.3
VS 15 (2017)

Most helpful comment

try MariaDB 10.1 with 10.2+ you got errors becouse we don't support it.
In 10.2 some func are changed and there is no compatibility between mysql and maria here
for exemple you got error on:
case CR_INVALID_CONN_HANDLE:
what is deleted in mariadb 10.2

All 15 comments

@Mutevazi is it a clean AzerothCore source code or you applied any modifications/modules ?

@Mutevazi is it a clean AzerothCore source code or you applied any modifications/modules ?

clean

try MariaDB 10.1 with 10.2+ you got errors becouse we don't support it.
In 10.2 some func are changed and there is no compatibility between mysql and maria here
for exemple you got error on:
case CR_INVALID_CONN_HANDLE:
what is deleted in mariadb 10.2

try MariaDB 10.1 with 10.2+ you got errors becouse we don't support it.
In 10.2 some func are changed and there is no compatibility between mysql and maria here
for exemple you got error on:
case CR_INVALID_CONN_HANDLE:
what is deleted in mariadb 10.2

Good friend, give me time to check.

@Mutevazi don't worry i update my mariaDB on server to 10.3 and open pull for add compatibility

@Viste This error comes out again... MariaBD 10.2

try MariaDB 10.1

@Winfidonarleyan Now we will try.

@Mutevazi as i say you need 10.1 or lower on 10.2 and higher you get errors

@Viste Oops..... Sorry, hard day.. Thank you very much, everything went well, the compilation was successful!

@Mutevazi no problem! i done PR for support 10.2+ if you can test will be nice #1284

MariaDB is compatible with Mysql, so when preparing a compilation in Cmake, you can use the DEV library of the usual Mysq. After compilation you can use MariaDB server.
screenshot

@brussens bad idea use mysql dev library with MariaDB 10.2+

@brussens hmm.... im not have ur interface -> screenshot

@Viste Well, why? Libraries have BC, so nothing terrible for local use will happen.
@Mutevazi i use advanced configuration.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

STARRHELD picture STARRHELD  路  4Comments

Wokwer picture Wokwer  路  4Comments

wowissues picture wowissues  路  3Comments

wampirr picture wampirr  路  3Comments

cts17 picture cts17  路  3Comments