[Paraview-developers] Trying to compile a GUI plugin
Panos Asproulis
panos.asproulis at gmail.com
Thu Aug 21 13:18:23 EDT 2014
That is correct. Thank you!
On 21 Aug 2014, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>I believe you need to add a
>
>INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
>
>in the CMakeLists.txt at the top when moving the plugin to under
>Plugins.
>
>On Mon, Aug 18, 2014 at 12:54 PM, Panos Asproulis
><panos.asproulis at gmail.com> wrote:
>> Hi all,
>>
>> I am trying to create a GUI plugin and for that purpose I am looking
>at the
>> SourceToolbar example in the Examples subdirectory. This compiles
>fine when
>> using the CMake system with the Examples Build option enabled.
>>
>> I then copied the SourceToolbar folder to the Plugins folder of
>ParaView and
>> added the following plugin.cmake file:
>>
>> pv_plugin(SourceToolbar
>> DESCRIPTION "Testing plugin"
>> DEFAULT_ENABLED)
>>
>> I did the CMake configuration step, which reported that it was also
>going to
>> build the "SourceToolbar" plugin:
>>
>> Plugin: SourceToolbar - Testing plugin : Enabled
>>
>>
>> I then generated the Makefiles and started the build. I get the
>following
>> error message:
>>
>>
>/home/panos/Development/ParaView/ParaView-v4.1.0-bin/Plugins/SourceToolbar/SourceToolbarActionsImplementation.h:46:
>> Error: Undefined interface
>> make[2]: ***
>> [Plugins/SourceToolbar/moc_SourceToolbarActionsImplementation.cxx]
>Error 1
>>
>> Why would the same code compiles correctly when in the Examples
>directory
>> and fails when in the Plugins directory?
>>
>>
>> _______________________________________________
>> Paraview-developers mailing list
>> Paraview-developers at paraview.org
>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>
--
Dr. Panos Asproulis,
panos.asproulis at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140821/209e46fd/attachment.html>
More information about the Paraview-developers
mailing list