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

I am trying to build a wireshark dev environment and I am having trouble with the msbuild step. I want to build a 32-bit version but I get an error that says

"Qt5Widgets.lib(Qt5Widgets.dll): fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'"

I downloaded the 32 bit version of qt and I set the QT5_BASE_DIR to the appropriate version. also WIRESHARK_TARGET_PLATFORM=win32 and I am using VS2013 x86 command prompt.

I had successfully built a 64 bit wireshark version, but now am having trouble building the 32 bit version.

asked 04 Aug '17, 09:16

allantse's gravatar image

accept rate: 100%

What version of wireshark ate you building? And which version of CMake are you using?

(04 Aug '17, 09:24) Anders ♦

wireshark version 2.2.7 and cmake 3.5.2 win32

(04 Aug '17, 09:30) allantse

You shouldn't have to set WIRESHARK_TARGET_PLATFORM any more. It was necessary when we were still using Nmake, but the target platform should be determined by the VS environment variables and the CMake generator (-G).

(04 Aug '17, 10:03) Gerald Combs ♦♦

ah- I figured it out. I had mistakenly generated the build files earlier while setting the qt5_base_dir to the wrong 64bit version. I had to delete first then regenerate these files with the correct qt5 version.

permanent link

answered 04 Aug '17, 09:37

allantse's gravatar image

accept rate: 100%

Please accept your own answer as the correct one, it may help others.

(04 Aug '17, 09:41) Anders ♦
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: 04 Aug '17, 09:16

question was seen: 1,220 times

last updated: 04 Aug '17, 10:03

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