Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2022 23:20:24 +0300
From:      Max Brazhnikov <makc@freebsd.org>
To:        freebsd-ports@freebsd.org, ports@freebsd.org
Cc:        "Jukka A. Ukkonen" <jau789@gmail.com>
Subject:   Re: Problem with cmake while testing kadas albireo2 on 12.3-stable
Message-ID:  <5649870.Zv9zXsTiuT@mercury>
In-Reply-To: <5d040c42-498d-78bc-7856-72b6c2371c8d@gmail.com>
References:  <5d040c42-498d-78bc-7856-72b6c2371c8d@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5649870.Zv9zXsTiuT>