First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

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

  • retag add tags

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:

QT5_BASE_DIR=C:\Qt\5.13.1\msvc2017
WIRESHARK_BASE_DIR=C:\Development
WIRESHARK_LIB_DIR=C:\Development\wireshark-win32-libs
WIRESHARK_TARGET_PLATFORM=Win32
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\
VCToolsVersion=14.16.27023
VisualStudioVersion=15.0
VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x86
VSCMD_ARG_TGT_ARCH=x86
VSCMD_VER=15.9.15
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
Kim's avatar
1
Kim
asked 2019-10-01 18:44:57 +0000
Guy Harris's avatar
19.9k
Guy Harris
updated 2019-10-01 22:39:03 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

grahamb's avatar
23.8k
grahamb
answered 2019-10-01 19:41:26 +0000
edit flag offensive 0 remove flag delete link

Comments

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's avatar grahamb (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's avatar Kim (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's avatar grahamb (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's avatar Kim (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's avatar grahamb (2019-10-02 12:04:40 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer