View unanswered posts | View active topics
|
Page 1 of 1
|
[ 4 posts ] |
|
Author |
Message |
Env
|
Post subject: UseMySQLDatabase() failing after create executable? Posted: Mon Feb 11, 2019 9:00 pm |
|
Joined: Tue Apr 27, 2010 3:20 pm Posts: 138 Location: Wales, United Kingdom
|
Hi all,
I may be missing something here, but when debugging my project from the IDE then UseMySQLDatabase() works perfectly.
When creating executable and copying libmariadb.so from the purebasic/compilers directory into the directory the executable exists, it fails. UseMySQLDatabase() returns 0.
PureBasic 5.70 LTS (x64) Ubuntu 18.04
Is there something I'm missing before I turn this into a bug report?
Kind regards
_________________ Thanks!
|
|
Top |
|
 |
Env
|
Post subject: Re: UseMySQLDatabase() failing after create executable? Posted: Mon Feb 11, 2019 9:12 pm |
|
Joined: Tue Apr 27, 2010 3:20 pm Posts: 138 Location: Wales, United Kingdom
|
Okay,
Turns out you have to specify the lib name "./libmariadb.so"- it's not optional when creating an executable.
_________________ Thanks!
|
|
Top |
|
 |
Fred
|
Post subject: Re: UseMySQLDatabase() failing after create executable? Posted: Tue Feb 12, 2019 11:44 am |
|
 |
Administrator |
 |
Joined: Fri May 17, 2002 4:39 pm Posts: 13475 Location: France
|
We actually try to load "libmariadb.so" so it needs to be in your LD_LIBRARY_PATH. That said, you are right, it would be probably easier if we try to load it from current dir as well. Moved to bug report and would need to update the doc for Linux
|
|
Top |
|
 |
Env
|
Post subject: Re: UseMySQLDatabase() failing after create executable? Posted: Tue Feb 12, 2019 12:55 pm |
|
Joined: Tue Apr 27, 2010 3:20 pm Posts: 138 Location: Wales, United Kingdom
|
Thanks 
_________________ Thanks!
|
|
Top |
|
 |
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|