Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Qt from Git doesn't get build on OS X
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt from Git doesn't get build on OS X

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    tucnak
    wrote on last edited by
    #1

    Hey, I am trying to build qtbase from Git and make finishes with:

    @
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-dead_strip -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -o ../../../bin/rcc .obj/rcc.o .obj/main.o -L/Users/tucnak/Development/qtbase/build/lib -lQt5Bootstrap
    Undefined symbols for architecture x86_64:
    "OBJC_CLASS$_NSString", referenced from:
    objc-class-ref in libQt5Bootstrap.a(qstring_mac.o)
    "_FSFindFolder", referenced from:
    macLocation(QStandardPaths::StandardLocation, short) in libQt5Bootstrap.a(qstandardpaths_mac.o)
    "_FSRefMakePath", referenced from:
    macLocation(QStandardPaths::StandardLocation, short) in libQt5Bootstrap.a(qstandardpaths_mac.o)
    "_FSGetCatalogInfo", referenced from:
    QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlagsQFileSystemMetaData::MetaDataFlag) in libQt5Bootstrap.a(qfilesystemengine_unix.o)
    "_FSPathMakeRefWithOptions", referenced from:
    QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlagsQFileSystemMetaData::MetaDataFlag) in libQt5Bootstrap.a(qfilesystemengine_unix.o)
    "_CFBundleCopyResourcesDirectoryURL", referenced from:
    QStandardPaths::standardLocations(QStandardPaths::StandardLocation) in
    ...
    "_CFURLCreateFromFSRef", referenced from:
    QFileSystemEngine::canonicalName(QFileSystemEntry const&, QFileSystemMetaData&) in libQt5Bootstrap.a(qfilesystemengine_unix.o)
    "_CFBundleCreate", referenced from:
    QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlagsQFileSystemMetaData::MetaDataFlag) in libQt5Bootstrap.a(qfilesystemengine_unix.o)
    "_CFStringGetTypeID", referenced from:
    QFileSystemEngine::bundleName(QFileSystemEntry const&) in libQt5Bootstrap.a(qfilesystemengine_unix.o)
    "___CFConstantStringClassReference", referenced from:
    CFString in libQt5Bootstrap.a(qcoreapplication.o)
    CFString in libQt5Bootstrap.a(qcore_mac_objc.o)
    CFString in libQt5Bootstrap.a(qcore_mac_objc.o)
    "_CFBundleGetValueForInfoDictionaryKey", referenced from:
    QCoreApplicationPrivate::appName() const in libQt5Bootstrap.a(qcoreapplication.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [../../../bin/moc] Error 1
    make[1]: *** [sub-moc-install_subtargets] Error 2
    make: *** [sub-src-install_subtargets] Error 2
    @

    Any ideas on how to fix it? Thanks!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Issue was fixed by running single-core build (gmake), instead of make -j8 install.

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

        Hi,

        What branch are you building ? What version of OS X are you running ? Which version of Xcode are you using ?

        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