Results 1 to 5 of 5

Thread: SQL problem

  1. #1
    Join Date
    Nov 2006
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default SQL problem

    Hi friends,
    Happy Christmas
    I have newly installed Qt4.2 opensource version in linux.I tried a program for Database access from Qt .then I got error MYSQL driver not loaded.I used one program which Jacek gave for similar thread,to find the current SQL drivers installed .but it returned a null set .does it mean no SQL driver is installed .but in the Qt installation folder I saw plugins for MYSQL and many others.Is this problem because of improper installation.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: SQL problem

    How did you install Qt? Did you compile it by yourself or did you use a package from some Linux distribution? In the first case did you enable compilation of plugins? In the latter case, did you install packages for Qt sql plugins along with their dependencies (for example the MySQL plugin needs MySQL libraries to work).

  3. The following user says thank you to wysota for this useful post:

    nimmyj (25th December 2006)

  4. #3
    Join Date
    Nov 2006
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: SQL problem

    I am a newbie who tries to crate a static dll to access sql server database using qt libraries.

    Although my cofiguration is totally different then yours(i am using sql server and qt 4.2 is installed on windows), I get "driver not loaded error" for ODBC when i try to use database calls without creating a QApplication object.
    Creating a QApplication object before making any database calls may solve your problem too.

    Hope this helps.

  5. #4
    Join Date
    Nov 2006
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: SQL problem

    Quote Originally Posted by wysota View Post
    How did you install Qt? Did you compile it by yourself or did you use a package from some Linux distribution? In the first case did you enable compilation of plugins? In the latter case, did you install packages for Qt sql plugins along with their dependencies (for example the MySQL plugin needs MySQL libraries to work).
    I installed Qt4.2 from trolltech site .it is a opensource version .dont know whether compiled plugins .just follwed the instructions given in INSTALL file.if I havent installed Plugins ,how to do that?

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: SQL problem

    So I guess you compiled it yourself... Did you pass any arguments to configure? If not, then please call configure -help and read the help that gets displayed. You can also search this forum on how to compile the sql plugins, the issue was brought up several times.

Similar Threads

  1. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  2. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.