This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Building 1.12 from source fails with QT problem on Xubuntu

0

Hi,

does anybody know what kind of QT packages I have to install on Xubuntu 14.04 to compile Wireshark 1.12 from source? ./configure went through okay, but I got a couple of QT related error messages which I was partially able to clear by installing "qt4-qtconfig".

Now the final lines of the "make" output are

Making all in ui/qt
make[2]: Entering directory `/usr/src/wireshark/wireshark-1.12.0/ui/qt'
  CXX      about_dialog.o
In file included from about_dialog.cpp:25:0:
ui_about_dialog.h:13:25: fatal error: QtGui/QAction: No such file or directory
 #include <qtgui qaction="">
                         ^
compilation terminated.
make[2]: *** [about_dialog.o] Error 1
make[2]: Leaving directory `/usr/src/wireshark/wireshark-1.12.0/ui/qt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/wireshark/wireshark-1.12.0'
make: *** [all] Error 2

I have no idea what I need to prepare to allow "make" to do its job :-) Any help appreciated.

asked 26 Aug '14, 08:34

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%


One Answer:

1

Have a look at README.qt in the doc directory, although I think it could do with an update.

It suggests installing the qt-sdk package, and using CMake to build.

answered 26 Aug '14, 08:56

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

thx Graham, forgot to check the readme indeed. Will try to get the packages installed tomorrow when I have a faster line for downloading them.

(26 Aug '14, 12:42) Jasper ♦♦

there was no README.qt in the doc directory of the source package 1.12.0, but even with the online version I got stuck after installing the missing QT packages since cmake doesn't run without errors (the normal "make" fails, too). What I get for cmake is

-- Could NOT find CAP (missing:  CAP_LIBRARY CAP_INCLUDE_DIR) 
CAP NOT FOUND
CMake Error at cmake/modules/FindCARES.cmake:15 (INCLUDE):
  include could not find load file:
FindWSWinLibs

Call Stack (most recent call first): CMakeLists.txt:587 (find_package)

CMake Error at cmake/modules/FindCARES.cmake:16 (FindWSWinLibs): Unknown CMake command "FindWSWinLibs". Call Stack (most recent call first): CMakeLists.txt:587 (find_package)

– Configuring incomplete, errors occurred!

My build skills are quite limited so I have no idea how to fix this. Maybe I should just exclude the QT version from the build process, but I have no clue how to do that, either :D

(27 Aug ‘14, 00:24) Jasper ♦♦

TBH I think trying to build QT using a 1.12 source package isn’t a great idea (i.e. likely to be broken), much better to use a git clone of master if you want QT

To not build QT, you’ll need to pass the appropriate magic into confgure which is out of my area I’m afraid. Usually ./configure –help will give you the config options.

(27 Aug ‘14, 02:45) grahamb ♦

Thanks Graham, didn’t see your new comment until now. Will try to build without QT when I have the chance to try again.

(09 Sep ‘14, 15:44) Jasper ♦♦

For all those who are still looking: I solved my build problem by following a hint from Robert Cragie on the developer mailing list. This is what he said:

sudo apt-get install <tool>

git autoconf automake libtool libtool-bin bison flex qt-sdk qttools5-dev-tools libgtk-3-dev libpcap-dev

Then (sudoing may be required as well):

git clone https://code.wireshark.org/review/wireshark cd wireshark ./autogen.sh ./configure make

If you want to install Wireshark, do this as well:

make install
sudo ldconfig
(28 Oct ‘14, 08:06) Jasper ♦♦