It is currently Thu Jul 18, 2019 6:33 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Done] UseMySQLDatabase() failing after create executable?
PostPosted: Mon Feb 11, 2019 9:00 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Apr 27, 2010 3:20 pm
Posts: 144
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
 Profile  
Reply with quote  
 Post subject: Re: UseMySQLDatabase() failing after create executable?
PostPosted: Mon Feb 11, 2019 9:12 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Apr 27, 2010 3:20 pm
Posts: 144
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
 Profile  
Reply with quote  
 Post subject: Re: UseMySQLDatabase() failing after create executable?
PostPosted: Tue Feb 12, 2019 11:44 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13595
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
 Profile  
Reply with quote  
 Post subject: Re: UseMySQLDatabase() failing after create executable?
PostPosted: Tue Feb 12, 2019 12:55 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Apr 27, 2010 3:20 pm
Posts: 144
Location: Wales, United Kingdom
Thanks :)

_________________
Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: UseMySQLDatabase() failing after create executable?
PostPosted: Mon Feb 18, 2019 8:50 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13595
Location: France
Fixed.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye