Results 1 to 2 of 2

Thread: Can't install Qt4.1 with SQL Support for ODBC in Windows XP

  1. #1
    Join Date
    Jan 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Can't install Qt4.1 with SQL Support for ODBC in Windows XP

    I need to develop an application which requires the use of Microsoft Access using Qt.

    So far, I managed to use the Open Source Qt4.1.0 for MinGW with Visual C++ Express 2005, but without SQL support.

    I read the following thread (http://www.qtcentre.org/forum/showthread.php?t=6) and followed its instructions (changing the references of MySQL to those which I believe would be their equivalents to ODBC), but when I try to build the ODBC driver, i get a lot of errors, being the first one "main.cpp:24:30: qsqldriverplugin.h: No such file or directory". This occurs when I execute mingw32-make

    I read somewhere (I don't remember where) that I had to include the address of the SDK (Microsoft Platform) include and library folders in the qmake command in order for it to work properly, but that I had to use their 8.3 names, and I did it.

    The locations for those two folders are these:
    C:\Archivos de programa\Microsoft Platform SDK\Lib
    C:\Archivos de programa\Microsoft Platform SDK\include

    Has anybody been able to do this?

    Thank you very much for your help.

    Daniel

  2. #2
    Join Date
    Jan 2006
    Location
    Scandinavia
    Posts
    62
    Thanks
    5
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't install Qt4.1 with SQL Support for ODBC in Windows XP

    Quote Originally Posted by danieltruchsess
    Ii get a lot of errors, being the first one "main.cpp:24:30: qsqldriverplugin.h: No such file or directory". This occurs when I execute mingw32-make
    To me it seems that you've not configured Qt for sql plugin and that's the reason that you cannot find the Qt file qsqldriverplugin.h. If it would've been problem with installing mysql or other database libraries I think you would've gotten other errors.

    Run ./configure -help to see what options for configure that you need. I expect it to be similar to
    Qt Code:
    1. ./configure -plugin-sql-mysql
    2. // in case of mysql driver
    3. //
    4. // Then jus run
    5. gmake
    6. su
    7. gmake install
    8. //(remember to install it to the right place or changing your QTDIR (path)
    To copy to clipboard, switch view to plain text mode 
    (sorry if I'm stating the obious)

    Have you checkout out this thread? http://lists.trolltech.com/qt-intere...ad00014-0.html
    The thread you pointed to had a link here and I think it's pretty good
    Last edited by KjellKod; 5th February 2006 at 11:04.

Similar Threads

  1. Cannot configure -platform win32-msvc2008, no nmake.exe
    By Jason Hamilton in forum Installation and Deployment
    Replies: 3
    Last Post: 1st September 2008, 11:05

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.