• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Libmysql.dll error

Status
Not open for further replies.

PrestonParsons

BETA Tester
have tried to compile a fresh core of trinity in Microsoft vs 2013 but every time the same errors

Error 1 error LNK1107: invalid or corrupt file: cannot read at 0x2D8 C:\mysql_libs\lib_32\libmysql.dll 1 1 authserver
Error 2 error LNK1107: invalid or corrupt file: cannot read at 0x2D8 C:\mysql_libs\lib_32\libmysql.dll 1 1 worldserver


have tried fresh install (including windows operating system) but still the same errors

any help would be greatly appreciated
 

Tommy

Founder
Well, the error is obvious. Looks like it is pulling the libraries from a weird directory. Is that how you set it up? Either way, do you have an updated version of MySQL? I used 5.6 and I think the lowest you can go is somewhere around 5.1. Try reinstalling MySQL or install a newer version if you have an older version.
 

PrestonParsons

BETA Tester
it's was worked last time. but i got all updated program from trinitycore and that Libmysql.dll is from mysql_libs on my C:/ drive.
 

Tommy

Founder
it's was worked last time. but i got all updated program from trinitycore and that Libmysql.dll is from mysql_libs on my C:/ drive.

Well, for some reason it is corrupted. It pulls my libs from the MySQL folder itself, which you should make it do the same. As I said above, reinstall MySQL (if you're updated) or install a newer version. I didn't catch the part where you reinstalled your OS. So you did reinstall your entire operating system? Did you install everything that is needed? I don't recommend copy/pasting the old files into your C:/, because you can't expect them to work like before. You need to install everything if you haven't already.
 

PrestonParsons

BETA Tester
I have Boost, MySQL, Cmake, OpenSSL, Visual studio express 2013 and MySQL Development flies.

MySQL development files
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.
Extract the files to a known location, e.g, C:/mysql_libs

so i have done that then i change it in CMAKE and click on Advanced and scroll down you can see MYSQL_INCLUDE_DIR and MYSQL_LIBRARY to link with mysql_libs.

And yes i reinstall windows as its so messy :der:
 

PrestonParsons

BETA Tester
Cant get this sort matter. :(

scripts.vcxproj -> C:\Users\preston\Desktop\Funserver\build\src\server\scripts\Release\scripts.lib
12>C:\mysql_libs\lib_32\libmysql.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2D8
 
Last edited:
Status
Not open for further replies.
Top