Page 1 of 2 12 LastLast
Results 1 to 20 of 30

Thread: how to run applacation on the machine without qt,msvc2005

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default how to run applacation on the machine without qt,msvc2005

    I develop a applacation with qt4.3.1+msvc2005+mysql5,I do not know how to run it without the environments?

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    built your app, add all Qt dlls to your app dir (where exe file is located) then install vcredist_x86 to destentation machine and run your app.
    PS. a set of needed dlls your can get using Dependency Walker.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    Quote Originally Posted by spirit View Post
    built your app, add all Qt dlls to your app dir (where exe file is located) then install vcredist_x86 to destentation machine and run your app.
    PS. a set of needed dlls your can get using Dependency Walker.
    When I install vcredist_x86 ,Do I configure my compupter?

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    what do you mean?
    you need just install vcredist_x86 and then run your application.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    add all Qt dlls to your app dir
    all Qt dlls means that the dlls in the directory ../bin and ../lib?

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    in bin, but you don't have ship all Qt dll, pick only that dlls which you an application need.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  7. #7
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    I copy all the dlls in the bin directory and install the vcredist_x86.exe ,but the applaction can not run?
    By the way,my development tools is Qt4.3.1+msvc2005+Mysql5+other
    GUI Dll.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to run applacation on the machine without qt,msvc2005

    Please don't start multiple threads on the same subject.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    I copy all the dlls in the bin directory and install the vcredist_x86.exe ,but the applaction can not run?
    By the way,my development tools is Qt4.3.1+msvc2005+Mysql5+other
    GUI Dll.

  10. #10
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    what kind of error do you get?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  11. #11
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    application failed to initialize properly--OXC0150002

  12. #12
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    did you apply Dependency Walker to your application?
    did it find all needed dlls?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  13. #13
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    Yes,I use.
    I copy all the needed dlls to the same directory of exetable.
    By the way,
    In my application,I compile a dll,and the main application call it.
    Now,my question,I think,is with my dll,not because of without some dll.

  14. #14
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    did you put your dll with the application?
    btw, type Deploying an Application on Windows in Qt Assistant and read how to deploy Qt app on Windows.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  15. #15
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    I compile my dll with debug dlls(Qt),and Generate it under the release model.Mybe this cause the error?

  16. #16
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    of course, all must be in release if you use release version of app.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  17. #17
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    Need I configure the envirenment varables o f the machine?For example,QTIDR=....,

  18. #18
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    on destination machine which has not installed Qt? no.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  19. #19
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    I have install vc2005,and the applacation can run,I do not know why.
    1. I use debug Qt dll to generate my release Dll,Has it to do with it?
    2.During install the vc2005,maybe change sth in the register table,Has it to do with it?
    Last edited by weixj2003ld; 15th April 2009 at 10:53.

  20. #20
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to run applacation on the machine without qt,msvc2005

    Quote Originally Posted by weixj2003ld View Post
    I use debug Qt dll to generate my release Dll,Has it to do with it?
    how can it be?

    rebuild your app and that lib in release.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. how to run Qt programs on non qt machine ?
    By aamer4yu in forum Installation and Deployment
    Replies: 15
    Last Post: 11th July 2012, 07:38
  2. Qt State Machine Examples don't compile
    By vitalyx in forum Newbie
    Replies: 0
    Last Post: 4th April 2009, 14:19
  3. installing the Packages in remote machine Simulator
    By Yeshwin in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 21st February 2009, 15:06
  4. Deploying application on Linux machine without Qt
    By will49 in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 22:41
  5. Replies: 5
    Last Post: 28th August 2006, 14: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.