[Paraview] NULL qApp in Paraview Plugin
clinton at elemtech.com
clinton at elemtech.com
Thu Jan 17 14:03:14 EST 2008
Did you build your plugin against the same Qt version and same ParaView code
that the ParaView releases were made from?
Its possible to have a NULL qApp if a different version of Qt is used when
building the plugin.
I'd probably check in the debugger (even in release mode) what libraries are
actually being used, after your plugin loads.
Clint
On Thursday 17 January 2008 11:04:14 am Thomas D. Uram wrote:
> I've written a plugin for Paraview, following the directions at
>
> http://www.vtk.org/Wiki/Plugin_HowTo
>
> and it works fine with the Paraview executable I've built. I'd like for
> it to also work with the official Paraview releases, but in that case
> Paraview crashes trying to load the plugin.
>
> That's because the plugin code makes a call against qApp (as does the
> Paraview plugin example), but qApp is NULL. So my questions are:
>
> - Is there a related build dependency that I need to consider? (I've
> already ensured that my plugin uses CMAKE_BUILD_TYPE=='release')
>
> - Should I be able to successfully build plugins for loading by the
> release code? (I expect that's the long term plan, but wonder if it is
> not yet possible.)
>
>
> Any help would be appreciated.
>
> Thanks,
> Tom
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list