On Sun, 30 Jan 2022 20:56:16 +0200 Jukka A. Ukkonen wrote:
> 
> For some reason cmake fails to find packages qwt6-qt5
> and svg2svgt, though, they have both been installed.
> I am not really familiar with cmake. What does it try
> to do?
> On the first run it stops with a complaint like this...
> 
> -- Reading /usr/local/lib/cmake/GeographicLib/geographiclib-config.cmake
> -- GeographicLib configuration, version 1.52
> --   ${GeographicLib_LIBRARIES} set to shared library
> -- Found ZLIB: /usr/lib/libz.so (found version "1.2.11")
> -- Checking for module 'qca2-qt5'
> --   Found qca2-qt5, version 2.3.4
> -- Checking for module 'Qt5Qwt6'
> --   Package 'Qt5Qwt6', required by 'virtual:world', not found

https://github.com/kadas-albireo/kadas-albireo2/blob/8e98fd2578680129697abd3e8fa70b407bdba30a/CMakeLists.txt#L45

unfortunately x11-toolkits/qwt6 does not provide cmake or pkgconfig files, 
therefore you need to pass QWT_INCLUDE_DIRS and QWT_LDFLAGS to cmake in your 
port:
CMAKE_ARGS=     -DQWT_INCLUDE_DIRS=${QT_INCDIR}/qwt6  \
                -DQWT_LDFLAGS=${QT_LIBDIR}/libqwt6.so

Probably the same with svg2svgt, though I don't see it in the portstree.

Max



Reply via email to