Results 1 to 4 of 4

Thread: How to add extra space to binary/library to allow a longer pathname

  1. #1
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to add extra space to binary/library to allow a longer pathname

    Hi to all!

    I have a problem when using install_name_tool (Mac OS X).
    Everithing works fine except for one binary.

    "install_name_tool: changing install names can't be redone for: /Library/LaunchDaemons/mydaemon (for architecture ppc) because larger updated load commands do not fit (the program must be relinked)"

    There's no extra room compiled into the binary to allow for a longer pathname, so I have to compile the binary with an extra flag to allow for more room in the path.

    Can somebody tell me what a flag this is and how to compile with this flag.

    I am looking forward for your help.

    Thanks for your help.

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to add extra space to binary/library to allow a longer pathname

    Quote Originally Posted by kemp View Post
    Hi to all!

    I have a problem when using install_name_tool (Mac OS X).
    Everithing works fine except for one binary.

    "install_name_tool: changing install names can't be redone for: /Library/LaunchDaemons/mydaemon (for architecture ppc) because larger updated load commands do not fit (the program must be relinked)"

    There's no extra room compiled into the binary to allow for a longer pathname, so I have to compile the binary with an extra flag to allow for more room in the path.

    Can somebody tell me what a flag this is and how to compile with this flag.

    I am looking forward for your help.

    Thanks for your help.
    Whats happen wenn you use a script like ...
    http://www.qtcentre.org/forum/f-qt-p...tool-6440.html
    or
    http://qtnode.net/wiki/Distributing_Mac_Qt_applications

    i suppose xcode must use new .... i have the same problem ....

    wenn i use this http://www.qtcentre.org/forum/f-qt-p...tool-6440.html
    all go to apps dir ... but not relink corect .... if i rename my internal lib core ... app not start....

    Mac user opinion .. touch..
    how is the big apple...

  3. #3
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to add extra space to binary/library to allow a longer pathname

    Hi!

    I will try the script when i get home, because i haven't got a mac or qt installed here.
    Will send you a reply soon.

  4. #4
    Join Date
    Sep 2007
    Posts
    1
    Thanked 1 Time in 1 Post

    Default Re: How to add extra space to binary/library to allow a longer pathname

    For posterity - I found this (unanswered) question today and thought I would throw up the answer:

    Use -headerpad_max_install_names as an additional LD flag (in your XCode build settings).

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

    jacek (28th September 2007)

Similar Threads

  1. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2006, 00:11

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.