Results 1 to 7 of 7

Thread: QSQLITE driver not loaded on Debian Lenny

  1. #1
    Join Date
    Jul 2013
    Posts
    16
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default QSQLITE driver not loaded on Debian Lenny

    I have two computer. I develop Qt app in first one. And I tried to run my Qt app in second one.
    I compile qt 4.8.5 and I write an app in first computer. The app uses sqlite database.
    Second computer is embedded which runs debian 5.0 lenny and I am trying to run my app on this machine.
    I installed theses debs in second computer in order to use sqlite: libqtcore4, libqt4-sql, libqt4-sql-sqlite.
    I downloaded them from archives.debian.net and I use dpkg -i *.deb command.
    But after I installed deb when I try to run my app in second computer I get this error:

    Qt Code:
    1. QSqlDatabase: QSQLITE driver not loaded
    2. QSqlDatabase: available drivers:
    To copy to clipboard, switch view to plain text mode 

    I also copied libQtSql.so.4 to my second computer lib folder.
    I can run Qt app without sqlite but I can not run with sqlite
    So how can I run this app?
    Last edited by iskenderoguz; 16th July 2013 at 10:59.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QSQLITE driver not loaded on Debian Lenny

    1. with which arguments you have compiled 4.8.5?
    2. after "dpkg -i *.deb" are you sure, your program uses that libraries or still your self compiled ones?

  3. #3
    Join Date
    Jul 2013
    Posts
    16
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QSQLITE driver not loaded on Debian Lenny

    I have two computers. I develop Qt and then I copied compiled app to second one. Without sqlite my Qt apps works well in second machine.
    I compiled Qt in first machine and I use ./configure, make, make install.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSQLITE driver not loaded on Debian Lenny

    This:
    I compile qt 4.8.5
    and this:
    I installed theses debs: libqtcore4, libqt4-sql, libqt4-sql-sqlite.
    imply the opposite of each other.

    Have you built your own Qt or are you using the binaries installed using your system's package manager?
    If you have built your own Qt 4.8.5 is it, and its libraries, found before the binaries/libraries installed using your system's package manager?
    Have you used the qmake from your own Qt, rather than the system Qt, to process your project file?

  5. #5
    Join Date
    Jul 2013
    Posts
    16
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QSQLITE driver not loaded on Debian Lenny

    libqt4-core and libqt4-dev is not installed in my second computer. Can it be a reason?
    Also all dependencies are provided in my second machine. Only problem is qsqlite.

    I am sorry I am not English and my English is not good.

    I compiled Qt in first machine not second. And I installed debs in second machine not first.
    I wrote app and run in first machine. If there is no problem I copied executable file to second machine and I run app in secon machine
    Also I copied *.so files from first to second. If I do not use qsqlite, second machine can work Qt app.

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSQLITE driver not loaded on Debian Lenny

    Also all dependencies are provided in my second machine. Only problem is qsqlite.
    Did you deploy the sqldrivers plugins folder?

    You should not need any Qt packages installed on the second machine. You need to put your executable, the Qt libraries it uses, the various platform/sqldrivers/imageformats plugin folders it uses, and the wrapper script to set LD_LIBRARY_PATH and run your program in a folder on the target machine. It should be self-contained.
    X11 Deployment, Creating the Application Package

    I am sorry I am not English and my English is not good.
    I am not English either Your English is far better than my Turkish (I assume, no insult intended if I got it wrong)

  7. #7
    Join Date
    Jul 2013
    Posts
    16
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QSQLITE driver not loaded on Debian Lenny

    I think problem is different Qt versions (?). Because version of Qt which I compile app is 4.8.5 and version of qt-sdk-sqlite is 4.4.3. I will try to recompile Qt statically

Similar Threads

  1. QtNetwork + Qsqlite = driver not loaded ?
    By LordG in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 28th January 2016, 22:29
  2. Replies: 2
    Last Post: 20th October 2012, 10:06
  3. Replies: 2
    Last Post: 1st July 2011, 17:56
  4. Replies: 1
    Last Post: 24th April 2010, 03:43
  5. fonts in QtCreator look bad on Debian Lenny
    By bluefly in forum Qt Tools
    Replies: 0
    Last Post: 17th April 2009, 23:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.