Yoshino
(琛)
March 2, 2020, 3:06am
1
While customizing my simplified PropertiesPanel by copy-paste code from pqPropertiesPanel.h|cxx , Qt Creator reported that it could not find several header files meant to be included:
I have built ParaView from source and set the path correctly in
CMakelists.txt .
mwestphal
(Mathieu Westphal (Kitware))
March 2, 2020, 3:10am
2
unrelated to ParaView. You will have to show us your CMakeLists.txt
In any case, creating another pqPropertiesPanel in your application is not recommended.
Yoshino
(琛)
March 2, 2020, 4:08am
3
Thanks for advice. Here is related part of my CMakelist.txt
My intention is to simplify its GUI components.
mwestphal
(Mathieu Westphal (Kitware))
March 2, 2020, 4:16am
4
Which version of ParaView ?
Yoshino
(琛)
March 2, 2020, 4:22am
6
ParaView-v5.7.1. Downloaded from ParaView-v5.7.0.zip
ben.boeckel
(Ben Boeckel (Kitware))
March 21, 2020, 1:47am
7
You need to add target_link_libraries(OVDemo PRIVATE ParaView::ServerManagerDefault ParaView::ServerManagerRendering)
.
Yoshino
(琛)
March 23, 2020, 12:59pm
8
Thanks for reply. But why should I add this command since all the files should be included in ParaView package?
ben.boeckel
(Ben Boeckel (Kitware))
March 23, 2020, 1:22pm
9
paraview_add_client
only makes the generated executable link to the modules it needs for the code it generates. Any code you write may need more libraries to link against.
Yoshino
(琛)
March 23, 2020, 1:27pm
10
Thanks a lot, then I’m supposed to add my own libraries for any customization code I write. Got it!