Results 1 to 5 of 5

Thread: dynamic linking on mac

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: dynamic linking on mac

    Here's a shell script I created to do all the Mac deployment dirty work for me, including making a dmg image. The usage is quite simple, all it needs is the name of the Qt application. It assumes makefile use (macx-g++ makespec), but it's a simple matter to adjust it to XCode use. It doesn't handle plugins and multiple executables, but that's not too common.

    Enjoy.
    Attached Files Attached Files

  2. The following user says thank you to Brandybuck for this useful post:

    munna (1st January 2007)

  3. #2
    Join Date
    Apr 2006
    Posts
    29
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: dynamic linking on mac

    Very nice script.

    Just be careful with the 'strip' thing: if someone adds plugin support to the script and if the latter take advantage of dynamic lookup, strip will cause lots of problems by removing useful symbols ;-)

    This tip may save a lot of time.

  4. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: dynamic linking on mac

    Yes, I know about the problems with plugins and "strip". Unfortunately, the Mac produces HUGE executables (even if they aren't universal).

Similar Threads

  1. static & dynamic linking
    By mickey in forum General Programming
    Replies: 6
    Last Post: 11th June 2010, 08:57
  2. Switching static to dynamic ui loading
    By s_a_white in forum Newbie
    Replies: 4
    Last Post: 26th June 2006, 15:57
  3. Dynamic grid layout
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2006, 15:19
  4. Replies: 4
    Last Post: 20th February 2006, 09:11
  5. Runtime dynamic linking + Qt4 problem
    By _Ramirez_ in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2006, 14: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
  •  
Qt is a trademark of The Qt Company.