[Vv] compilation error on linux with VTK-7.1.1 built static

Benoît Presles benoit.presles at u-bourgogne.fr
Wed Jul 10 22:59:24 CEST 2019


Dear Thomas,

I am trying to compile clitk on Linux with VTK-7.1.1, ITK-4.13.2 and 
Qt5. VTK-7.1.1 and ITK-4.13.2 have been built as static libraries. Qt5 
has been installed via apt-get.

First, when I configure the project, I get this warning: CMake Warning 
(dev) at /usr/lib/.../Qt5CoreMacros.cmake:224 (configure_file):
configure_file called with unknown argument(s):
COPY_ONLY
Call Stack (most recent call first):
vv/CMakeLists.txt:189 (Qt5_add_resources)

Then, when I generate the project I get these warnings:
CMake Warning (dev) at vv/CMakeLists.txt:388 (add_library):
Policy CMP0028 is not set: Double colon in target name means ALIAS or 
IMPORTED target, etc.
Target "vvLib" links to target "Qt5::X11Extras" but the target was not 
found, etc.

At last, when I compile the project, I have this error:
Linking CXX executable ../bon/vv
/usr/bin/ld: cannot find -lQt5::X11Extras

Thanks for your help,
Best regards,
Ben


PS: when I compile VTK-7.1.1 as a dynamic library, I do not have these 
problems.


More information about the vv mailing list