Results 1 to 3 of 3

Thread: Qt Application with Mysql on customer/client/another computer

  1. #1
    Join Date
    Oct 2011
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt Application with Mysql on customer/client/another computer

    This thread is a tutorial for Developer who wants to run Qt application on another computer (without installing Qt SDK/Qt Creator on it).

    I have tried this before.

    My application is a simple application for inputing data to the database through the Qt Application (.exe file). Before you run the application on the computer (another computer) make sure you have installed My SQL on it, otherwise there would be no database on another computer. i recommend download the msi installer and the x86-32 bit one.
    here is the link : http://dev.mysql.com/downloads/installer/

    steps for running Qt Application on another computer with database connected :
    1. download and install Dependency Walker (mine is verion 2.2), here is the link : http://www.dependencywalker.com/

    2. Extract the dependency walker (wherever the directory is) and run the .exe file. after you run it, Use the dependency walker to open the Qt Application .exe file

    3. You should able to see the dll and others file that listed on the dependency walker, like this :
    dependency.jpg
    Search for that 7 listed file (below the testing.exe), and copy it to another computer in the same folder : C:\Program Files (x86)\MyProgram (this is my folder).

    4. copy the Qt application .exe file to the same folder as the 7 file listed on dependency walker. If on my folder is : C:\Program Files (x86)\MyProgram

    5. Create a subfolder sqldrivers inside MyProgram folder, and put 4 files in it : qsqlmysql4.dll, qsqlmysqld4.dll, libqsqlmysqld4.a, libqsqlmysql4.a

    6. finally copy libmysql.dll to MyProgram folder (where the Qt application .exe file in it). get the libmysql.dll on your MySQL directory, eg : C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib

    7. Run the Qt application .exe

    Taaaddddaaaaa~~~~ it works....

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qt Application with Mysql on customer/client/another computer

    For what do you need the debug plugins?

  3. #3
    Join Date
    Oct 2012
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt Application with Mysql on customer/client/another computer

    Thank you so much its working fine

Similar Threads

  1. [PyQt] send and emit an customer class....
    By cascoin in forum Qt Programming
    Replies: 5
    Last Post: 25th July 2013, 18:25
  2. Replies: 3
    Last Post: 28th October 2011, 23:24
  3. Replies: 3
    Last Post: 17th November 2010, 22:41
  4. Replies: 5
    Last Post: 15th June 2007, 22:08
  5. running Qt application on computer without Qt
    By vonCZ in forum Installation and Deployment
    Replies: 2
    Last Post: 30th May 2007, 15:36

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.