Results 1 to 2 of 2

Thread: Few questions about deploying on Linux and Windows

  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Few questions about deploying on Linux and Windows

    About Windows:
    In every tutorial about Windows deploy i see "nmake". It is necesary to install it ?
    Even if i've used mingw to compile it ?

    Also, how do i link to a .dll that has 150 MB ?
    It will be necessary that the user would have the entire Qt SDK installed ?

    About Linux:

    If i compile it, it can't be run by others with the same type of distribution and CPU ?

    As far as i know, compiled files are translated to CPU native language, so why would be necessary to include the source files for the user to compile them every time ?

    The ideea is that i don't want to distribuite my source code.
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Few questions about deploying on Linux and Windows

    nmake is the make utility from the Microsoft compiler suite. If you are using the MingW tools in the Qt SDK then the equivalent is mingw32-make. On Windows these tools are used to build, not deploy or install, your software.

    Re Linking: If you have used qmake then the necessary link commands are placed into the generate Makefile for you. If you have built a release version of your program then it is linked against the release version of the Qt libraries: at the worst case about 40MB to deploy all of them. (Your screenshot is of a debug build) Your user does not need the entire Qt SDK or any of the debug libraries. Your installer needs to include the relevant release libraries and plugins to support your program on the end-user machine. Open Assistant and search for the key word "deployment".

    If you do not want to distribute your code to Linux users then you will need to build a binary version of your program for each target architecture and provide packages using the common packaging tools (i.e. RPM, Debian/Ubuntu packages, Gentoo ebuilds, etc.). The packages should ensure that any needed library dependencies are either bundled or present on the target machine.

Similar Threads

  1. Issues deploying a Qt-Creator-Project on Linux
    By The_Maverick in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd December 2010, 22:18
  2. Deploying Qt Application under Linux
    By addu in forum Qt Programming
    Replies: 17
    Last Post: 27th November 2010, 04:40
  3. Deploying on Windows
    By GianMarco in forum Installation and Deployment
    Replies: 6
    Last Post: 18th November 2009, 07:13
  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. Deploying App on Linux
    By janus in forum Installation and Deployment
    Replies: 5
    Last Post: 6th May 2008, 21:18

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.