Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-187

qtbrowserplugin complie error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • No Version
    • Other
    • None
    • mac10.10 x86_64 qt5.3.2

    Description

      when i complie qtbrowserplugin demo,occur same errors
      such as :
      WindowRef window = HIViewGetWindow(root);
      ^
      ../../src/qtbrowserplugin_mac.mm:83:15: error: use of undeclared identifier 'GetWindowProperty'
      err = GetWindowProperty(window,
      ^
      ../../src/qtbrowserplugin_mac.mm:90:13: error: use of undeclared identifier 'RemoveWindowProperty'
      RemoveWindowProperty(window, kWidgetCreatorQt, kWidgetPropertyQWidget);
      ^
      ../../src/qtbrowserplugin_mac.mm:95:15: error: use of undeclared identifier 'SetWindowProperty'
      err = SetWindowProperty(window,
      ^
      ../../src/qtbrowserplugin_mac.mm:274:51: error: use of undeclared identifier 'adjustCursorEvent'
      if(event->what == nullEvent || event->what == adjustCursorEvent) {
      ^
      ../../src/qtbrowserplugin_mac.mm:282:9: error: use of undeclared identifier 'GetMouse'
      GetMouse(&currentPosition);
      ^
      ../../src/qtbrowserplugin_mac.mm:283:9: error: use of undeclared identifier 'LocalToGlobal'
      LocalToGlobal(&currentPosition);
      ^
      ../../src/qtbrowserplugin_mac.mm:288:13: error: use of undeclared identifier 'FindWindow'
      FindWindow(currentPosition, &wp);
      ^
      ../../src/qtbrowserplugin_mac.mm:290:22: error: use of undeclared identifier 'GetWindowFromPort'
      if(wp == GetWindowFromPort((CGrafPtr)This->window->port))
      ^
      ../../src/qtbrowserplugin_mac.mm:301:63: warning: 'Button' is deprecated: first deprecated in OS X 10.6 [-Wdeprecated-declarations]
      QMouseEvent qme(QEvent::MouseMove, plocal, p, Button() ? Qt::LeftButton : Qt::NoButton,
      ^
      /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h:402:1: note: 'Button' has been explicitly marked deprecated here
      Button(void) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
      ^
      ../../src/qtbrowserplugin_mac.mm:363:13: error: use of undeclared identifier 'FindWindow'
      FindWindow(event->where, &wp);
      ^
      ../../src/qtbrowserplugin_mac.mm:390:31: error: use of undeclared identifier 'GetWindowFromPort'
      else if(wp == GetWindowFromPort((CGrafPtr)This->window->port))
      ^
      ../../src/qtbrowserplugin_mac.mm:510:27: error: use of undeclared identifier 'GetWindowFromPort'
      WindowPtr windowptr = GetWindowFromPort((CGrafPtr)This->window->port);
      ^
      ../../src/qtbrowserplugin_mac.mm:513:11: error: use of undeclared identifier 'GetRootControl'
      err = GetRootControl(windowptr,&root);
      ^
      ../../src/qtbrowserplugin_mac.mm:515:16: error: use of undeclared identifier 'HIViewGetRoot'
      root = HIViewGetRoot(windowptr);
      ^
      ../../src/qtbrowserplugin_mac.mm:528:27: error: use of undeclared identifier 'GetWindowFromPort'
      WindowPtr windowptr = GetWindowFromPort((CGrafPtr)This->window->port);
      ^
      ../../src/qtbrowserplugin_mac.mm:530:5: error: use of undeclared identifier 'GetWindowBounds'
      GetWindowBounds(windowptr, kWindowContentRgn, &content_r);
      ^
      ../../src/qtbrowserplugin_mac.mm:532:5: error: use of undeclared identifier 'GetWindowBounds'
      GetWindowBounds(windowptr, kWindowStructureRgn, &structure_r);
      ^
      ../../src/qtbrowserplugin_mac.mm:555:16: error: first parameter of 'main' (argument count) must be of type 'int'
      extern "C" int main(NPNetscapeFuncs *npn_funcs, NPPluginFuncs *np_funcs, NPP_ShutdownUPP *shutdown)
      ^
      ../../src/qtbrowserplugin_mac.mm:555:16: error: second parameter of 'main' (argument array) must be of type 'char **'
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      2 warnings and 20 errors generated.
      make: *** [qtbrowserplugin_mac.o] Error 1
      17:24:01: 进程"/usr/bin/make"退出,退出代码 2 。
      Error while building/deploying project grapher (kit: Desktop Qt 5.3 clang 64bit)
      When executing step "Make"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sena senrobin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes