Results 1 to 6 of 6

Thread: How make project ready to use in any computer?

  1. #1
    Join Date
    May 2010
    Posts
    20
    Thanks
    7
    Qt products
    Qt4

    Question How make project ready to use in any computer?

    \

    Hi everybody

    In the Attachments you can see my small project
    It calculates the difference between two dates, and the result will be years, months, and days.

    I put it here to sharing the ideas together.

    Now, I just need to know what i can do to make this project as a program ready to using in any computer!

    I am not sure if this proper place to put my question.

    thanks anyway.

    \
    Attached Files Attached Files

  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: How make project ready to use in any computer?

    Have a look at the documentation on how to deploy an application. And once you have opened the documentation you might also want have a look at QDate, QDateEdit etc.

  3. The following user says thank you to Lykurg for this useful post:

    Abeer (30th September 2010)

  4. #3
    Join Date
    May 2010
    Posts
    20
    Thanks
    7
    Qt products
    Qt4

    Default Re: How make project ready to use in any computer?

    thanks a lot Lykurg

    I found simple way to run my project in any computer without qt program.

    Steps:

    from tool bar
    Build>set Build Configuration>Release.

    then,
    Build all

    then,
    Run

    last step:
    go to project folder and enter to folder called (Release) then, take execution file(.exe)
    and put it in new folder

    then, go to qt folder and take these files called: (mingwm10.dll, QtCore4.dll, QtGui4.dll, libgcc_s_dw2-1.dll) and put it in the previous new folder.

    Now, you can take the new folder to any computer doesn't have qt program and run your project.



    \

  5. #4
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android

    Default Re: How make project ready to use in any computer?

    See also the HM NSIS project.

  6. The following user says thank you to Urthas for this useful post:

    Abeer (1st October 2010)

  7. #5
    Join Date
    Nov 2010
    Posts
    1
    Platforms
    Windows

    Default Re: How make project ready to use in any computer?

    Are there any other, more elegant ways to make .exe -files working in every computer than copying these .dll -files? I tried to add -static flag to qmake.conf , and also tried to remove all -mthreads -flags in the file, but it didn't help. Has anyone managed to do this?

  8. #6
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How make project ready to use in any computer?

    Hi,

    Just search this forum or the internet on"static linking" or "building a static version of Qt". But beware... it takes a lot of time and trial-and-error to build a fully static version of qt that is not dependent on any MingW or Visual Studio DLL. If you're new to Qt, I'd just stick to copying the DLL's for now.

    B.t.w. your steps are sort of what is mentioned in the Qt documentation on deployment : Qt deployment on Windows.

    Regards,
    Marc

Similar Threads

  1. Qt Creator How to make Creator be aware of the Qt source code project?
    By kartwall in forum Qt Tools
    Replies: 5
    Last Post: 27th September 2010, 08:39
  2. How do I make my project executable file
    By theios_nikos in forum Newbie
    Replies: 8
    Last Post: 4th June 2010, 20:48
  3. Qt creator, tech. preview not ready
    By giusepped in forum Qt Tools
    Replies: 2
    Last Post: 8th November 2008, 18:22
  4. qt ready fn to extract ip address from a qstring
    By nass in forum Qt Programming
    Replies: 3
    Last Post: 26th March 2007, 15:27
  5. Cell Computer Project
    By genetechnics in forum General Discussion
    Replies: 13
    Last Post: 6th August 2006, 15:38

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.