[Interest] qtbrowserplugin

"Alexander Carôt" alexander_carot at gmx.net
Fri Aug 31 15:02:40 CEST 2012


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


Any help appreciated,
thanks

Alex







-------- Original-Nachricht --------
> Datum: Fri, 31 Aug 2012 12:16:43 +0200
> Von: "Alexander Carôt" <alexander_carot at gmx.net>
> An: interest at qt-project.org
> Betreff: Re: [Interest] qtbrowserplugin

> ... sorry, two corrections to my previous post:
> 
> 1.) It is version 2.3 of the qtbrowserplugin
> 2.) on Win I am using the mingw-compiler, on OSX I am using gcc
> 
> Thanks
> 
> Alx
> 
> 
> 
> 
> 
> -------- Original-Nachricht --------
> > Datum: Fri, 31 Aug 2012 11:59:00 +0200
> > Von: "Alexander Carôt" <alexander_carot at gmx.net>
> > An: interest at qt-project.org
> > Betreff: [Interest] qtbrowserplugin
> 
> > Hi all,
> > 
> > I have a qt app, which I want to distribute as a browser plugin. As a
> > first step I loaded down qtbrowserplugin-2.4 and tried to compile the
> > trivial-example. The problem is that on OSX and on Windows I get this
> error message:
> > 
> > In file included from ../../src/qtbrowserplugin.cpp:28:
> > ../../src/qtbrowserplugin_p.h:61: error: ISO C++ forbids declaration of
> > ‘QtNPStream’ with no type
> > ../../src/qtbrowserplugin_p.h:61: error: expected ‘;’ before ‘*’
> > token
> > ../../src/qtbrowserplugin.cpp: In function ‘NPError NPP_New(char*,
> > NPP_t*, uint16, int16, char**, char**, NPSavedData*)’:
> > ../../src/qtbrowserplugin.cpp:923: error: ‘struct QtNPInstance’ has
> no
> > member named ‘pendingStream’
> > ../../src/qtbrowserplugin.cpp: In function ‘NPError
> > NPP_SetWindow(NPP_t*, NPWindow*)’:
> > ../../src/qtbrowserplugin.cpp:1035: error: ‘struct QtNPInstance’ has
> > no member named ‘pendingStream’
> > ../../src/qtbrowserplugin.cpp:1036: error: ‘struct QtNPInstance’ has
> > no member named ‘pendingStream’
> > ../../src/qtbrowserplugin.cpp:1037: error: ‘struct QtNPInstance’ has
> > no member named ‘pendingStream’
> > ../../src/qtbrowserplugin.cpp: In function ‘NPError
> > NPP_DestroyStream(NPP_t*, NPStream*, NPError)’:
> > ../../src/qtbrowserplugin.cpp:1116: error: ‘struct QtNPInstance’ has
> > no member named ‘pendingStream’
> > ../../src/qtbrowserplugin.cpp:1120: error: ‘struct QtNPInstance’ has
> > no member named ‘pendingStream’
> > ../../src/qtbrowserplugin.cpp: At global scope:
> > ../../src/qtbrowserplugin.cpp:282: warning: ‘NPObject*
> > NPAllocate(NPP_t*, NPClass*)’ defined but not used
> > ../../src/qtbrowserplugin.cpp:291: warning: ‘void
> > NPDeallocate(NPObject*)’ defined but not used
> > make[1]: *** [qtbrowserplugin.o] Error 1
> > make: *** [sub-trivial-make_default] Error 2
> > 
> > 
> > Is anyone experienced using qtbrowserplugin ? I saw it was tested with
> > Qt4.4 and I am using 4.8.1 ? 
> > 
> > Any hint appreciated !
> > 
> > Thanks
> > 
> > Alex
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > http://www.carot.de
> > http://www.triologue.de
> > Email : Alexander at Carot.de
> > Tel.: +49 (0)177 5719797
> > 
> > 
> > 
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> 
> -- 
> http://www.carot.de
> http://www.triologue.de
> Email : Alexander at Carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
http://www.carot.de
http://www.triologue.de
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797






More information about the Interest mailing list