×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    5

    can't load MySql driver

    hi there,

    i'm currently trying to develop a mysql connector in qt on s60 5th edition phones. my problem is now that qt can't find the drivers to connect to the mysql-db... when i call 'QSqlDatabase::drivers()' the only result i get is QSQLITE. i already tried to re-configure qt to use the include paths and libs from my mysql-installation but without any positive result:

    Code:
    [qt-dir:] configure -qt-sql-mysql -l mysql -I c:\MySQL\include -L c:\MySQL\lib\opt
    error msg (ok this message i guess i understand - i try to configure qt with mysql support but it has no platform to configure...):

    Code:
    mingw32-make: *** No targets.  Stop.
    mingw32-make: *** No rule to make target `clean'.  Stop.
    Cleaning qmake failed, return code 2
    also i tried re-configuring qt for s60 for the device with following command:

    Code:
    [qt-dir:] configure -platform win32-mwc -xplatform symbian-abld -qt-sql-mysql -lmysql -I "C:\MySQL\include" -L "C:\MySQL\lib\opt"
    and there in the output window i could see that the mysql option was switched to on:

    Code:
    Sql Drivers:
        ODBC....................no
        MySQL...................yes
        OCI.....................no
        PostgreSQL..............no
        TDS.....................no
        DB2.....................no
        SQLite..................yes (system)
        SQLite2.................no
        InterBase...............no

    the configure-command succeded, but when i built my app it didn't work: only the QSQLITE driver was displayed...

    i also tried to build a the mysql libs so that qt recognizes them (generate *.a files):

    Code:
    c:\MySQL\lib\opt>reimp -d libmysql.lib
    c:\MySQL\lib\opt>dlltool -k -d libmysql.def -l libmysql.a
    the first command succeeded (reimp), but the second command produced following error:

    Code:
    Sorry, \epoc32\gcc\bin\dlltool.exe is not supported in this release. Please use a different
    device. Use 'devices' to view the available devices.
    and when i call the devices command my devices are listed (it doesn't matter which device is the default device -> it doesn't work with both):

    Code:
    S60_5th_Edition_SDK_v1.0:com.nokia.s60 - default
    S60_3rd_FP1:com.nokia.s60
    maybe someone had a similar problem and/or can help me out with that one...

    big thx in advance!

    my system configuration:
    win7 professional x86 - english
    qt for s60 4.5.2 tower release (i also tried the new 4.6 beta version, but same problem)
    symbian s60 5th edition + 3rd edition fp1 installed

  2. #2
    Registered User
    Join Date
    Jan 2009
    Posts
    5

    Re: can't load MySql driver

    hi!

    i'm still having this problem :-\

    aren't there any advices?

    thx

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: can't load MySql driver

    I'm not exactly sure that I understand what you're trying to do. It is documented that Qt for Symbian only supports sqlite databases and that's because that's what Symbian supports. As far as I know there is no MySQL port for Symbian so there's nothing you can do about enabling it.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    5

    Re: can't load MySql driver

    hi

    thx for replying...

    you say there is no way to create a mysql-connector for symbian phones? i know that for the internal DB support sqlite is used...

    so there is no way to connect to other DBs, other than sqlite o_O

    thx anyway...

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: can't load MySql driver

    you might want to refer to QtSQL* classes in qt docs http://doc.qt.nokia.com/4.6/classes.html

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    5

    Re: can't load MySql driver

    that's the class reference for desktop development... there is nothing about mysql for s60... but i'm searching for the QSQLDriver for MySQL

    thx

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: can't load MySql driver

    what i read is QtSQL already ported to Symbian so you can use them.

    QSQLDriver for MySQL might not be there for Symbian .

  8. #8
    Registered User
    Join Date
    Jan 2009
    Posts
    5

    Re: can't load MySql driver

    okay... apparently that's the problem :-\

    thx a lot anyway!

Similar Threads

  1. Widget to load remote mysql data
    By andrepb in forum Symbian
    Replies: 2
    Last Post: 2009-09-08, 08:52
  2. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08
  3. Can't get DKU5 driver to load.
    By vietcali in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2005-05-28, 20:56
  4. JDBC & MySQL problems
    By cyntellitek in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-10, 01:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •