[Qt-interest] Qt application as browser plugin ?

Martin Schröer gordon at gordonswelt.de
Wed Mar 10 20:42:12 CET 2010


Frank Hemer schrieb:
> On Wednesday 10 March 2010 19:24:31 Martin Schröer wrote:
>   
>> Frank Hemer schrieb:
>>     
>>> On Wednesday 10 March 2010 14:35:42 Francesco Tamagni wrote:
>>>       
>>>> On Wed, Mar 10, 2010 at 1:48 PM, Frank Hemer <frank at hemer.org> wrote:
>>>>         
>>>>>> the compiled dll won't run in the browser ( i'm using Firefox 3.5.8 ).
>>>>>>             
>>>> is qtbrowserplugin stuff linked statically in your application?
>>>>         
>>> I tried with the supplied demos - they are not statically linked.
>>>
>>>       
>>>> did you try to drop your app dll into dependencywalker?
>>>> http://www.dependencywalker.com/
>>>>         
>>> Yes - no problem there.
>>> Have you tried a complete recompile (distclean, qmake, make) to ensure
>>> there are no dangling references - and the app libs/dlls are installed
>>> where the plugin can load them?
>>>
>>> Frank
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>       
>> Also checked twice using depwalker - the app is pointing at the right
>> dlls - version 4.6.2 dir for
>> Qt, version 10 for MinGW -- as delivered in the Nokia package for Qt 4.6.2.
>>
>> Still it's throwing that
>> "procedure entry point _Z14qWinMsgHandler9QtMsgTypePKc could not be
>> located in dll QtCore4.dll"
>> error at me.
>>     
>
> Hmm ... a quick search locates sth. like this in:
>
> src/activeqt/control/qaxserverbase.cpp
> src/corelib/global/qglobal.cpp
> src/corelib/kernel/qcoreapplication_win.cpp
>
> Are you sure its not a missing implementation in your app?
> I faced sth. like this recently, think it was a header file with a static void 
> dosth () method in it but the impl. was missing.
> Linked fine but failed at runtime.
>
> Check if you use QCoreApplication::installMsgHandler ... maybe thats the 
> cause?
>
> Frank
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   
There ist indeed such call in file qtbrowserplugin_win.cpp


extern "C" void qtns_initialize(QtNPInstance*)

{

if (!qApp) {

qInstallMsgHandler(qWinMsgHandler);


What to do about it ?

Martin





More information about the Qt-interest-old mailing list