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 Updated to NodeBB v4.3 + New Features

Qt Project with Cocoa Webview got a compilation error

Scheduled Pinned Locked Moved Qt WebKit
26 Posts 3 Posters 9.6k 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.
  • B Offline
    B Offline
    brcontainer
    wrote on last edited by
    #4

    Your qt-5.1.1 is x86 or x64?
    Your qt-5.2.0 is x86 or x64?

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

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

      x64 both.

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

        is true, now that I came across is QT5 for MacOSX x64 (there is no x86).

        Try this in pro file (force 32bit):
        @mac {
        ICON = browser.icns
        QMAKE_INFO_PLIST = Info_mac.plist
        TARGET = Browser

        contains(QT_CONFIG, x86 )  {
            CONFIG -= x86_64
            CONFIG += x86
        }
        contains(QT_CONFIG, ppc) {
            CONFIG -= ppc64
            CONFIG += ppc
        }
        

        }@

        if it does not work, try this:
        @mac {
        ICON = browser.icns
        QMAKE_INFO_PLIST = Info_mac.plist
        TARGET = Browser

        contains(QT_CONFIG, x86 )  {
            CONFIG -= x86_64
            CONFIG += x64
        }
        contains(QT_CONFIG, ppc) {
            CONFIG -= ppc
            CONFIG += ppc64
        }
        

        }@

        I could not test because I do not have a Mac at the moment but what I remember is something like this (at least in my projects so I did when I was using 32bit or 64bit plugins in Mac).

        bq. +1 to your question

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

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

          thanks, but neither of them works. : (

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

            I suppose you might be time to mix C++ and Object-c, try this: http://stackoverflow.com/a/1061576/1518921

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

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

              Hi,

              Can you provide a sample code that shows the problem with 5.2 ?

              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
              • B Offline
                B Offline
                brcontainer
                wrote on last edited by
                #10

                SGaist see first post by gaojinhsu for download.
                Thanks

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

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

                  I've managed to miss it… Thanks for the reminder

                  Back to the problem with 5.2, it seems that the official package suffers from a bug when releasing an application. However, building/deploying from a git build doesn't seem to have this problem.

                  For the build problem in 5.1.1, did you add/remove the Q_OBJECT macro and forgot to re-run qmake ?

                  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
                  • G Offline
                    G Offline
                    gaojinhsu
                    wrote on last edited by
                    #12

                    SGalst, for the problem in 5.1.1, I've tried your solution, it doesn't work. However, it works well with Qt5.2 without any modification. Does the demo app work well with 5.1.1 on your computer?

                    For your solution to problem with 5.2, I'll try it right now..it will takes a long time to git and build qt5.2

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

                      Gullherme, thanks for your solution, but I think I mix C++ and Object-c in a right way, otherwidse it won't go through with qt5.2 . To be honest, I found the sample code in someone's blog or something .(he was using qt4)

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

                        I read the cocowebview.h file:

                        @#ifndef COCOAWEBVIEW_H
                        #define COCOAWEBVIEW_H

                        #include <QMacCocoaViewContainer>

                        class CocoaWebView : public QMacCocoaViewContainer
                        {
                        public:
                        CocoaWebView(QWidget *parent);
                        };

                        #endif // COCOAWEBVIEW_H@

                        There is no Q_OBJECT, perhaps this is the problem.

                        Try this:

                        @class CocoaWebView : public QMacCocoaViewContainer
                        {
                        Q_OBJECT

                        public:@

                        if it does not work try this:

                        @class CocoaWebView : public QMacCocoaViewContainer
                        {
                        public:
                        explicit CocoaWebView(QWidget *parent = 0);
                        ~CocoaWebView();@

                        if it does not work try this:

                        @class CocoaWebView : public QMacCocoaViewContainer
                        {
                        Q_OBJECT

                        public:
                        explicit CocoaWebView(QWidget *parent = 0);
                        ~CocoaWebView();@

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

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

                          @Gullherme, thanks for your advice, but none of them works. And the compile error information is same.

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

                            I believe something has changed in qt5.2 (which facilitated the work on Mac), but there was still QT5.1.1 it, or maybe it was a downgrade.

                            I want you to very carefully follow the advice below:

                            Try compiling your code in QT5.2 (no matter if errors occur), to complete the process open to view "COMPILE OUTPUT" tab:
                            !http://s11.postimg.org/708aiz8tb/image.png(tab 4)!

                            Copy the entire contents of the "COMPILE OUTPUT".

                            Now do the same process using only QT5.1.1 (no matter if errors occur), to complete the process open to view "COMPILE OUTPUT" tab and copy this too.

                            Both post results here, so that I can analyze.

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

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

                              Qt5.2.0 compile output:
                              @00:17:26: Running steps for project QtCoCoaMix...
                              00:17:26: Starting: "/Users/gint_develop/Qt5.2.0/5.2.0/clang_64/bin/qmake" /Users/gint_develop/Desktop/QtCoCoaMix/QtCoCoaMix.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug
                              Info: creating stash file /Users/gint_develop/Desktop/build-QtCoCoaMix-Desktop_Qt_5_2_0_clang_64bit-Debug/.qmake.stash
                              WARNING: Could not resolve Info.plist: 'Info_mac.plist'. Check if QMAKE_INFO_PLIST points to a valid file.
                              00:17:26: The process "/Users/gint_develop/Qt5.2.0/5.2.0/clang_64/bin/qmake" exited normally.
                              00:17:27: Starting: "/usr/bin/make"
                              /Users/gint_develop/Qt5.2.0/5.2.0/clang_64/bin/uic ../QtCoCoaMix/mainwindow.ui -o ui_mainwindow.h
                              /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 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/lib ../QtCoCoaMix/cocoawebview.mm -o cocoawebview.o
                              ../QtCoCoaMix/cocoawebview.mm:15:121: warning: using 'stringWithString:' with a literal is redundant [-Wobjc-redundant-literal-use]
                              [[static_cast<WebView *> (this->cocoaView()) mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithString:@"http://www.google.com"]]]];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              1 warning generated.
                              /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.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/lib -o main.o ../QtCoCoaMix/main.cpp@

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

                                @/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.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/lib -o mainwindow.o ../QtCoCoaMix/mainwindow.cpp
                                /Users/gint_develop/Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/lib ../QtCoCoaMix/mainwindow.h -o moc_mainwindow.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.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/lib -o moc_mainwindow.o moc_mainwindow.cpp
                                /Users/gint_develop/Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/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.2.0/5.2.0/clang_64/mkspecs/macx-clang -I../QtCoCoaMix -I../../Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../Qt5.2.0/5.2.0/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.2.0/5.2.0/clang_64/lib -o moc_cocoawebview.o moc_cocoawebview.cpp
                                /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.2.0/5.2.0/clang_64/lib -framework Cocoa -framework WebKit -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
                                00:17:35: The process "/usr/bin/make" exited normally.
                                00:17:35: Elapsed time: 00:09.@

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

                                  Qt5.1.1 compile output:
                                  @00:23:10: Running steps for project QtCoCoaMix...
                                  00:23:10: Starting: "/Users/gint_develop/Qt5.1.1/5.1.1/clang_64/bin/qmake" /Users/gint_develop/Desktop/QtCoCoaMix/QtCoCoaMix.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug
                                  Project WARNING: No .qmake.cache is present. This significantly slows down qmake with this makespec.
                                  Project WARNING: Call 'cache()' in the top-level project file to rectify this problem.
                                  00:23:11: The process "/Users/gint_develop/Qt5.1.1/5.1.1/clang_64/bin/qmake" exited normally.
                                  00:23:11: Starting: "/usr/bin/make"
                                  /Users/gint_develop/Qt5.1.1/5.1.1/clang_64/bin/uic ../QtCoCoaMix/mainwindow.ui -o ui_mainwindow.h
                                  /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 -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 ../QtCoCoaMix/cocoawebview.mm -o cocoawebview.o
                                  In file included from ../QtCoCoaMix/cocoawebview.mm:1:
                                  In file included from ../QtCoCoaMix/cocoawebview.h:4:
                                  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"

                                   ^
                                  

                                  ../QtCoCoaMix/cocoawebview.mm:15:121: warning: using 'stringWithString:' with a literal is redundant [-Wobjc-redundant-literal-use]
                                  [[static_cast<WebView *> (this->cocoaView()) mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithString:@"http://www.google.com"]]]];@

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

                                    @^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                    2 warnings generated.
                                    /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 main.o ../QtCoCoaMix/main.cpp
                                    In file included from ../QtCoCoaMix/main.cpp:1:
                                    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.
                                    /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 mainwindow.o ../QtCoCoaMix/mainwindow.cpp
                                    In file included from ../QtCoCoaMix/mainwindow.cpp:1:
                                    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/mainwindow.h -o moc_mainwindow.cpp
                                    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -g -gdwarf-2 -isysroot @

                                    1 Reply Last reply
                                    0
                                    • 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

                                          • Login

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