Results 1 to 6 of 6

Thread: MySQL Error

  1. #1
    Join Date
    Jan 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question MySQL Error

    Hi guys,

    I'm trying build the QMYSQL plugin fallowing this tuto: http://www.jiggerjuice.net/software/qt-sql-drivers.html

    But at this step has error:


    The error is this:



    Help-me please *-*

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 140 Times in 132 Posts

    Default Re: MySQL Error

    C:\Qt\2010.01\bin\sqldrivers\mysql is not the correct path. This path is a bin directory for QtCreator files and has nothing to do with Qt Libraries your are using for your applications. Especially bin directory is not the right place to search sources to compile as its name stands from "binary" so already compiled stuff.
    C:\Qt\2010.01\qt <- your Qt dir
    C:\Qt\2010.01\qt\src\plugins\sqldrivers\mysql <- your MySQL plugin sources ("src" stands for "sources")
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Sep 2009
    Posts
    72
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows
    Thanked 10 Times in 10 Posts

    Default Re: MySQL Error

    Hi

    looking at the steps:


    mysql.pro file should be present in <UR_QT_DIR>/src/plugins/sqldrivers/mysql/

    just add this path in your existing path and that should work.

  4. #4
    Join Date
    Jan 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: MySQL Error

    Hi..
    now this is the error:



    Help-me please *-*
    thanks

  5. #5
    Join Date
    Oct 2009
    Posts
    364
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    10
    Thanked 37 Times in 36 Posts

    Default Re: MySQL Error

    if you are still having this problem... you need to open the Qt Command Prompt which sets up your environment variables needed for building. The 'regular' cmd prompt won't work as is.

  6. #6
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 10 Times in 10 Posts

    Default Re: MySQL Error

    Quote Originally Posted by schnitzel View Post
    if you are still having this problem... you need to open the Qt Command Prompt which sets up your environment variables needed for building. The 'regular' cmd prompt won't work as is.
    or set the PATH manually for QT, gcc and others tool needed for Qt compilation

Similar Threads

  1. Error Loading MySql Driver in 4.3.4
    By perrigo in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 15:38
  2. Error building MySQL pluggin on xp with mingw32-make
    By weziw in forum Installation and Deployment
    Replies: 4
    Last Post: 26th March 2008, 15:36
  3. mysql driver and nmake error
    By Ghost in forum Installation and Deployment
    Replies: 13
    Last Post: 13th March 2008, 15:23
  4. VS2005+Qt4.2.2:Get a Mysql connect error.HELP!!
    By fengtian.we in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2007, 13:23
  5. Error connecting to MySQL
    By probine in forum Qt Programming
    Replies: 20
    Last Post: 24th February 2006, 00:13

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.