Results 1 to 3 of 3

Thread: build application on Mac os x and on Linux

  1. #1
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default build application on Mac os x and on Linux

    I try to build an application on Mac os x (same for linux). My program works on my computer but I cannot use my application on another computier because some libraries are missing. So, could you tell me the way to have this application working without to install any other lib. There is any option in debug or realse mode to do that.

    Tks,
    Last edited by shenakan; 22nd October 2009 at 13:22.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: build application on Mac os x and on Linux

    see http://en.wikipedia.org/wiki/Linux_Standard_Base
    (macs are a different issue; google for "universal binary", maybe those help)
    using static linking avoids some issues (your binaries get larger, though).

    also see deployment

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

    shenakan (23rd October 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: build application on Mac os x and on Linux

    I used macdeployqt to create my application

    The Mac Deployment Tool

    The Mac deployment tool can be found in QTDIR/bin/macdeployqt. It is designed to automate the process of creating a deployable application bundle that contains the Qt libraries as private frameworks.

    The mac deployment tool also deploys the Qt plugins, according to the following rules:

    * Debug versions of the plugins are not deployed.
    * The designer plugins are not deployed.
    * The Image format plugins are always deployed.
    * SQL driver plugins are deployed if the application uses the QtSql module.
    * Script plugins are deployed if the application uses the QtScript module.
    * The Phonon backend plugin is deployed if the application uses the Phonon module.
    * The svg icon plugin is deployed if the application uses the QtSvg module.
    * The accessibility plugin is always deployed.
    * Accessibility for Qt3Support is deployed if the application uses the Qt3Support module.

    macdeployqt supports the following options:

    * -no-plugins: Skip plugin deployment
    * -dmg : Create a .dmg disk image
    * -no-strip : Don't run 'strip' on the binaries

Similar Threads

  1. I Can't use QtCreator to static build my application
    By kyosold in forum Installation and Deployment
    Replies: 3
    Last Post: 6th January 2009, 10:20
  2. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 14:37
  3. build a gui ontop of a console application
    By aegis in forum Qt Programming
    Replies: 3
    Last Post: 25th March 2007, 12:16
  4. Build application using visual studio 6 ?
    By aamer4yu in forum Newbie
    Replies: 1
    Last Post: 3rd October 2006, 09:34
  5. Replies: 0
    Last Post: 21st February 2006, 16:30

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.