Ask Your Question

msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln fails

asked 2019-10-01 18:44:57 +0000

Kim gravatar image

updated 2019-10-01 22:39:03 +0000

Guy Harris gravatar image

The msbuild fails with the following error:

Qt5Multimedia.lib(Qt5Multimedia.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' [C:\Development\wsbuild32\wireshark.vcxproj]

Qt 5.13.1 (MSVC 2017, 32 bits)

My environment:

VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\
VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\
VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\
VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-01 19:41:26 +0000

grahamb gravatar image

Have you previously attempted to build an x64 version in the same build directory? You can't mix versions in the same build directory.

I would delete the build directory, create a new one, re-run the CMake generation step and build again.

edit flag offensive delete link more


Also note that Wireshark is currently built using QT 5.12.5, but I don't think using 5.13.1 is responsible for this issue.

grahamb gravatar imagegrahamb ( 2019-10-01 19:43:47 +0000 )edit

Previously I had built a 64 bit version. Cleaned out the directories and started over. Successful 32 bit version of Wireshark.

Kim gravatar imageKim ( 2019-10-02 11:19:34 +0000 )edit

Out of interest why are you building and using a 32 bit version?

I'm interested to see if we should continue building the 32 bit version.

grahamb gravatar imagegrahamb ( 2019-10-02 11:46:45 +0000 )edit

Added a plugin to Wireshark. Not everyone has a 64 bit machine. Some clients are using windows 7.

Kim gravatar imageKim ( 2019-10-02 11:56:00 +0000 )edit

Sure, but the dwindling pool of 32 bit users will at some point reduce enough to make the effort to maintain a 32 bit version pointless. Not sure when though.

grahamb gravatar imagegrahamb ( 2019-10-02 12:04:40 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-10-01 18:44:57 +0000

Seen: 37 times

Last updated: Oct 01