Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Mac OSX, QT5.1.0, make: headerpad_max_install_names: No such file or directory

Mac OSX, QT5.1.0, make: headerpad_max_install_names: No such file or directory

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gstrube
    wrote on last edited by
    #1

    Hi everyone

    I have installed Xcode 4.6.3 and command line tools, and of course Qt 5.1. I'm running on Mac OSX 10.8.4.

    The linking part uses headerpad_max_install_names tool, which is not found on my Mac system (apparently).

    I'm trying to compile a console application, here's my PRO file (this PRO file has worked fine in qt 4.x):

    CONFIG -= app_bundle

    CONFIG += console
    QT -= gui core

    DESTDIR = .
    TARGET = mpm

    DEFINES += MPM_Z80
    win32 {
    DEFINES += MSDOS
    }

    !win32 {
    DEFINES += UNIX
    }

    QMAKE_LINK = $$QMAKE_LINK_C

    HEADERS += asmdrctv.h config.h datastructs.h exprprsr.h modules.h pass.h z80_prsline.h
    avltree.h crc32.h errors.h libraries.h options.h symtables.h z80_relocate.h

    SOURCES += main.c asmdrctv.c crc32.c exprprsr.c options.c symtables.c z80_instr.c
    z80_relocate.c avltree.c errors.c libraries.c modules.c pass.c z80_asmdrctv.c z80_prsline.c


    The compile output looks is like this:

    make
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DMPM_Z80 -DUNIX -DQT_NO_DEBUG -I../../Applications/Qt5.1.0/5.1.0/clang_64/mkspecs/macx-clang -I. -o main.o main.c

    (more files compiled)
    ....

    headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -o mpm main.o asmdrctv.o crc32.o exprprsr.o options.o symtables.o z80_instr.o z80_relocate.o avltree.o errors.o libraries.o modules.o pass.o z80_asmdrctv.o z80_prsline.o
    make: headerpad_max_install_names: No such file or directory
    make: [mpm] Error 1 (ignored)

    I have tried searching for this name in Apple developer forums and on the net without much luck. I have no idea what the problem is, since I have to my understanding installed the necessary development tools.

    Best regards
    Gunther

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gstrube
      wrote on last edited by
      #2

      Hi all,

      I have resolved the problem, which was the following line:
      QMAKE_LINK = $$QMAKE_LINK_C

      This removed the linker tool in the Makefile:
      LINK = (empty)

      The correct PRO file was:

      TEMPLATE = app

      CONFIG += console

      macx {

      Don't create a Mac App bundle...

          CONFIG -= app_bundle
      

      }

      QT -= gui core

      DESTDIR = .
      TARGET = mpm

      DEFINES += MPM_Z80
      win32 {
      DEFINES += MSDOS
      }

      !win32 {
      DEFINES += UNIX
      }

      HEADERS += asmdrctv.h config.h datastructs.h exprprsr.h modules.h pass.h z80_prsline.h
      avltree.h crc32.h errors.h libraries.h options.h symtables.h z80_relocate.h

      SOURCES += main.c asmdrctv.c crc32.c exprprsr.c options.c symtables.c z80_instr.c
      z80_relocate.c avltree.c errors.c libraries.c modules.c pass.c z80_asmdrctv.c z80_prsline.c

      There is no headerpad_max_install_names tool, just a linker directive!

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Glad you found out !

        When playing with variables like QMAKE_LINK (which generally you don't need to) adding something to it should rather be

        @QMAKE_LINK += whatever_you_need@

        or

        @QMAKE_LINK *= whatever_you_need@

        Otherwise (as you found out) you replace the current content of the variable

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved