Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySql driver #367

Closed
hdhaheri opened this issue May 25, 2020 · 3 comments
Closed

MySql driver #367

hdhaheri opened this issue May 25, 2020 · 3 comments
Assignees
Labels
Bug Something isn't working Help wanted Extra attention is needed Linux Linux version Windows Windows version
Milestone

Comments

@hdhaheri
Copy link

When running the application on another machine using the generated DistributionKit folder, I get QMYSQL driver not loaded. I checked the plugins/sqldrivers folder and it has the driver. How to solve this issue. Thank you

@EndrII EndrII self-assigned this May 25, 2020
@EndrII EndrII added the Help wanted Extra attention is needed label May 25, 2020
@EndrII EndrII added this to the v1.4 milestone May 25, 2020
@EndrII
Copy link
Member

EndrII commented May 25, 2020

Thanks for question.
The problem is that you do not have the mysql client in the distribution that is needed for the mysql driver to work.
this is usually solved by installing this client on a remote machine or adding the appropriate libraries to the distribution.

Solution 1.

sudo apt-get install libmysqlclient*

Solution 2.

make cqtdeployer grab the mysql client
uses option extraLibs and extractPlugins
extraLibs - will force cqtdeployer to search for the specified library in all places of the system.
extractPlugins - will force cqtdeployer to check qt plugin dependencies

cqtdeployer ... -extraLibs libmysqlclient extractPlugins

or if you use deploy file

{
 "extraLibs": "libmysqlclient",
 "extractPlugins": true
}

Attention

libmysqlclient will most likely be on the system, so you will need the cqtdeployer installed with the installer and not from the snap store.

The fact is that the snap version does not currently have access to system libraries.

@EndrII
Copy link
Member

EndrII commented May 25, 2020

I agree that all actions that solve your problem are not obvious and not convenient. according to this, I will take on the task #371 of automating this entire process.

@EndrII
Copy link
Member

EndrII commented Oct 16, 2020

Now cqtdeployer should be automatically copу the mysql client library into a distribution kit of you application.

@EndrII EndrII unpinned this issue Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help wanted Extra attention is needed Linux Linux version Windows Windows version
Projects
None yet
Development

No branches or pull requests

2 participants