Results 1 to 7 of 7

Thread: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

  1. #1
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    hi everyone, I hope all is well. I'm struggling to compile the Qt libs for Qt 5.1.1 for android. I must compile the libs so that I can get the MySql driver dll's. The information I have acquired from the internet on how to do this relates to Qt 4.7.x none of it is about Qt 5.1.1. According to the information on the net, one must locate the file "src" under the Qt installation directory and then go to plugins->SqlLibs->mysql etc. the problem I have with Qt 5.1.1 is that I don't seems to find the file "src" under the Qt installation directory. can somebody help me with this.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    No need to yell

    The Qt source is readily available from the Qt Project web site downloads page.

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

    ayanda83 (8th November 2013)

  4. #3
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    So I downloaded the Qt source and I tried building the source code to get the MySql dll but the code contains errors, something about the init_thread_not being declared in the function close(). does anybody know how to solve this problem of building the sql driver?

  5. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    Have you read this ?

  6. #5
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    @stampede, yes i have read it many times I was actually following the instructions in that document to build the source code.

  7. #6
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    Ok, so on which step of the FAQ are you stuck now ? Can you post the exact error output ?

  8. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: I NEED TO COMPILE THE Qt LIBS SO THAT I CAN GET THE MySQL DRIVER dll ON Qt 5.1.1

    It is likely to be be failing because there are no Android MySql drivers (if such a thing even exists) available in the build environment. I am guessing mysql_thread_init() in the plugin open() funcion and mysql_thread_end() in close() feature among the errors... Along with all the other MySql library functions.

    See thread https://www.qtcentre.org/showthread.php?t=56202 for a possible approach.

Similar Threads

  1. Cross-Compile MySQL Driver for ARM
    By Pluvius in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 8th May 2014, 06:11
  2. MySql driver compile problem (QtSDK/QtSources 4.8.1 and msvc 2010)
    By junhonguk in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd April 2013, 03:57
  3. Trying to compile mysql driver
    By Chebyshev in forum Newbie
    Replies: 0
    Last Post: 10th November 2012, 18:37
  4. not able to compile sql driver mysql
    By sujan.dasmahapatra in forum Newbie
    Replies: 2
    Last Post: 14th July 2011, 19:44
  5. cant compile mysql driver
    By IsoArska in forum Newbie
    Replies: 18
    Last Post: 30th November 2009, 22:51

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.