Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User mavi85bmn's Avatar
    Join Date
    Apr 2009
    Posts
    22
    Hey Qtcentre,

    I'm currently working on an application which need acces to a MySQL database. I get the usual error with the missing driver for MySQL when trying to run the app in the simulator, and it wont run on the phone (n900) either.

    I did the following:

    Download and install MySQL with libraries
    Run Qt. 4.7 Command prompt
    cd c:\Qt\4.7.0\src\plugins\sqldrivers\mysql
    qmake "INCLUDEPATH+=C:\\program files\\MySQL\\MySQL Server 5.1\\include" "LIBS+=C:\\program files\\MySQL\MySQL Server 5.1\\lib\\opt\\libmysql.lib" mysql.pro
    nmake

    I get this error, and tbh i really have no idea what the error is..



    Im quite a neewb, so i'll appreciate anything easy to understand

  2. #2
    Registered User mavi85bmn's Avatar
    Join Date
    Apr 2009
    Posts
    22
    anyone?

  3. #3
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Well, it's telling you that it's looking for libmysql. Not clear whether it's looking for a .lib or a .dll from the error message.

    It sounds like perhaps you have "LIBS += -llibmysql" in your .pro file. Was that your intent?

  4. #4
    Registered User hmpc34's Avatar
    Join Date
    Jan 2011
    Posts
    1
    I am having exacly the same problem. Read another guide too, but nothing.

  5. #5
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    When linking a lib, it's important to know that if you have MyLib.lib you should put "LIBS += -lMyLib" in your .pro, but if you have MyLIb.dll you should put "LIBS += -lMyLib.lib" in your .pro.

    (Makes perfect sense, no?)

  6. #6
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    But the answer to the original query is probably that there is no MySQL support on Symbian.

Similar Threads

  1. Nokia Qt SDK and Qt Mobility - Installation Problems
    By napstar in forum [Archived] Qt SDKs and Tools
    Replies: 8
    Last Post: 2011-06-07, 13:40
  2. QT Nokia sdk installation and QT Creator config problem
    By kapiluiet in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-06-02, 13:49
  3. can't load MySql driver
    By mani_lachi in forum [Archived] Qt SDKs and Tools
    Replies: 7
    Last Post: 2009-12-17, 09:28
  4. S60 Printer Driver Installation
    By robroy42 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 7
    Last Post: 2009-08-24, 09:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved