Wireshark-3.0.5 CMakelist - win-setup.ps1 fails
Wireshark Release 3.1.1 works fine. I switched to Wireshark Release 3.0.5 and the Cmakelist fails as follows:
C:\Development\wsbuild64>cmake -G "Visual Studio 15 2017 Win64" ../wireshark-3.0.5
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.16299.
-- The C compiler identification is MSVC 19.16.27032.1
-- The CXX compiler identification is MSVC 19.16.27032.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generating build using CMake 3.12.18081601-MSVC_2
-- Found POWERSHELL: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
-- Building for win64 using Visual Studio 15 2017 Win64
. : AuthorizationManager check failed.
At line:1 char:3
+ . "C:\Development\wireshark-3.0.5\tools\win-setup.ps1" -Destination C ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
CMake Error at CMakeLists.txt:112 (message):
Windows setup (win-setup.ps1) failed.
-- Configuring incomplete, errors occurred!
See also "C:/Development/wsbuild64/CMakeFiles/CMakeOutput.log".
-- Configuring incomplete, errors occurred!
See also "C:/Development/wsbuild64/CMakeFiles/CMakeOutput.log".
For reasons unknown, CMake is unable to run the 3rd party library setup script due to an access restriction. How did you get the sources (C:\Development\wireshark-3.0.5) on that machine, via git or a tarball or some other means?
I downloaded wireshark-3.0.5.tar.xz from the wireshark website. Extracted the files and copied them to the C:\Development\wireshark-3.0.5 directory.
I suspect that the file has been blocked due to "Mark of the Web". Can you locate the file in Windows Explorer, right-click, select Properties and at the bottom of the dialog ensure there is no mention of "unblocking" the file. If it is blocked, then check the Unblock box and click apply to unblock it.
I changed wireshark-win64-libs to wireshark-win64-libs-3.0. SET WIRESHARK_LIB_DIR=C:\Development\wireshark-win64-libs-3.0. cmake is now successful.