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

Hi all, I'm trying to build Wireshark on Windows Enviroment. I have already finished the Wireshark Windows version by using nmake and now I'm going to build Linux version. I have some questions to ask:

  1. Can I build the Wireshark for Linux version on Windows OS? because I don't have server installed Linux right now and one more reason is that my PC already had installed build environment which is quite complicated to prepare.

  2. On Windows, if I install Ubuntu to run those commands below, is it possible to have the build for Linux version?

alt text

So, experts, please help if you have any idea or experience on that? Thank you so much.

asked 11 Sep '13, 02:54

hoangsonk49's gravatar image

accept rate: 28%

edited 18 Sep '13, 02:55

@hoangsonk49 There's no need to edit your question title to add "[SOLVED]". Accepting the appropriate answer by clicking the checkmark does that and indicates to other users that there is a good answer to the question.

(18 Sep '13, 03:42) grahamb ♦

@Grahamb, thanks for your suggestion, I will do it that way :-)

(18 Sep '13, 03:54) hoangsonk49

You can't build a version for Linux on a Windows host OS. None of the correct toolchain, headers and libraries are available. You can install a version of Linux in a VM on your windows host and use that to build the Linux version, but it will use a separate copy of the sources and be built as per the developers guide for a Linux host.

permanent link

answered 11 Sep '13, 03:56

grahamb's gravatar image

grahamb ♦
accept rate: 22%

Hi grahamb, so does this mean it is impossible to build version for Linux with Ubuntu installed on my Destop? I must install on a server or in a VM, am I right?

(11 Sep '13, 04:11) hoangsonk49

I'm not sure i understand "Linux installed on my desktop" If you have Linux installed then in effect it's a Linux dektop and you can build Wireshark following the instructions for a linux system I guess

(11 Sep '13, 04:14) Anders ♦


I didn't mention installing Linux as a boot option as I'd thought that sort of thing had died out.

Did you install Ubuntu using the Windows installer? If so you now have a dual boot computer with both Windows and Ubuntu. Just boot in to Ubuntu and follow the dev guide for building on Linux.

(11 Sep '13, 04:23) grahamb ♦

Yes, I 've just installed Ubuntu as a boot option and I'm going to try. Hope it could be done in this way. Thank you so much, grahamb:)

(11 Sep '13, 05:30) hoangsonk49
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: 11 Sep '13, 02:54

question was seen: 2,140 times

last updated: 18 Sep '13, 03:56

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