Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2019 23:25:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 242749] devel/cmake: Qt component Svg headers aren't added to include paths
Message-ID:  <bug-242749-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242749

            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@FreeBSD.org
          Reporter: yuri@freebsd.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)
          Assignee: kde@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/inclu=
de/qt5 -isystem /usr/local/include/qt5/QtWidgets -isystem /usr/local/includ=
e/qt5/QtGui -isystem /usr/local/include -isystem /usr/local/include/qt5/QtC=
ore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang  -std=3Dc++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: 'QSvg=
Generator' file not found
> #include <QSvgGenerator>
         ^~~~~~~~~~~~~~~
because cmake failed to include /usr/local/include/qt5/QtSvg despite Svg be=
ing
in the find_package line.

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



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