I thought it was completed, but the following error occurs when building from VS2019.
Severity Level Code Description Project File Line Suppression State
error MSB3073 command "setlocal
set PATH=C:/Qt/6.2.4/msvc2019_64/bin;%PATH%
if %errorlevel% neq 0 goto :cmEnd
C:\Qt\6.2.4\msvc2019_64\bin\windeployqt.exe --no-compiler-runtime --verbose 0 --pdb C:/Development/wsbuild64/run/RelWithDebInfo/Wireshark.exe
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cm Done
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1. copy_qt_dlls C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 155
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. ethercat C:\Development\wsbuild64\plugins\epan\ethercat\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. irda C:\Development\wsbuild64\plugins\epan\irda\LINK 1
Severity Level Code Description Project File Line Suppression State
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. opcua C:\Development\wsbuild64\plugins\epan\opcua\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. mate C:\Development\wsbuild64\plugins\epan\mate\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. gryphon C:\Development\wsbuild64\plugins\epan\gryphon\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. stats_tree C:\Development\wsbuild64\plugins\epan\stats_tree\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. transum C:\Development\wsbuild64\plugins\epan\transum\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. unistim C:\Development\wsbuild64\plugins\epan\unistim\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. wimaxmacphy C:\Development\wsbuild64\plugins\epan\wimaxmacphy\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. wimaxasncp C:\Development\wsbuild64\plugins\epan\wimaxasncp\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. wimax C:\Development\wsbuild64\plugins\epan\wimax\LINK 1
Error LNK1181 Cannot open input file '......\run\RelWithDebInfo\wireshark.lib'. profinet C:\Development\wsbuild64\plugins\epan\profinet\LINK 1
Error LNK1181 Cannot open input file 'run\RelWithDebInfo\wireshark.lib'. rawshark C:\Development\wsbuild64\LINK 1
Error LNK1181 Cannot open input file 'run\RelWithDebInfo\wireshark.lib'. sharkd C:\Development\wsbuild64\LINK 1
Error LNK1181 Cannot open input file 'run\RelWithDebInfo\wireshark.lib'. tshark C:\Development\wsbuild64\LINK 1
Error LNK1181 Cannot open input file 'run\RelWithDebInfo\wireshark.lib'. text2pcap C:\Development\wsbuild64\LINK 1
Error LNK1181 Cannot open input file 'run\RelWithDebInfo\wireshark.lib'. dftest C:\Development\wsbuild64\LINK 1
Error LNK1181 Cannot open input file 'run\RelWithDebInfo\wireshark.lib'. wireshark C:\Development\wsbuild64\LINK 1
I selected "Desktop development with C++" in the installer and reinstalled it, but I can't solve it.
Setting the following environment variables solved it.
VS160COMNTOOLS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools"
But I am getting the first error.
I want to resolve this error.
All individual components named "Libs for Specter" are already installed.
The full text of the error message is below.
Performing C SOURCE FILE Test C_Qspectre_VALID failed with the following output:
Change Dir: C:/Development/wsbuild64/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_0715b.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && .NET Framework 向け Microsoft (R) Build Engine バージョン 16.11.2+f32259642
Copyright (C) Microsoft Corporation.All rights reserved.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(486,5): error MSB8040: Spectre mitigation library is required for this project. For ...(more)
I solved it by installing "MSVC v142~Libs for Specter".
But I got a new error.
If it's better to ask the question in another thread, please let me know.
For the time being, I will continue as is.
Please help me to resolve this error.
The error message is below.
None of the files existed in CMakeTmp.
==================================================
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: C:/Development/wsbuild64/CMakeFiles/CMakeTmp
(omission)
cl /c /Zi /W3 /WX- /diagnostics:caret /MP /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=pthread_create /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /guard:cf /fp:precise /Qspectre /Zc:wchar_t /Zc:forScope /Zc:inline /std:c11 /Fo"cmTC_14dfa.dir\Debug\" /Fd"cmTC_14dfa.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /wd4200 /wd5105 /errorReport:queue /Zo /utf-8 /w34295 /w34100 /w34189 "C:\Program Files\CMake\share\cmake-3.24\Modules\CheckFunctionExists.c ...(more)
Try removing the wsbuild64 directory, re-creating it, and running CMake again in that directory.
If that doesn't work, try to attach all the output from CMake here.
The command prompt showed the following error message:
Changing to "WIRESHARK_QT6_PREFIX_PATH=C:\Qt\6.4.0" worked for me.
command prompt=========================================
CMake Error at CMakeLists.txt:1236 (find_package):
By not providing "FindQt6Core5Compat.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt6Core5Compat", but CMake did not find one.
Could not find a package configuration file provided by "Qt6Core5Compat"
=========================================
But I got the below error.
command prompt=========================================
CMake Warning at CMakeLists.txt:594 (message): Windows SDK 10.0.19041.0 doesn't support C11. Please make sure you're using 10.0.20348.0 or later.
=========================================
When I installed the Windows SDK 10.0.20348.0 and re-executed it, the following error occurred.
As you can see, it's an error with the same issue number as the first error.
I don't know what is wrong please help me.
command prompt=========================================
CMake Error ...(more)
My environment variable settings are as follows.
=========================================
set WIRESHARK_BASE_DIR=C:\Development
set WIRESHARK_QT6_PREFIX_PATH=C:\Qt\6.4.0
=========================================
Qt6CoreConfig.cmake existed in the following folder.
C:\Qt\6.4.0\mingw_64\lib\cmake\Qt6Core
qt6core-config.cmake does not exist
FindQt6Core.cmake does not exist
I tried setting "Qt6Gui_DIR=C:\Qt\6.4.0\mingw_64\lib\cmake\Qt6Core" but got the same error.
Probably because the following environment variables are not set.
CMAKE_MODULE_PATH,CMAKE_PREFIX_PATH,Qt6Core_DIR,
What path should I set for each?
My environment variable settings are as follows.
You forgot WIRESHARK_VERSION_EXTRA. excuse me.
=========================================
set WIRESHARK_BASE_DIR=C:\Development
set WIRESHARK_QT6_PREFIX_PATH=C:\Qt\6.4.0
set WIRESHARK_VERSION_EXTRA=-YourExtraVersionInfo
=========================================
What does
dir C:\Qt\6.4.0
print?Thank you for your reply.
Setting "CMAKE_PREFIX_PATH=C:\Qt\6.4.0\mingw_64" in the environment variable worked fine.
I was able to get Wireshark.sln.
But I am getting the below error in the build.
===================================
"C:\Development\wsbuild64\Wireshark.sln"(default target) (1) ->
"C:\Development\wsbuild64\ui\qt\qtui.vcxproj.metaproj"(default target) (47) ->
"C:\Development\wsbuild64\ui\qt\qtui.vcxproj"(default target) (101) ->
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(486,5): error MSB8040: The Specter mitigation library is required for this project. For the toolsets and architectures used, install them from the Visual Studio Installer (individual components tab). More information: https://aka.ms/Ofhn4c [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
===================================
I also got this error with CMake.
I ran CMake again and it's working fine.
I have installed all the individual components marked ...(more)