This is our old Q&A Site. Please post any new questions and answers at


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 ♦♦
accept rate: 18%

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.

permanent link

answered 26 Aug '14, 08:56

grahamb's gravatar image

grahamb ♦
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) 
CMake Error at cmake/modules/FindCARES.cmake:15 (INCLUDE):
  include could not find load file:

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>


Then (sudoing may be required as well):

git clone
cd wireshark

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

make install
sudo ldconfig
(28 Oct '14, 08:06) Jasper ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 26 Aug '14, 08:34

question was seen: 6,029 times

last updated: 27 Jan '17, 08:47

p​o​w​e​r​e​d by O​S​Q​A