QuasarApp / CQtDeployer

This project is used to deploy applications written using QML, qt or other С / С++ frameworks.
https://quasarapp.ddns.net:3031/docs/QuasarApp/CQtDeployer/latest/
GNU Lesser General Public License v3.0
570 stars 89 forks source link

Install custom plugin libqsqlmysql on Linix with application #815

Closed STILSIK99 closed 2 months ago

STILSIK99 commented 3 months ago

I build custom plugin (libqsqlmysql.so) for my application guided by same instruction: "https://stackoverflow.com/questions/6483523/qt-how-to-getcompile-mysql-driver".

When i finished my application, i need build deb package for that. There are many dependencies among which mysql plugin, i don't understand how install it.

EndrII commented 3 months ago

@STILSIK99 do you want to prepare deb package for plugin only (and create dependency to app) or for all your App include this plugin ?

STILSIK99 commented 3 months ago

@EndrII , I want to prepare deb package of my app, that use plugin qtsqlmysql.

EndrII commented 3 months ago

Okay its easy just run cqtdeployer with two option deb and -extraPlugin

cqtdeployer ... -extraPlugin path/to/plugin/bin/dir deb

or

cqtdeployer ... -extraPlugin path/to/libqsqlmysql.so deb

So where ... - is other required options like -bin or -qmake

The cqtdeployer prepare an independent Debian package for your application.


If you want to create a custom Debian package just prepare DEBIAN template dir and pass it to deb option of cqtdeployer

cqtdeployer ... -extraPlugin path/to/libqsqlmysql.so -deb path/to/template/dir/DEBIAN

You can see example here

STILSIK99 commented 2 months ago

Thanks, next step. I have some truble with addition my DEBIAN configurations. CQtDeployer print "Use custom template", but metadata of deb package include standard template (not my).

STILSIK99 commented 2 months ago

I suppose my configuration for build have some errors, if check it by "lintian" tool. So CQtDeployer don't want to use my configuration. But no more infomation about it in output.

EndrII commented 2 months ago

Yes its documentation mistake, the help for deb option have bad documentation, so I updated it. @STILSIK99 please check new version and leave your feedback. see #816

EndrII commented 2 months ago

@STILSIK99 therefore you may learn more about creating deb using cqtdeployer tool here