Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] QT with cmake

From: Dario Lombardo <dario.lombardo.ml@xxxxxxxxx>
Date: Tue, 21 Oct 2014 15:13:01 +0200


On Tue, Oct 21, 2014 at 2:48 PM, Peter Wu <peter@xxxxxxxxxxxxx> wrote:

Have you tried to clear your build dir? The QtGui/QAction file is located in the
qt4 include directory, in qt5 it is located at QtWidgets/QAction.

I've completely deleted the build dir and started over. Same output.

[ 79%] Building CXX object ui/qt/CMakeFiles/qtui.dir/about_dialog.cpp.o
In file included from /home/dario/Projects/wireshark/ui/qt/about_dialog.cpp:25:0:
/home/dario/Projects/wireshark/ui/qt/ui_about_dialog.h:13:25: fatal error: QtGui/QAction: No such file or directory
 #include <QtGui/QAction>
                         ^
compilation terminated.
make[2]: *** [ui/qt/CMakeFiles/qtui.dir/about_dialog.cpp.o] Error 1
make[1]: *** [ui/qt/CMakeFiles/qtui.dir/all] Error 2
make: *** [all] Error 2

The strange thing I noticed is that QtGui/Qaction is not present in any qt5 package (only qt4)

wireshark/build$ sudo apt-file search QAction
libqt4-dev: /usr/include/qt4/QtGui/QAction
libqt4-dev: /usr/include/qt4/QtGui/QActionEvent
libqt4-dev: /usr/include/qt4/QtGui/QActionGroup
qtbase5-dev: /usr/include/qt5/QtGui/QActionEvent
qtbase5-dev: /usr/include/qt5/QtWidgets/QAction
qtbase5-dev: /usr/include/qt5/QtWidgets/QActionGroup