Important: Please read the Qt Code of Conduct -

Error during building Qt 5.0.1 on Mac OS 10.8

  • Hello,

    I have some years of experiance in developing comand line software on UNIX based OS but now I am quit new in using Qt. So I hope for some help and a little patience.
    I have installed Qt 5.0.1 for Mac OS on my Macbook Pro with Mac OS 10.8.3. After installing I wanted to build the Qt library. The configuration with configure was successful. After make I got an error message:

    @In file included from
    ./qcocoawindow.h:52:28: error: extra qualification on member 'QCocoaWindow'
    class QT_PREPEND_NAMESPACE(QCocoaWindow);
    ../../../../include/QtCore/../../src/corelib/global/qglobal.h:84:39: note:
    expanded from macro 'QT_PREPEND_NAMESPACE'

    define QT_PREPEND_NAMESPACE(name) ::name


    1 error generated.
    make[5]: *** [.obj/debug-shared/qcocoaintegration.o] Error 1
    make[4]: *** [debug-all] Error 2
    make[3]: *** [sub-cocoa-make_first] Error 2
    make[2]: *** [sub-platforms-make_first] Error 2
    make[1]: *** [sub-plugins-make_first] Error 2
    make: *** [sub-src-make_first] Error 2
    bash-3.2$ @

    The GCC compiler version is 4.2.1

    Is there any idea how to solve this problem?

    kindest regards,


  • Hello dh4dai,
    Did you install the Qt with the installer? If you did, no need to touch anything but caring about your own app.
    Plus, I think Qt5.0.1 comes with clang... Do you have any other Qt's installation ?

Log in to reply