Results 1 to 4 of 4

Thread: Loading QSQLite plugin under Windows: works, but... [SOLVED]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Location
    Italy, Pieve Ligure (GE)
    Posts
    55
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    7
    Thanked 6 Times in 6 Posts

    Default Loading QSQLite plugin under Windows: works, but... [SOLVED]

    Hello,

    * Windows XP SP3;
    * "Full" SDK 2009.04 installed (in D:\Dev\Qt\);
    * developing a Qt application which uses the SQLite plugin.

    So I added to the .pro:
    Qt Code:
    1. QT += sql
    2. QTPLUGIN += qslqlite
    To copy to clipboard, switch view to plain text mode 
    At compile, I got the error:

    D:\Dev\Qt\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\.. \..\..\mingw32\bin\ld.exe: cannot find -lqsqlited

    Looking at the last compiler command, I noticed:

    g++ [...many options removed...],-subsystem,windows [...many object files removed...] -L"d:\Dev\Qt\qt\lib" -lmingw32 -lqtmaind -LD:/Dev/Qt/qt/plugins/sqldrivers -lqsqlited -lQtWebKitd4 -lQtSqld4 -lQtXmld4 -lQtGuid4 -lQtCored4


    Now, the D:/Dev/Qt/qt/plugins/sqldrivers directory does NOT contain any qsqlited.dll file, but it DOES contain a qsqlited4.dll file!

    So, I copied qsqlited4.dll to qsqlited.dll, recompiled and, lo! everything works.

    Now, the question:

    Is this supposed to work this way, by renaming a distribution file? May this trick have side effects? None surfaced so far, but I cannot be sure. Has anybody had similar experiences?

    Thanks,
    M.
    Last edited by miwarre; 11th November 2009 at 14:44.

Similar Threads

  1. Qt 4.3.1 Windows Svg plugin problem
    By tzioboro in forum Installation and Deployment
    Replies: 7
    Last Post: 14th September 2007, 10:37
  2. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  3. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  4. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 17:33
  5. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36

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
  •  
Qt is a trademark of The Qt Company.