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

Benoît Presles benoit.presles at u-bourgogne.fr
Wed Jul 17 10:35:07 CEST 2019


Thanks Thomas for your reply.
Do you know why I get these problems on Linux only?
On macOS and Windows, I have managed to compile clitk/vv with VTK and 
ITK built as static libraries.

Thanks for your help,
Best regards,
Ben


Le 11/07/2019 à 09:01, Thomas BAUDIER a écrit :
> Hello Benoit,
>
> The static compilation with Qt5 is not supported. I used to compile 
> with Qt4 for static version.
> When I tried to do it, I failed to link the Qt5 libraries because the 
> management of the Qt5 modules is totally different between Qt4 and Qt5.
>
> I hope it's not a problem for you
> Regards
> Thomas
>
> On 2019-07-10 22:59, Benoît Presles wrote:
>> 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.
>> _______________________________________________
>> vv mailing list
>> vv at creatis.insa-lyon.fr
>> https://www.creatis.insa-lyon.fr/mailman/listinfo/vv
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> https://www.creatis.insa-lyon.fr/mailman/listinfo/vv



More information about the vv mailing list