[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


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242749

            Bug ID: 242749
           Summary: devel/cmake: Qt component Svg headers aren't added to
                    include paths
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: yuri at freebsd.org
             Flags: maintainer-feedback?(kde at FreeBSD.org)
          Assignee: kde at FreeBSD.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list