Results 1 to 3 of 3

Thread: QMAKE_LFLAGS -sectcreate

  1. #1
    Join Date
    Jun 2009
    Posts
    37
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QMAKE_LFLAGS -sectcreate

    Does anybody know why: setting the following in my .pro file

    Qt Code:
    1. QMAKE_LFLAGS += -sectcreate __TEXT __info_plist /path/to/myInfo.plist
    2. QMAKE_LFLAGS += -sectcreate __TEXT __launchd_plist /path/to/myLaunchd.plist
    To copy to clipboard, switch view to plain text mode 

    it gets me the following error
    x86_64: No such file or directory

    if I set only 1 QMAKE_LFLAGS it works fine.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMAKE_LFLAGS -sectcreate

    See the actual command that is ran while linking, maybe you will notice some problem after those magic lines are translated to an actual linker call.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    JoZCaVaLLo (16th July 2012)

  4. #3
    Join Date
    Jun 2009
    Posts
    37
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMAKE_LFLAGS -sectcreate

    Hi Wysota

    thank you for your time! Here is the compile output... it seems there is a problem in the translation: for the second -sectcreate it removes the __TEXT flag.
    May this be the problem? I actually don't have an Idea how to resolve this problem...

    Qt Code:
    1. g++ -headerpad_max_install_names
    2. -sectcreate __TEXT __launchd_plist /Dev/projects/test-cocoa-and-qt/helperBanana/helperBanana-Launchd.plist
    3. -sectcreate __info_plist /Dev/projects/test-cocoa-and-qt/helperBanana/helperBanana-Info.plist
    4. -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o helperBanana SSPrivilegedHelperCommon.o BetterAuthorizationSampleLib.o helpermain.o
    5. -F/Library/Frameworks -L/Library/Frameworks -framework AppKit -framework Security
    6. -framework CoreServices -framework CoreFoundation -framework ServiceManagement -framework QtGui -framework QtCore
    To copy to clipboard, switch view to plain text mode 


    Added after 4 minutes:


    Sorry!!! I did find the solution: using $$quote did solve the problem!!!


    QMAKE_LFLAGS += $$quote(-sectcreate __TEXT __info_plist /path/to/myInfo.plist)
    QMAKE_LFLAGS += $$quote(-sectcreate __TEXT __launchd_plist /path/to/myLaunchd.plist)
    Last edited by JoZCaVaLLo; 16th July 2012 at 08:41.

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.