This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Can’t get cmake to install correctly for wireshark 1.12.8 build

0

I'm trying to build wireshark on 1.12.8. At the part where I generate the sources by running: cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 12" ..\wireshark

I get the following error output below. As well as getting a popup informing me "The program can't start because MSVCR120d.dll is missing from your computer. Try reinstalling to fix this problem. "

The thing is, this is definitely installed under the following directories.
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\Debug_NonRedist\x86\Microsoft.VC120.DebugCRT C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\Debug_NonRedist\x64\Microsoft.VC120.DebugCRT C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\Debug_NonRedist\arm\Microsoft.VC120.DebugCRT

My guess is that I don't have an environment variable setup. But I have the target platform setup from the guide as well as some other things suggested.

I'm kind of at a loss for what to do. Any suggestions are appreciated.

=========================================

Performing C SOURCE FILE Test FVHIDDEN failed with the following output: Change Dir: C:/Development/wsbuild32/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTC_65649.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0" Microsoft (R) Build Engine version 12.0.31101.0

[Microsoft .NET Framework, version 4.0.30319.42000]

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/24/2015 12:40:57 PM.

Project "C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_65649.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_65649.dir\Debug\".

Creating directory "C:\Development\wsbuild32\CMakeFiles\CMakeTmp\Debug\".

Creating directory "cmTC_65649.dir\Debug\cmTC_65649.tlog\".

InitializeBuildStatus:

Creating "cmTC_65649.dir\Debug\cmTC_65649.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /Zi /W3 /WX- /MP /Od /Ob0 /Oy- /D WINPCAP_VERSION=unknown /D WIN32_LEAN_AND_MEAN /D MSC_VER_REQUIRED=1800 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D NOMINMAX /D _BIND_TO_CURRENT_CRT_VERSION=1 /D WIN32 /D _WINDOWS /D FVHIDDEN /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_65649.dir\Debug\" /Fd"cmTC_65649.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue /w34295 -fvisibility=hidden C:\Development\wsbuild32\CMakeFiles\CMakeTmp\src.c

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /MP /Od /Ob0 /Oy- /D WINPCAP_VERSION=unknown /D WIN32_LEAN_AND_MEAN /D MSC_VER_REQUIRED=1800 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D NOMINMAX /D _BIND_TO_CURRENT_CRT_VERSION=1 /D WIN32 /D _WINDOWS /D FVHIDDEN /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_65649.dir\Debug\" /Fd"cmTC_65649.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue /w34295 -fvisibility=hidden C:\Development\wsbuild32\CMakeFiles\CMakeTmp\src.c

cl : Command line warning D9002: ignoring unknown option '-fvisibility=hidden' [C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_65649.vcxproj]

src.c

Link:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Development\wsbuild32\CMakeFiles\CMakeTmp\Debug\cmTC_65649.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Development/wsbuild32/CMakeFiles/CMakeTmp/Debug/cmTC_65649.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Development/wsbuild32/CMakeFiles/CMakeTmp/Debug/cmTC_65649.lib" /MACHINE:X86 /SAFESEH /machine:X86 /debug cmTC_65649.dir\Debug\src.obj

cmTC_65649.vcxproj -> C:\Development\wsbuild32\CMakeFiles\CMakeTmp\Debug\cmTC_65649.exe

FinalizeBuildStatus:

Deleting file "cmTC_65649.dir\Debug\cmTC_65649.tlog\unsuccessfulbuild".

Touching "cmTC_65649.dir\Debug\cmTC_65649.tlog\cmTC_65649.lastbuildstate".

Done Building Project "C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_65649.vcxproj" (default targets).

Build succeeded.

"C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_65649.vcxproj" (default target) (1) ->

(ClCompile target) ->

cl : Command line warning D9002: ignoring unknown option '-fvisibility=hidden' [C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_65649.vcxproj]

1 Warning(s)

0 Error(s)

Time Elapsed 00:00:01.04

Source file was: int main(void) { return 0; } Performing C SOURCE FILE Test WS_LD_FLAG_VALID0 failed with the following output: Change Dir: C:/Development/wsbuild32/CMakeFiles/CMakeTmp

Run Build Command:“C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe” “cmTC_52b69.vcxproj” “/p:Configuration=Debug” “/p:VisualStudioVersion=12.0” Microsoft (R) Build Engine version 12.0.31101.0

[Microsoft .NET Framework, version 4.0.30319.42000]

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/24/2015 12:40:59 PM.

Project “C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_52b69.vcxproj” on node 1 (default targets).

PrepareForBuild:

Creating directory “cmTC_52b69.dir\Debug".

Creating directory “C:\Development\wsbuild32\CMakeFiles\CMakeTmp\Debug".

Creating directory “cmTC_52b69.dir\Debug\cmTC_52b69.tlog".

InitializeBuildStatus:

Creating “cmTC_52b69.dir\Debug\cmTC_52b69.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /Zi /W3 /WX- /MP /Od /Ob0 /Oy- /D WINPCAP_VERSION=unknown /D WIN32_LEAN_AND_MEAN /D MSC_VER_REQUIRED=1800 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D NOMINMAX /D _BIND_TO_CURRENT_CRT_VERSION=1 /D WIN32 /D _WINDOWS /D WS_LD_FLAG_VALID0 /D _DEBUG /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_52b69.dir\Debug" /Fd"cmTC_52b69.dir\Debug\vc120.pdb” /Gd /TC /analyze- /errorReport:queue /w34295 /LARGEADDRESSAWARE C:\Development\wsbuild32\CMakeFiles\CMakeTmp\src.c

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /MP /Od /Ob0 /Oy- /D WINPCAP_VERSION=unknown /D WIN32_LEAN_AND_MEAN /D MSC_VER_REQUIRED=1800 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D NOMINMAX /D _BIND_TO_CURRENT_CRT_VERSION=1 /D WIN32 /D _WINDOWS /D WS_LD_FLAG_VALID0 /D _DEBUG /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_52b69.dir\Debug" /Fd"cmTC_52b69.dir\Debug\vc120.pdb” /Gd /TC /analyze- /errorReport:queue /w34295 /LARGEADDRESSAWARE C:\Development\wsbuild32\CMakeFiles\CMakeTmp\src.c

cl : Command line warning D9002: ignoring unknown option ‘/LARGEADDRESSAWARE’ [C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_52b69.vcxproj]

src.c

Link:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:“C:\Development\wsbuild32\CMakeFiles\CMakeTmp\Debug\cmTC_52b69.exe” /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /manifest:embed /DEBUG /PDB:“C:/Development/wsbuild32/CMakeFiles/CMakeTmp/Debug/cmTC_52b69.pdb” /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:“C:/Development/wsbuild32/CMakeFiles/CMakeTmp/Debug/cmTC_52b69.lib” /MACHINE:X86 /SAFESEH /machine:X86 /debug cmTC_52b69.dir\Debug\src.obj

cmTC_52b69.vcxproj -> C:\Development\wsbuild32\CMakeFiles\CMakeTmp\Debug\cmTC_52b69.exe

FinalizeBuildStatus:

Deleting file “cmTC_52b69.dir\Debug\cmTC_52b69.tlog\unsuccessfulbuild”.

Touching “cmTC_52b69.dir\Debug\cmTC_52b69.tlog\cmTC_52b69.lastbuildstate”.

Done Building Project “C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_52b69.vcxproj” (default targets).

Build succeeded.

“C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_52b69.vcxproj” (default target) (1) ->

(ClCompile target) ->

cl : Command line warning D9002: ignoring unknown option ‘/LARGEADDRESSAWARE’ [C:\Development\wsbuild32\CMakeFiles\CMakeTmp\cmTC_52b69.vcxproj]

1 Warning(s)

0 Error(s)

Time Elapsed 00:00:01.01

Return value: FAILED_TO_RUN Source file was: int main() { return 0;}

asked 24 Dec ‘15, 13:16

tlann's gravatar image

tlann
76121419
accept rate: 100%


One Answer:

0

For Wireshark 1.12.x and earlier you should use the nmake in-tree build as CMake isn't supported.

Unfortunately it seems that the Developers Guide for that (or any previous) version isn't available on-line. It appears you have to build the Developers Guide to read it, or possibly use a (docbook) editor to read the developers guide sources.

answered 24 Dec '15, 13:47

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%