[Paraview-developers] How to compile new Property Widgets?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu May 16 13:53:09 EDT 2013


I think you forgot to "moc" the header. Look at
Examples/Plugins/PropertyWidgets/CMakeLists.txt.

Utkarsh

On Thu, May 16, 2013 at 1:11 PM, Joshua Murphy
<Joshua.Murphy at lasp.colorado.edu> wrote:
> Hello,
>
> I am trying to create some new Property Widgets for my filter, but I am
> running into a roadblock on how to actually compile them.
>
> I am attempting to compile just a simple widget that doesn't actually do
> anything, but I am obviously missing a library that needs to be included.  I
> get the following errors when attempting to compile:
>
> Undefined symbols for architecture x86_64:
>
> "pqPropertyWidget::qt_metacall(QMetaObject::Call, int, void**)", referenced
> from:
>
> scInfoProp::qt_metacall(QMetaObject::Call, int, void**) in
> moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::qt_metacast(char const*)", referenced from:
>
> scInfoProp::qt_metacast(char const*) in moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::staticMetaObject", referenced from:
>
> scInfoProp::staticMetaObject in moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::updateDependentDomains()", referenced from:
>
> vtable for scInfoProp in moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::apply()", referenced from:
>
> vtable for scInfoProp in moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::reset()", referenced from:
>
> vtable for scInfoProp in moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::setView(pqView*)", referenced from:
>
> vtable for scInfoProp in moc_scInfoProp.cxx.o
>
> "pqPropertyWidget::pqPropertyWidget(vtkSMProxy*, QWidget*)", referenced
> from:
>
> scInfoProp::scInfoProp(vtkSMProxy*, vtkSMPropertyGroup*, QWidget*) in
> scInfoProp.cpp.o
>
> "pqPropertyWidget::~pqPropertyWidget()", referenced from:
>
> scInfoProp::~scInfoProp() in scInfoProp.cpp.o
>
> "typeinfo for pqPropertyWidget", referenced from:
>
> typeinfo for scInfoProp in moc_scInfoProp.cxx.o
>
> ld: symbol(s) not found for architecture x86_64
>
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> make[2]: *** [libSpaceCraftInfoSMPlugin.dylib] Error 1
>
> make[1]: *** [CMakeFiles/SpaceCraftInfoSMPlugin.dir/all] Error 2
>
> make: *** [all] Error 2
>
> 11:03:03: The process "/usr/bin/make" exited with code 2.
>
>
>
> Could someone let me know what I need to add to my CMakeLists.txt file to
> get this to compile?
>
> Thanks,
> Josh
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>


More information about the Paraview-developers mailing list