[Paraview] plugins with 5.2
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Dec 22 15:17:27 EST 2016
Burlen,
See Qt dependencies changes documented here:
http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/MajorAPIChanges.html
include(ParaViewQt) # generally not needed, since auto-included
pv_find_package_qt(qt_targets
QT4_COMPONENTS QtGui
QT5_COMPONENTS Widgets)
pv_qt_wrap_cpp(moc_files ${headers})
pv_qt_wrap_ui(ui_files ${uis})
...
target_link_libraries(${target} LINK_PRIVATE ${qt_targets})
Utkarsh
On Wed, Dec 21, 2016 at 1:25 PM, Burlen Loring <burlen.loring at gmail.com>
wrote:
> After upgrading to 5.2 my plugin is not compiling. When I configure the
> plugin I see a few pages of the following:
>
> CMake Warning (dev) at io/CMakeLists.txt:54 (add_library):
> Policy CMP0028 is not set: Double colon in target name means ALIAS or
> IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
> Use the cmake_policy command to set the policy and suppress this warning.
>
> Target "teca_io" links to target "Qt4::QtCore" but the target was not
> found. Perhaps a find_package() call is missing for an IMPORTED target,
> or
> an ALIAS target is missing?
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> then linker errors
>
> [ 32%] Linking CXX shared library ../lib/libteca_io.so
> /bin/ld: cannot find -lQt4::QtCore
> /bin/ld: cannot find -lQt4::QtGui
> collect2: error: ld returned 1 exit status
> io/CMakeFiles/teca_io.dir/build.make:402: recipe for target
> 'lib/libteca_io.so' failed
> make[2]: *** [lib/libteca_io.so] Error 1
> CMakeFiles/Makefile2:196: recipe for target 'io/CMakeFiles/teca_io.dir/all'
> failed
> make[1]: *** [io/CMakeFiles/teca_io.dir/all] Error 2
> Makefile:127: recipe for target 'all' failed
> make: *** [all] Error 2
>
> It's not a library so I set the policy to new, and the cmake configure
> errors out. Any idea what's missing?
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20161222/3fee006d/attachment.html>
More information about the ParaView
mailing list