maintainer-feedback requested: [Bug 242749] devel/cmake: Qt component Svg headers aren't added to include paths

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 20 23:25:27 GMT 2019


Bugzilla Automation <bugzilla at FreeBSD.org> has asked kde at FreeBSD.org for
maintainer-feedback:
Bug 242749: devel/cmake: Qt component Svg headers aren't added to include paths
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242749



--- Description ---
I have
> find_package(Qt5 COMPONENTS Core Gui Widgets Svg REQUIRED)
in CMakeLists.txt

It uses this line to compile:
> /usr/bin/c++	-DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB
-I/home/yuri/nn-insight/nn-insight_autogen/include -isystem
/usr/local/include/qt5 -isystem /usr/local/include/qt5/QtWidgets -isystem
/usr/local/include/qt5/QtGui -isystem /usr/local/include -isystem
/usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang
 -std=c++2a   -fPIC -o CMakeFiles/nn-insight.dir/svg-graphics-generator.cpp.o
-c /home/yuri/nn-insight/svg-graphics-generator.cpp

This include statement
> #include <QSvgGenerator>
fails
> /home/yuri/nn-insight/svg-graphics-generator.cpp:4:10: fatal error:
'QSvgGenerator' file not found
> #include <QSvgGenerator>
	 ^~~~~~~~~~~~~~~
because cmake failed to include /usr/local/include/qt5/QtSvg despite Svg being
in the find_package line.


More information about the kde-freebsd mailing list