Results 1 to 11 of 11

Thread: deploying application with mysql

  1. #1
    Join Date
    May 2009
    Posts
    129

    Default deploying application with mysql

    Hi All

    I have created mysql based application..

    When i am trying to run my exe .. i am getting

    Qt Code:
    1. The Procedure entry point? shared_null@QByteArray@@0UData@1@a could not be located in the dynamic link library QtCore.dll
    To copy to clipboard, switch view to plain text mode 

    But i have added following dll in my application folder..

    1) myappplication.exe
    2)mingw10.dll
    3)Qtcore4.dll
    4)QtGUi4.dll
    5)QtXMl4.dll
    6)QtNetwork.dll
    7)libmysql.dll
    8) QtSql4.dll
    9)SqlDrivers folder(Qsqlmysql4.dll,qsqmysqld4.dll,qsqlite4.dll, qsqlited4.dll,qsqlodbc.dll,qsqlodbc.dll)

    still i have to add any other dll to solve this issue ?


    Thanks

    Yuvaraj R

  2. #2
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: deploying application with mysql

    Hi

    Perhaps this have nothing with the mysql, but yes if you compiled your
    application in release or debug mode.

    If you compile as debug mode you've use all qt dlls with 'd'. qtcore4d.dll

    I think that this problem can be this.

    I've problems similar problems when I compile application in release mode under window$

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

    Default Re: deploying application with mysql

    use Dependency Walker to check what dlls do you need
    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.

  4. #4
    Join Date
    May 2009
    Posts
    129

    Default Re: deploying application with mysql

    I used release mode..

    I checked out with dependency walker.. I don't know what do solver the error..

    I attached the screen shot image of dependency walker.


    Thanks

    Yuvaraj R
    Attached Files Attached Files

  5. #5
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: deploying application with mysql

    Use debug mode! Do the test and see what happens.
    I think that is not going to happen in this mode.

  6. #6
    Join Date
    May 2009
    Posts
    129

    Default Re: deploying application with mysql

    Hi All

    Now it is working in release mode ..

    Previously i used the dll from qt/2009.01/bin..

    Now i am using dll from qt/2009.01/qt/bin..






    Thanks

    Yuvaraj R

  7. #7
    Join Date
    May 2009
    Posts
    129

    Default Re: deploying application with mysql

    I installed my application at Mysql uninstalled system

    I got following error:

    can't connect to mysqlserver on localhost(10060)

    QMYSQL:Unable to connect..

    I have libmysql.dll and qsqlmysql.dll in my application folder..

    How do solve this issue?


    Thanks

    Yuvaraj R

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

    Default Re: deploying application with mysql

    man, where do you have that MySQL database you want to connect? If it is not on the same machine as application runs than "localhost" is not a valid host
    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.

  9. #9
    Join Date
    May 2009
    Posts
    129

    Default Re: deploying application with mysql

    How do i solve this issue ?
    i tried with my system ip address instead of localhost ..

    Please help me

    Thanks

    Yuvaraj R

  10. #10
    Join Date
    Sep 2009
    Posts
    36
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: deploying application with mysql

    a) is your database at the same PC your application is supposed to run?
    b) is your mysql daemon (or however that is called in win) up and running
    c) recheck path to your database

    Greets

  11. #11
    Join Date
    Oct 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: deploying application with mysql

    I think your database driver should be in a subdirectory:

    sqldrivers/qsqlmysql4.dll

    you should only require:

    mingwm10.dll
    QtCore4.dll
    QtGui4.dll
    QtSql4.dll

    as well as the appropriate database driver already mentioned in the sqldrivers subdirectory for a standard sql gui program, all these should be placed in the same directory as the executable program.

Similar Threads

  1. Deploying Qt 4.5.1 Application on RHEL 5.. Pls Help
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 28th June 2009, 11:43
  2. Deploying application on Linux machine without Qt
    By will49 in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 22:41
  3. deploying my qt application
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd May 2008, 11:34
  4. Deploying Qt 4.2 Application on Mac 10.3.5?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 0
    Last Post: 11th May 2007, 11:33
  5. Deploying with MySQL support under Windows
    By KShots in forum Installation and Deployment
    Replies: 1
    Last Post: 12th October 2006, 09:19

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.