Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt Project with Cocoa Webview got a compilation error
Forum Update on Monday, May 27th 2025

Qt Project with Cocoa Webview got a compilation error

Scheduled Pinned Locked Moved Qt WebKit
26 Posts 3 Posters 9.6k 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
    gaojinhsu
    wrote on last edited by
    #21

    @/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.1.1/5.1.1/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.1.1/5.1.1/clang_64/include -I../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets -I../../Qt5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.1.1/5.1.1/clang_64/include/QtGui -I../../Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.1.1/5.1.1/clang_64/include/QtCore -I../../Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I. -F/Users/gint_develop/Qt5.1.1/5.1.1/clang_64/lib -o moc_mainwindow.o moc_mainwindow.cpp
    In file included from moc_mainwindow.cpp:9:
    In file included from ./../QtCoCoaMix/mainwindow.h:4:
    In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/QMainWindow:1:
    In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/qmainwindow.h:45:
    In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/qwidget.h:45:
    In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtGui/qwindowdefs.h:45:
    In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtCore/qglobal.h:70:
    ../../Qt5.1.1/5.1.1/clang_64/include/QtCore/qsystemdetection.h:243:6: warning: "This version of OS X is unsupported" [-W#warnings]

    warning "This version of OS X is unsupported"

     ^
    

    1 warning generated.
    /Users/gint_develop/Qt5.1.1/5.1.1/clang_64/bin/moc -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D__APPLE__ -D__GNUC__=4 -I../../Qt5.1.1/5.1.1/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.1.1/5.1.1/clang_64/include -I../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets -I../../Qt5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.1.1/5.1.1/clang_64/include/QtGui -I../../Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.1.1/5.1.1/clang_64/include/QtCore -I../../Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I. -F/Users/gint_develop/Qt5.1.1/5.1.1/clang_64/lib ../QtCoCoaMix/cocoawebview.h -o moc_cocoawebview.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -g -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.1.1/5.1.1/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.1.1/5.1.1/clang_64/include -I../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets -I../../Qt5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.1.1/5.1.1/clang_64/include/QtGui -I../../Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.1.1/5.1.1/clang_64/include/QtCore -I../../Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I. -F/Users/gint_develop/Qt5.1.1/5.1.1/clang_64/lib -o moc_cocoawebview.o moc_cocoawebview.cpp
    In file included from moc_cocoawebview.cpp:9:
    In file included from ./../QtCoCoaMix/cocoawebview.h:4:@

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gaojinhsu
      wrote on last edited by
      #22

      @In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/QMacCocoaViewContainer:1:
      In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/qmaccocoaviewcontainer_mac.h:45:
      In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/QWidget:1:
      In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtWidgets/qwidget.h:45:
      In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtGui/qwindowdefs.h:45:
      In file included from ../../Qt5.1.1/5.1.1/clang_64/include/QtCore/qglobal.h:70:
      ../../Qt5.1.1/5.1.1/clang_64/include/QtCore/qsystemdetection.h:243:6: warning: "This version of OS X is unsupported" [-W#warnings]

      warning "This version of OS X is unsupported"

       ^
      

      1 warning generated.
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -o Browser.app/Contents/MacOS/Browser cocoawebview.o main.o mainwindow.o moc_mainwindow.o moc_cocoawebview.o -F/Users/gint_develop/Qt5.1.1/5.1.1/clang_64/lib -framework Cocoa -framework WebKit -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
      Undefined symbols for architecture x86_64:
      "QMacCocoaViewContainer::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
      CocoaWebView::qt_metacall(QMetaObject::Call, int, void**) in moc_cocoawebview.o
      "QMacCocoaViewContainer::qt_metacast(char const*)", referenced from:
      CocoaWebView::qt_metacast(char const*) in moc_cocoawebview.o
      "QMacCocoaViewContainer::setCocoaView(void*)", referenced from:
      CocoaWebView::CocoaWebView(QWidget*) in cocoawebview.o
      "QMacCocoaViewContainer::staticMetaObject", referenced from:
      CocoaWebView::staticMetaObject in moc_cocoawebview.o
      "QMacCocoaViewContainer::QMacCocoaViewContainer(void*, QWidget*)", referenced from:
      CocoaWebView::CocoaWebView(QWidget*) in cocoawebview.o
      "QMacCocoaViewContainer::~QMacCocoaViewContainer()", referenced from:
      CocoaWebView::CocoaWebView(QWidget*) in cocoawebview.o
      CocoaWebView::~CocoaWebView() in moc_cocoawebview.o
      "QMacCocoaViewContainer::cocoaView() const", referenced from:
      CocoaWebView::CocoaWebView(QWidget*) in cocoawebview.o
      "typeinfo for QMacCocoaViewContainer", referenced from:
      typeinfo for CocoaWebView in moc_cocoawebview.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: *** [Browser.app/Contents/MacOS/Browser] Error 1
      00:23:15: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project QtCoCoaMix (kit: Desktop Qt 5.1.1 clang 64bit)
      When executing step 'Make'
      00:23:15: Elapsed time: 00:05.@

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brcontainer
        wrote on last edited by
        #23

        Please, use http://pastebin.com/

        make two pastebin

        one pastebin with the "compiler output" of "QT5.2"
        and outher pastebin with the "compiler output" of "QT5.1.1"

        Thanks

        QT project: https://github.com/brcontainer/qt-helper

        1 Reply Last reply
        0
        • B Offline
          B Offline
          brcontainer
          wrote on last edited by
          #24

          I have a version of the old Mac. I'll try to install it. Which version of xcode do you use?

          QT project: https://github.com/brcontainer/qt-helper

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gaojinhsu
            wrote on last edited by
            #25

            @Gullherme Sorry for the late reply, I was on vacation
            OSX 10.9
            Xcode 5.0.2
            As to the pastebin, May I upload it to google drive,because it is too long to post here.
            "Compile output":https://drive.google.com/file/d/0B0lyTclIaUOPbXBYa1NFYWVIcEU/edit?usp=sharing

            1 Reply Last reply
            0
            • B Offline
              B Offline
              brcontainer
              wrote on last edited by
              #26

              @gaojinhsu I'm downloading the xcode and qt5.1.1 for MAC, can take a while for me to do the tests. But as soon as you can (or not), I promise to give you an answer.

              QT project: https://github.com/brcontainer/qt-helper

              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