On 2016-09-10, Kornel Benko wrote:
> Am Freitag, 9. September 2016 um 22:29:23, schrieb Guenter Milde 
> <mi...@users.sf.net>
>> On 2016-09-09, Scott Kostyshak wrote:


>> >> as of today, I cannot compile master, "make" fails with
>> ...
>> >> GuiView.cpp:(.text+0x1fa85): undefined reference to 
>> >> `QSvgRenderer::~QSvgRenderer()'
>> ...

...

> Adding ${QT_QTSVG_LIBRARY} to target_link_libraries for lyx works here.

Dear Kornel,

this did the trick also here. Could you commit the patch, please?

Günter


> [-- Skipped Type: application/pgp-signature, Filename: signature.asc --]
> [-- Type: text/x-patch, Encoding: 7bit, Filename: src_CMakeLists.txt.patch --]

> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
> index 0c56ce6..b7d1b06 100644
> --- a/src/CMakeLists.txt
> +++ b/src/CMakeLists.txt
> @@ -132,6 +132,9 @@ target_link_libraries(${_lyx}
>       ${LYX_QTMAIN_LIBRARY}
>       ${vld_dll})

> +if(LYX_USE_QT MATCHES "QT4")
> +  target_link_libraries(${_lyx} ${QT_QTSVG_LIBRARY})
> +endif()
>  qt_use_modules(${_lyx} Core Gui)

>  if(QT_USES_X11)

Reply via email to