Yepp -- I just figure that. I need to configure it for Carbon and then I expect it to work.
Will get back once this is done. Best Alex -------- Original-Nachricht -------- > Datum: Fri, 31 Aug 2012 17:31:05 +0400 > Von: Konstantin Tokarev <[email protected]> > An: "Alexander Carôt" <[email protected]> > CC: "[email protected]" <[email protected]> > Betreff: Re: [Interest] qtbrowserplugin > > > 31.08.2012, 17:02, "Alexander Carôt" <[email protected]>: > > Update: > > > > I figured a problem in qtbrowserplugin_p.h > > > > #ifdef Q_WS_X11 > > # include <X11/Xlib.h> > > class QtNPStream; > > class QtNPBindable; > > #endif > > > > must be changed to > > > > #ifdef Q_WS_X11 > > # include <X11/Xlib.h> > > #endif > > > > class QtNPStream; > > class QtNPBindable; > > > > After this edit it does compile on Windows but on Mac I get another > error: > > > > In file included from ../../src/qtbrowserplugin_mac.cpp:38: > > ../../src/qtbrowserplugin.h: In member function ‘QStringList > QtNPClass<T>::mimeTypes() const’: > > ../../src/qtbrowserplugin.h:114: error: invalid use of incomplete type > ‘struct QMetaClassInfo’ > > > /Users/soulalex/QtSDK2/Desktop/Qt/4.8.1/gcc/include/QtCore/qobjectdefs.h:253: > error: forward declaration of ‘struct QMetaClassInfo’ > > ../../src/qtbrowserplugin_mac.cpp: In constructor > ‘QMacBrowserRoot::QMacBrowserRoot(OpaqueControlRef*)’: > > ../../src/qtbrowserplugin_mac.cpp:56: error: ‘HIViewGetWindow’ was > not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:64: error: ‘GetWindowProperty’ was > not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:66: error: ‘RemoveWindowProperty’ > was not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:75: error: ‘SetWindowProperty’ was > not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp: In function ‘bool > qtns_event(QtNPInstance*, NPEvent*)’: > > ../../src/qtbrowserplugin_mac.cpp:258: error: ‘GetMouse’ was not > declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:259: error: ‘LocalToGlobal’ was > not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:264: error: ‘FindWindow’ was not > declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:266: error: ‘GetWindowFromPort’ > was not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:339: error: ‘FindWindow’ was not > declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:366: error: ‘GetWindowFromPort’ > was not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp: In function ‘void* > MachOFunctionPointerForCFMFunctionPointer(void*)’: > > ../../src/qtbrowserplugin_mac.cpp:443: error: cast from ‘void*’ to > ‘UInt32’ loses precision > > ../../src/qtbrowserplugin_mac.cpp:444: error: cast from ‘void*’ to > ‘UInt32’ loses precision > > ../../src/qtbrowserplugin_mac.cpp:449: error: ‘MakeDataExecutable’ > was not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp: In function ‘void > qtns_embed(QtNPInstance*)’: > > ../../src/qtbrowserplugin_mac.cpp:486: error: ‘GetWindowFromPort’ > was not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:489: error: ‘GetRootControl’ was > not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:491: error: ‘HIViewGetRoot’ was > not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp: In function ‘void > qtns_setGeometry(QtNPInstance*, const QRect&, const QRect&)’: > > ../../src/qtbrowserplugin_mac.cpp:504: error: ‘GetWindowFromPort’ > was not declared in this scope > > ../../src/qtbrowserplugin_mac.cpp:506: error: ‘GetWindowBounds’ was > not declared in this scope > > Seems like it uses Carbon API, and Qt was build for Cocoa. > > -- > Regards, > Konstantin -- http://www.carot.de http://www.triologue.de Email : [email protected] Tel.: +49 (0)177 5719797 _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
