Page 1 of 1
Cannot find -lmysql.
Posted: 27 Apr 2011, 04:20
by visaboy
Hello,
I tried compiling the accountserver.exe with build target "all" and it compiled without issues but when the executable file is opened it looks for sqlite and I'm using mysql.
I went into Code::Block and changed the target to "Windows (MySQL Support)" and compiled it.
Now I keep getting the message:
Code: Select all
ld.exe||cannot find -lmysql|
||=== Build finished: 1 errors, 0 warnings ===|
I tried doing a google search for a solution without luck.
How can I resolve that particular error?
Thank you.
Re: Cannot find -lmysql.
Posted: 27 Apr 2011, 07:29
by Bertram
Hi visaboy,
Currently, Crush is only providing the sqlite headers and lib for compilation in his mana/tmw-lib pack.
Hence, we're defaulting the server build against sqlite.
To be able to test a proper mysql compilation, you'll have to download the libmysql.dll libmysql.a, and and all the mysql headers files
and put them respectively in the dll/, lib/, and include/ sub-folder.
You can obtain the mysql connectors here,
http://www.mysql.fr/downloads/connector/cpp/
And the sourcecode to compile a own made mysql lib here:
http://www.mysql.fr/downloads/mirror.ph ... 90#mirrors
I'm sure it's no simple task (or Crush would have done it already), so I wish you good luck on it.
Best regards.
Re: Cannot find -lmysql.
Posted: 27 Apr 2011, 20:34
by visaboy
Bertram wrote:Hi visaboy,
Currently, Crush is only providing the sqlite headers and lib for compilation in his mana/tmw-lib pack.
Hence, we're defaulting the server build against sqlite.
To be able to test a proper mysql compilation, you'll have to download the libmysql.dll libmysql.a, and and all the mysql headers files
and put them respectively in the dll/, lib/, and include/ sub-folder.
You can obtain the mysql connectors here,
http://www.mysql.fr/downloads/connector/cpp/
And the sourcecode to compile a own made mysql lib here:
http://www.mysql.fr/downloads/mirror.ph ... 90#mirrors
I'm sure it's no simple task (or Crush would have done it already), so I wish you good luck on it.
Best regards.
Hi Bertram,
I moved all 3 folders inside the mysql.rar and now it is working perfectly fine.
Thank you so much!
Re: Cannot find -lmysql.
Posted: 28 Apr 2011, 07:09
by Bertram
You're welcome
