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



  • 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!



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


  • Lifetime Qt Champion

    Hi,

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.