Results 1 to 7 of 7

Thread: Qt with SQLite help please

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt with SQLite help please

    On the development system everything is fine but when I distribute the application, the database itself is not getting created.

    Can someone help me please?

    Thanks a lot.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt with SQLite help please

    Is the database support compiled as a plug-in? In that case you must package the plugin along with your application.

  3. #3
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt with SQLite help please

    I am packaging the following dll's

    QtCore4.dll
    QtGui4.dll
    QtSql4.dll
    plugins\sqldrivers\qsqlite.dll

    and installing in the following path respectively

    applicationPath
    applicationPath
    applicationPath
    aplicationPath\plugins\sqldrivers\

    But it is not working. Everything is wroking perfectly if I install the application on the development system.

    Thanks a lot.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt with SQLite help please

    Use Dependency Walker to see what DLLs qsqlite.dll require.

  5. #5
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt with SQLite help please

    I get the following message

    Warning: At least one delay-load dependency module was not found.
    Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

    Also, I am packaging all the dll's that are needed, but it is still not working.

    Please Help
    Thanks a lot

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt with SQLite help please

    Quote Originally Posted by munna
    Also, I am packaging all the dll's that are needed, but it is still not working.
    Where did you place them? They should be in the same directory as the executable.

    Remember that Dependency Walker shows all missing DLLs --- even those you don't need (like msjava.dll or something).

    Also I've just noticed that you have placed SQLite plugin in wrong directory. It should be in aplicationPath\sqldrivers\ (unless you have qt.conf file).

  7. #7
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt with SQLite help please

    The problem was with the path.

    Thanks a lot.

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.