Results 1 to 5 of 5

Thread: Compile Qt for Mac statically

  1. #1
    Join Date
    Nov 2007
    Posts
    57
    Thanks
    36
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Compile Qt for Mac statically

    Hello,

    I'm a complete PC person and now I need to compile a Qt program for Mac. I need to do it statically - the program should run on any Mac without depending on Qt being installed. I was wondering if someone could help me with this. I was able to borrow a Mac from a friend for just a few days to figure this out. Do I need to compile Qt from source code on the Mac? Does anyone have instructions how to do this?

    Thank you in advance!

  2. #2
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile Qt for Mac statically

    You will need to build your project to mac OS, so you will need a Qt installed on atleast the computer you will use, then before building the project configure Qt statically first with the support of course of the plugin you use.

  3. #3
    Join Date
    Nov 2007
    Posts
    57
    Thanks
    36
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qt for Mac statically

    Thanks!

    I downloaded Qt for Mac: (ftp://ftp.trolltech.com/qt/source/qt...urce-4.4.1.dmg) and installed it. Now I have a few folders and files where I downloaded everything. What do I do next, what file should I find? I'm not finding anything analogous to configure.exe. Also I don't know how to access command prompt.
    Sorry about the beginner questions but I have no expereience with Mac and it's all very different from Windows. Are there step by step instructions somewhere?
    Last edited by eric; 31st July 2008 at 20:11.

  4. #4
    Join Date
    Aug 2008
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Compile Qt for Mac statically

    The .dmg is a binary install so you just be able to double-click. To install from source, download the .tar. Once unzipped you can run configure.

  5. The following user says thank you to Kal for this useful post:

    eric (19th August 2008)

  6. #5
    Join Date
    Nov 2007
    Posts
    57
    Thanks
    36
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qt for Mac statically

    Does anyone know how qmake functions on a Mac? Can I access it through the terminal and use it just like I use it for windows (through command prompt)? Or do people usually use Xcode to compile for Mac?
    Last edited by eric; 19th August 2008 at 19:53.

Similar Threads

  1. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  2. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  3. Qt 4.1 - compile regular DLL statically
    By Elder Orb in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2006, 09:28

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.