PDA

View Full Version : [SOLVED] [HELP!] Eluna Errors when Building in VB



nicklaspp1234
07-27-2016, 10:00 PM
Hello emudevs !

I'm trying to compile a fresh 3.3.5 TrinityCore with Eluna and it gives me some errors. I hope anyone here can help me to solve them or point me to any guide


SWmH0hgQ

Vitrex
07-27-2016, 10:45 PM
Are you trying to compile 64 bits or 32 ?
Your problem related to that, all you need to do is select the correct mysql version depending on what bits you are trying to compile.
easiest way will be to go here.

https://trinitycore.atlassian.net/wiki/display/tc/Windows+Requirements

STEP 9



These files are shipped with MySQL Server but to make it easier we packed the libs and include files for both 32 bits and 64 bits.


Click on download link.

Place it somewhere you know where (lol)

Now open cMake place a tick on checkbox where it says advanced and grouped , it's in line with bar named search.

Now expand the MYSQL group.
and change the last 2 entries.

MSYQL_INCLUDE_DIR - must be a folder named include (you can found it your folder that you downloaded)
MYSQL_LIBRARY - must be a .lib file (can be found in your folder you downloaded)

Just don't forget if you downloaded all software for 32 bits it's doesn't matter if your OS is 64. just select 32 bit mysql folder in MYSQL_LIBRARY.

And after compile just move a .lib files from this folder to your's release folder.(like in normal way)

If you have any problems, post them here.

nicklaspp1234
07-27-2016, 10:55 PM
Are you trying to compile 64 bits or 32 ?
Your problem related to that, all you need to do is select the correct mysql version depending on what bits you are trying to compile.
easiest way will be to go here.

https://trinitycore.atlassian.net/wiki/display/tc/Windows+Requirements

STEP 9



These files are shipped with MySQL Server but to make it easier we packed the libs and include files for both 32 bits and 64 bits.


Click on download link.

Place it somewhere you know where (lol)

Now open cMake place a tick on checkbox where it says advanced and grouped , it's in line with bar named search.

Now expand the MYSQL group.
and change the last 2 entries.

MSYQL_INCLUDE_DIR - must be a folder named include (you can found it your folder that you downloaded)
MYSQL_LIBRARY - must be a .lib file (can be found in your folder you downloaded)

Just don't forget if you downloaded all software for 32 bits it's doesn't matter if your OS is 64. just select 32 bit mysql folder in MYSQL_LIBRARY.

And after compile just move a .lib files from this folder to your's release folder.(like in normal way)

If you have any problems, post them here.

MySQL is 32bit as i reinstalled the other day after i found out it was higher all of the programs i have used was 32bit :) I find it weird since i first was able to build and everything (without Eluna) but when i did it with eluna it gave of these errors :)

Vitrex
07-27-2016, 11:18 PM
then check it.

Core\src\server\game\LuaEngine

this folder is empty or not?

P.s i still believe it's not Eluna related problem, since the error says that something wrong with mysql libs.

You don't have to install anything just change paths in cMake as i showed. Because MySQL installs the default version of software if your OS 64 it will install 64 by default. not 32

If LuaEninge folder empty, clone / download zip from here : https://github.com/ElunaLuaEngine/Eluna/tree/e686bcb33f53bd226a3c98705e5760e19a60586f

Place it in that folder, generate cMake and re Compile.

Syphex
07-28-2016, 12:44 AM
When you dragged your libmysql.dll file did you copy it or dragged it from it's position? as you should just copy it, if you take it away from it's folder you will experience problems in the future.

As it still has to be in it's folder even after you have compiled your server before. Also if he have the downloaded 32 bit then it will compile in 32 bit no matter what your system will not make a change in this. Your correct about that the mysql installer will choose your operative system, but i told him to install the 32 bit which worked fine and he got his server running that way.

But As Vitrex mentioned above that the problem could be that cmake is redirected to the wrong mysql folder that has 64 bits. (which i highly doubt if you uninstalled the 64x version and installed the 32 bit version)
But id give my guess that you havnt downloaded the correct files that you need for Eluna.

Here is an older thread with the exact same problems, look through it to see if you can relate to any of the comments etc.. etc.. etc..
http://emudevs.com/showthread.php/5185-Compile-Compile-Error

Vitrex
07-28-2016, 06:57 PM
I helped him to fix issue as i mentioned in my first post.
Just others don't forget you need to copy libmysql.dll and libmysql.lib files from folder i provided in link otherwise you'll see the following error.



DatabaseWorkerPool<class WorldDatabaseConnection>::DatabaseWorkerPool FATAL ERROR:
Used MySQL library version (5.6.31) does not match the version used to compile TrinityCore (5.5.38). Search on forum for TCE00011


Marking as solved.