[Qt-interest] how to deploy mysql plugin under linux
pmqt71
pmqt71 at gmail.com
Thu May 6 09:50:20 CEST 2010
I'll follow your suggestion, searching for the correct version. At the
moment SQLite is working without problems.
thanks.
pm
2010/5/5 Nikos Chantziaras <realnc at arcor.de>
> Could be an incompatible version. The best would be to download the exact
> package of it as used by the target server's Linux distribution and deploy
> that one instead. In effect, that means that your bundled plugin would be
> the same as the one in /usr/lib if you have installed it there normally.
>
>
>
> On 05/05/2010 11:51 PM, pmqt71 wrote:
>
>>
>> I put the libqsqlmysql.so plugin under ./plugins/sqldrivers and it is
>> loaded.
>> The problem now is a segmentation fault on the db.open method.
>>
>> The same code works on the development server (where qt is installed)
>> and connects to the production mysql db.
>>
>> Any other idea to get working without any installation on the production
>> server? In the meantime I'm going to use SQlite.
>>
>> Does the plugin use the installed mysql client libraries? may be a
>> incompatible version?
>>
>> thanks,
>> pm
>>
>>
>> 2010/5/5 Nikos Chantziaras <realnc at arcor.de <mailto:realnc at arcor.de>>
>>
>>
>> On 05/05/2010 12:37 PM, pmqt71 pmqt71 wrote:
>> > Hi all,
>> > please help me:
>> > I'm deploying my app under a Ubuntu 9.04 64 bit server.
>> > The app starts, but the mysql plugin is not loaded.
>> > I'm now using a simple main that just prints the available sql
>> drivers,
>> > but nothing is printed.
>> > I've copied the plugin (libqsqlmysql.so) in turn under the app
>> folder,
>> > under ./plugins, under ./plugin/sqldrivers but nothing happens.
>> > So, what is the correct procedure to deploy a mysql plugin? Note
>> that I
>> > can not install anything on the system, I just can copy files.
>>
>> The Ubuntu box needs libqt4-sql-mysql installed. If you really can't
>> anyone to install that for you (meaning someone running "aptitude
>> install libqt4-sql-mysql" as root), then you could include the *.so as
>> you do now and use QCoreApplication::addLibraryPath() somewhere in your
>> main().
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>>
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100506/f0c053b8/attachment.html
More information about the Qt-interest-old
mailing list