mumble-voip / mumble

Mumble is an open-source, low-latency, high quality voice chat software.
https://www.mumble.info
Other
6.37k stars 1.12k forks source link

get error after run cmake --build . #5605

Closed wxlg1117 closed 2 years ago

wxlg1117 commented 2 years ago

Description

get error after run cmake --build .

Steps to reproduce

1: git clone --recursive -b master https://github.com/mumble-voip/mumble.git

2: cd mumble

3: mkdir build && cd build

4: cmake -G "NMake Makefiles" "-DVCPKG_TARGET_TRIPLET=x64-windows-static-md" "-Dstatic=ON" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/Administrator/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DIce_HOME=C:/Users/Administrator/vcpkg/installed/x64-windows-static-md" "-DCMAKE_PREFIX_PATH=C:/Users/Administrator/vcpkg/packages/protobuf_x86-windows" "-DCMAKE_BUILD_TYPE=Release" ..

5: cmake --build .

Mumble version

1.5.0

Mumble component

Both

OS

Windows

Reproducible?

Yes

Additional information

PS C:\Users\Administrator\Documents\mumble\scripts\vcpkg> .\get_mumble_dependencies.ps1 Setting triplets for AMD64 Checking for C:\Users\Administrator\vcpkg... Installing cross compile packages... Computing installation plan... The following packages are already installed: boost-optional[core]:x86-windows-static-md -> 1.78.0 Package boost-optional:x86-windows-static-md is already installed Restored 0 packages from C:\Users\Administrator\AppData\Local\vcpkg\archives in 165.7 us. Use --debug to see more details.

Total elapsed time: 68.39 ms

The package boost is compatible with built-in CMake targets:

find_package(Boost REQUIRED [COMPONENTS <libs>...])
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)

Beginning package install... Computing installation plan... The following packages are already installed: boost-accumulators[core]:x64-windows-static-md -> 1.78.0 libflac[core]:x64-windows-static-md -> 1.3.3#7 libmariadb[core,schannel,ssl]:x64-windows-static-md -> 3.1.15 libogg[core]:x64-windows-static-md -> 1.3.5 libsndfile[core,external-libs]:x64-windows-static-md -> 1.0.31 libvorbis[core]:x64-windows-static-md -> 1.3.7#2 mdnsresponder[core]:x64-windows-static-md -> 878.270.2#1 poco[core]:x64-windows-static-md -> 1.11.1 qt5-base[core]:x64-windows-static-md -> 5.15.3#2 qt5-svg[core]:x64-windows-static-md -> 5.15.3 qt5-tools[core]:x64-windows-static-md -> 5.15.3 qt5-translations[core]:x64-windows-static-md -> 5.15.3 zeroc-ice[core]:x64-windows-static-md -> 3.7.3 zlib[core]:x64-windows-static-md -> 1.2.11#13 Package boost-accumulators:x64-windows-static-md is already installed Package libflac:x64-windows-static-md is already installed Package libmariadb:x64-windows-static-md is already installed Package libogg:x64-windows-static-md is already installed Package libsndfile:x64-windows-static-md is already installed Package libvorbis:x64-windows-static-md is already installed Package mdnsresponder:x64-windows-static-md is already installed Package poco:x64-windows-static-md is already installed Package qt5-base:x64-windows-static-md is already installed Package qt5-svg:x64-windows-static-md is already installed Package qt5-tools:x64-windows-static-md is already installed Package qt5-translations:x64-windows-static-md is already installed Package zeroc-ice:x64-windows-static-md is already installed Package zlib:x64-windows-static-md is already installed Restored 0 packages from C:\Users\Administrator\AppData\Local\vcpkg\archives in 135.7 us. Use --debug to see more details.

Total elapsed time: 149.6 ms

The package boost is compatible with built-in CMake targets:

find_package(Boost REQUIRED [COMPONENTS <libs>...])
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)

The package libflac provides CMake targets:

find_package(flac CONFIG REQUIRED)
target_link_libraries(main PRIVATE FLAC::FLAC FLAC::FLAC++)

The package libmariadb provides CMake targets:

find_package(unofficial-libmariadb CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::libmariadb)

The package libogg provides CMake targets:

find_package(Ogg CONFIG REQUIRED)
target_link_libraries(main PRIVATE Ogg::ogg)

The package libsndfile provides CMake targets:

find_package(SndFile CONFIG REQUIRED)
target_link_libraries(main PRIVATE SndFile::sndfile)

The package libvorbis provides CMake targets:

# Vorbis reference encoder and decoder, low-level API
find_package(Vorbis CONFIG REQUIRED)
target_link_libraries(main PRIVATE Vorbis::vorbis)

# Audio stream decoding and basic manipulation, high-level API
find_package(Vorbis CONFIG REQUIRED)
target_link_libraries(main PRIVATE Vorbis::vorbisfile)

# Convenience API for setting up an encoding environment
find_package(Vorbis CONFIG REQUIRED)
target_link_libraries(main PRIVATE Vorbis::vorbisenc)

The package poco provides CMake targets:

find_package(Poco CONFIG REQUIRED)
# Note: 10 target(s) were omitted.
target_link_libraries(main PRIVATE Poco::Net Poco::XML Poco::Zip Poco::Data)

The package qt5-base provides CMake targets:

find_package(Qt5AccessibilitySupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::AccessibilitySupport Qt5::AccessibilitySupport Qt::AccessibilitySupportPrivate Qt5::AccessibilitySupportPrivate)

find_package(Qt5Concurrent CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::Concurrent Qt5::Concurrent Qt::ConcurrentPrivate Qt5::ConcurrentPrivate)

find_package(Qt5Core CONFIG REQUIRED)
# Note: 2 target(s) were omitted.
target_link_libraries(main PRIVATE Qt::Core Qt5::Core Qt::WinMain Qt5::WinMain)

find_package(Qt5DBus CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::DBus Qt5::DBus Qt::DBusPrivate Qt5::DBusPrivate)

find_package(Qt5DeviceDiscoverySupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::DeviceDiscoverySupport Qt5::DeviceDiscoverySupport Qt::DeviceDiscoverySupportPrivate Qt5::DeviceDiscoverySupportPrivate)

find_package(Qt5EdidSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::EdidSupport Qt5::EdidSupport Qt::EdidSupportPrivate Qt5::EdidSupportPrivate)

find_package(Qt5EventDispatcherSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::EventDispatcherSupport Qt5::EventDispatcherSupport Qt::EventDispatcherSupportPrivate Qt5::EventDispatcherSupportPrivate)

find_package(Qt5FbSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::FbSupport Qt5::FbSupport Qt::FbSupportPrivate Qt5::FbSupportPrivate)

find_package(Qt5FontDatabaseSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::FontDatabaseSupport Qt5::FontDatabaseSupport Qt::FontDatabaseSupportPrivate Qt5::FontDatabaseSupportPrivate)

find_package(Qt5Gui CONFIG REQUIRED)
# Note: 9 target(s) were omitted.
target_link_libraries(main PRIVATE Qt::Gui Qt5::Gui Qt::GuiPrivate Qt5::GuiPrivate)

find_package(Qt5Network CONFIG REQUIRED)
# Note: 1 target(s) were omitted.
target_link_libraries(main PRIVATE Qt::Network Qt5::Network Qt::NetworkPrivate Qt5::NetworkPrivate)

find_package(Qt5OpenGL CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::OpenGL Qt5::OpenGL Qt::OpenGLPrivate Qt5::OpenGLPrivate)

find_package(Qt5OpenGLExtensions CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::OpenGLExtensions Qt5::OpenGLExtensions Qt::OpenGLExtensionsPrivate Qt5::OpenGLExtensionsPrivate)

find_package(Qt5PlatformCompositorSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::PlatformCompositorSupport Qt5::PlatformCompositorSupport Qt::PlatformCompositorSupportPrivate Qt5::PlatformCompositorSupportPrivate)

find_package(Qt5PrintSupport CONFIG REQUIRED)
# Note: 1 target(s) were omitted.
target_link_libraries(main PRIVATE Qt::PrintSupport Qt5::PrintSupport Qt::PrintSupportPrivate Qt5::PrintSupportPrivate)

find_package(Qt5Sql CONFIG REQUIRED)
# Note: 2 target(s) were omitted.
target_link_libraries(main PRIVATE Qt::Sql Qt5::Sql Qt::SqlPrivate Qt5::SqlPrivate)

find_package(Qt5Test CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::Test Qt5::Test Qt::TestPrivate Qt5::TestPrivate)

find_package(Qt5ThemeSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::ThemeSupport Qt5::ThemeSupport Qt::ThemeSupportPrivate Qt5::ThemeSupportPrivate)

find_package(Qt5Widgets CONFIG REQUIRED)
# Note: 1 target(s) were omitted.
target_link_libraries(main PRIVATE Qt::Widgets Qt5::Widgets Qt::WidgetsPrivate Qt5::WidgetsPrivate)

find_package(Qt5WindowsUIAutomationSupport CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::WindowsUIAutomationSupport Qt5::WindowsUIAutomationSupport Qt::WindowsUIAutomationSupportPrivate Qt5::WindowsUIAutomationSupportPrivate)

find_package(Qt5Xml CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::Xml Qt5::Xml Qt::XmlPrivate Qt5::XmlPrivate)

The package qt5-svg provides CMake targets:

find_package(Qt5Gui CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt5::QSvgPlugin Qt5::QSvgIconPlugin)

find_package(Qt5Svg CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::Svg Qt5::Svg Qt::SvgPrivate Qt5::SvgPrivate)

The package qt5-tools provides CMake targets:

find_package(Qt5Designer CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::Designer Qt5::Designer Qt::DesignerPrivate Qt5::DesignerPrivate)

find_package(Qt5DesignerComponents CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::DesignerComponents Qt5::DesignerComponents Qt::DesignerComponentsPrivate Qt5::DesignerComponentsPrivate)

find_package(Qt5Help CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::Help Qt5::Help Qt::HelpPrivate Qt5::HelpPrivate)

find_package(Qt5UiPlugin CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::UiPlugin Qt5::UiPlugin Qt::UiPluginPrivate Qt5::UiPluginPrivate)

find_package(Qt5UiTools CONFIG REQUIRED)
target_link_libraries(main PRIVATE Qt::UiTools Qt5::UiTools Qt::UiToolsPrivate Qt5::UiToolsPrivate)

The package zlib is compatible with built-in CMake targets:

find_package(ZLIB REQUIRED)
target_link_libraries(main PRIVATE ZLIB::ZLIB)

PS C:\Users\Administrator\Documents\mumble\scripts\vcpkg>

Relevant log output

C:\Users\Administrator\Documents\mumble\build>cmake -G "NMake Makefiles" "-DVCPKG_TARGET_TRIPLET=x64-windows-static-md" "-Dstatic=ON" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/Administrator/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DIce_HOME=C:/Users/Administrator/vcpkg/installed/x64-windows-static-md" "-DCMAKE_PREFIX_PATH=C:/Users/Administrator/vcpkg/packages/protobuf_x86-windows" "-DCMAKE_BUILD_TYPE=Release" ..
-- The C compiler identification is MSVC 19.31.31105.0
-- The CXX compiler identification is MSVC 19.31.31105.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using Win7 as the oldest supported Windows version
-- ##################################################
-- Mumble version:          1.5.0
-- Architecture:            x64
-- Build type:              Release
-- Using LTO:               ON
-- ##################################################
-- Qt5 component found: Core | Version: 5.15.3
-- Qt5 component found: Network | Version: 5.15.3
-- Qt5 component found: Xml | Version: 5.15.3
-- OpenSSL component found: Crypto
-- OpenSSL component found: SSL
-- Protobuf found | Version: 3.19.4
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- TRACY_ENABLE: OFF
-- TRACY_ON_DEMAND: ON
-- TRACY_CALLSTACK: OFF
-- TRACY_ONLY_LOCALHOST: OFF
-- TRACY_NO_BROADCAST: OFF
-- TRACY_NO_CODE_TRANSFER: OFF
-- TRACY_NO_CONTEXT_SWITCH: OFF
-- TRACY_NO_EXIT: OFF
-- TRACY_NO_FRAME_IMAGE: OFF
-- TRACY_NO_SAMPLING: OFF
-- TRACY_NO_VERIFY: OFF
-- TRACY_NO_VSYNC_CAPTURE: OFF
-- Disabling warnings for targets: TracyClient
-- Tracy: OFF
-- Qt5 component found: Concurrent | Version: 5.15.3
-- Qt5 component found: Sql | Version: 5.15.3
-- Qt5 component found: Svg | Version: 5.15.3
-- Qt5 component found: Widgets | Version: 5.15.3
-- Poco component found: Zip | Version: 1.11.1
-- SndFile found | Version: 1.0.31
CMake Warning at C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1369 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1492 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:2102 (_Boost_MISSING_DEPENDENCIES)
  C:/Users/Administrator/vcpkg/installed/x64-windows-static-md/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  C:/Users/Administrator/vcpkg/scripts/buildsystems/vcpkg.cmake:761 (include)
  cmake/pkg-utils.cmake:79 (find_package)
  src/mumble/CMakeLists.txt:557 (find_pkg)

-- Boost component found: system | Version: 1.78.0
CMake Warning at C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1369 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1492 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:2102 (_Boost_MISSING_DEPENDENCIES)
  C:/Users/Administrator/vcpkg/installed/x64-windows-static-md/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  C:/Users/Administrator/vcpkg/scripts/buildsystems/vcpkg.cmake:761 (include)
  cmake/pkg-utils.cmake:79 (find_package)
  src/mumble/CMakeLists.txt:557 (find_pkg)

CMake Warning at C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1369 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1492 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:2102 (_Boost_MISSING_DEPENDENCIES)
  C:/Users/Administrator/vcpkg/installed/x64-windows-static-md/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  C:/Users/Administrator/vcpkg/scripts/buildsystems/vcpkg.cmake:761 (include)
  cmake/pkg-utils.cmake:79 (find_package)
  src/mumble/CMakeLists.txt:557 (find_pkg)

CMake Warning at C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1369 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:1492 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindBoost.cmake:2102 (_Boost_MISSING_DEPENDENCIES)
  C:/Users/Administrator/vcpkg/installed/x64-windows-static-md/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  C:/Users/Administrator/vcpkg/scripts/buildsystems/vcpkg.cmake:761 (include)
  cmake/pkg-utils.cmake:79 (find_package)
  src/mumble/CMakeLists.txt:557 (find_pkg)

-- Boost component found: thread | Version: 1.78.0
-- Disabling warnings for targets: xinputcheck
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.30.1.windows.1")
-- Opus package version from git repo: 1.3.1-97-g6b6035ae
-- Opus project version: 1.3.1
-- Looking for floor in m
-- Looking for floor in m - not found
-- Performing Test VLA_SUPPORTED
-- Performing Test VLA_SUPPORTED -- failed to compile
-- Looking for alloca.h
-- Looking for alloca.h - not found
-- Looking for alloca
-- Looking for alloca - found
-- Looking for lrintf
-- Looking for lrintf - found
-- Looking for lrint
-- Looking for lrint - found
-- Looking for intrin.h
-- Looking for intrin.h - found
-- Check SIMD support by compiler
-- Looking for xmmintrin.h
-- Looking for xmmintrin.h - found
-- Looking for emmintrin.h
-- Looking for emmintrin.h - found
-- Looking for smmintrin.h
-- Looking for smmintrin.h - found
-- Looking for immintrin.h
-- Looking for immintrin.h - found
-- Performing Test AVX_SUPPORTED
-- Performing Test AVX_SUPPORTED - Success
-- Performing Test FAST_MATH_SUPPORTED
-- Performing Test FAST_MATH_SUPPORTED - Success
-- Performing Test STACK_PROTECTOR_SUPPORTED
-- Performing Test STACK_PROTECTOR_SUPPORTED - Success
-- Performing Test STACK_PROTECTOR_DISABLED_SUPPORTED
-- Performing Test STACK_PROTECTOR_DISABLED_SUPPORTED - Success
-- The following features have been enabled:

 * OPUS_BUILD_SHARED_LIBRARY, build shared library.
 * OPUS_ENABLE_FLOAT_API, compile with the floating point API (for machines with float library).
 * OPUS_HARDENING, run-time checks that are cheap and safe for use in production.
 * OPUS_INSTALL_PKG_CONFIG_MODULE, install pkg-config module.
 * OPUS_INSTALL_CMAKE_CONFIG_MODULE, install CMake package config module.
 * OPUS_USE_ALLOCA, use alloca for stack arrays (on non-C99 compilers).
 * OPUS_STACK_PROTECTOR, use stack protection.
 * OPUS_X86_MAY_HAVE_SSE, does runtime check for SSE1 support.
 * OPUS_X86_MAY_HAVE_SSE2, does runtime check for SSE2 support.
 * OPUS_X86_MAY_HAVE_SSE4_1, does runtime check for SSE4.1 support.
 * OPUS_X86_MAY_HAVE_AVX, does runtime check for AVX support.
 * OPUS_X86_PRESUME_SSE, assume target CPU has SSE1 support (override runtime check).
 * OPUS_X86_PRESUME_SSE2, assume target CPU has SSE2 support (override runtime check).

-- The following OPTIONAL packages have been found:

 * Git

-- The following REQUIRED packages have been found:

 * Threads

-- The following features have been disabled:

 * OPUS_BUILD_TESTING, build tests.
 * OPUS_CUSTOM_MODES, enable non-Opus modes, e.g. 44.1 kHz & 2^n frames.
 * OPUS_BUILD_PROGRAMS, build programs.
 * OPUS_DISABLE_INTRINSICS, disable all intrinsics optimizations.
 * OPUS_FIXED_POINT, compile as fixed-point (for machines without a fast enough FPU).
 * OPUS_FLOAT_APPROX, enable floating point approximations (Ensure your platform supports IEEE 754 before enabling).
 * OPUS_ASSERTIONS, additional software error checking.
 * OPUS_FUZZING, causes the encoder to make random decisions (do not use in production).
 * OPUS_CHECK_ASM, enable bit-exactness checks between optimized and c implementations.
 * OPUS_FIXED_POINT_DEBUG, debug fixed-point implementation.
 * OPUS_VAR_ARRAYS, use variable length arrays for stack arrays.
 * OPUS_NONTHREADSAFE_PSEUDOSTACK, use a non threadsafe pseudostack when neither variable length arrays or alloca is supported.
 * OPUS_FAST_MATH, enable fast math (unsupported and discouraged use, as code is not well tested with this build option).
 * OPUS_X86_PRESUME_SSE4_1, assume target CPU has SSE4.1 support (override runtime check).
 * OPUS_X86_PRESUME_AVX, assume target CPU has AVX support (override runtime check).

-- Disabling warnings for targets: opus
INSTALL TARGETS - target opus has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
-- Disabling warnings for targets: celt
-- Disabling warnings for targets: speex
-- Disabling warnings for targets: rnnoise
-- Qt5 component found: LinguistTools | Version: 5.15.3
-- Bundling Qt translations from "C:/Users/Administrator/vcpkg/installed/x64-windows-static-md/share/qt5/translations"
-- Found Python interpreter version 3.10.2
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_ar.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_bg.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_ca.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_cs.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_da.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_de.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_en.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_es.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_fa.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_fi.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_fr.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_gd.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_he.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_hr.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_hu.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_it.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_ja.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_ko.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_lv.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_nl.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_nn.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_pl.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_pt_BR.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_ru.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_sk.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_tr.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_uk.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_zh_CN.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qtbase_zh_TW.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_ar.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_bg.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_ca.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_cs.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_da.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_de.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_en.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_es.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_fa.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_fi.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_fr.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_gd.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_gl.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_he.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_hr.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_hu.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_it.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_ja.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_ko.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_lt.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_lv.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_nl.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_nn.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_pl.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_pt.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_pt_BR.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_ru.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_sk.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_sl.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_sv.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_tr.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_uk.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_zh_CN.qm"
   > Bundling Qt translation "C:\Users\Administrator\vcpkg\installed\x64-windows-static-md\share\qt5\translations\qt_zh_TW.qm"
   > Bundling Qt overwrite translation "C:/Users/Administrator/Documents/mumble/build/src/mumble/qttranslations\qt_zh_CN.qm"
-- Qt5 component found: Sql | Version: 5.15.3
-- File: C:/Users/Administrator/Documents/mumble/build/src/murmur/murmur_autogen
-- Qt5 component found: Widgets | Version: 5.15.3
-- Ice component found: Ice | Version: 3.7.3
-- Ice component found: IceSSL | Version: 3.7.3
-- Ice optional component found: IceDiscovery | Version: 3.7.3
-- Ice optional component found: IceLocatorDiscovery | Version: 3.7.3
-- Ice optional component found: IceUtil | Version: 3.7.3
-- Found Boost: C:/Users/Administrator/vcpkg/installed/x64-windows-static-md/include (found version "1.78.0")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Administrator/Documents/mumble/build

C:\Users\Administrator\Documents\mumble\build>
......

C:\Users\Administrator\Documents\mumble\build>cmake --build .
[  0%] Building CXX object src/tracy/CMakeFiles/TracyClient.dir/TracyClient.cpp.obj
TracyClient.cpp
[  0%] Linking CXX static library TracyClient.lib
[  0%] Built target TracyClient
src\CMakeFiles\shared_autogen.dir\build.make(66) : fatal error U1033: 语法错误: 意外的“::”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\nmake.exe"”: 返回代码“0x2”
Stop.

C:\Users\Administrator\Documents\mumble\build>

English translation of the error report:
...
src\CMakeFiles\shared_autogen.dir\build.make(66) : fatal error U1033: syntax error : “::” unexpected.
...

Screenshots

No response

Krzmbrzl commented 2 years ago

Could you show me what build\src\CMakeFiles\shared_autogen.dir\build.make line 66 contains, please?

wxlg1117 commented 2 years ago

@Krzmbrzl

Could you show me what build\src\CMakeFiles\shared_autogen.dir\build.make line 66 contains, please?

# CMAKE generated file: DO NOT EDIT!
# Generated by "NMake Makefiles" Generator, CMake Version 3.22

# Delete rule output on recipe failure.
.DELETE_ON_ERROR:

#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.
.SUFFIXES:

.SUFFIXES: .hpux_make_needs_suffix_list

# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s

#Suppress display of executed commands.
$(VERBOSE).SILENT:

# A target that is always out of date.
cmake_force:
.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
SHELL = cmd.exe

# The CMake executable.
CMAKE_COMMAND = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"

# The command to remove a file.
RM = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E rm -f

# Escaping for special characters.
EQUALS = =

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = C:\Users\Administrator\Documents\mumble

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = C:\Users\Administrator\Documents\mumble\build

# Utility rule file for shared_autogen.

# Include any custom commands dependencies for this target.
include src\CMakeFiles\shared_autogen.dir\compiler_depend.make

# Include the progress variables for this target.
include src\CMakeFiles\shared_autogen.dir\progress.make

src\CMakeFiles\shared_autogen: src\Mumble.pb.cc
src\CMakeFiles\shared_autogen: src\Mumble.pb.h
    @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=C:\Users\Administrator\Documents\mumble\build\CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Automatic MOC for target shared"
    cd C:\Users\Administrator\Documents\mumble\build\src
    echo >nul && "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E cmake_autogen C:/Users/Administrator/Documents/mumble/build/src/CMakeFiles/shared_autogen.dir/AutogenInfo.json Release
    cd C:\Users\Administrator\Documents\mumble\build

src\Mumble.pb.h: ..\src\Mumble.proto
src\Mumble.pb.h: src\protobuf::protoc
    @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=C:\Users\Administrator\Documents\mumble\build\CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Running cpp protocol buffer compiler on C:/Users/Administrator/Documents/mumble/src/Mumble.proto"
    cd C:\Users\Administrator\Documents\mumble\build\src
    protobuf::protoc --cpp_out C:/Users/Administrator/Documents/mumble/build/src -I C:/Users/Administrator/Documents/mumble/src C:/Users/Administrator/Documents/mumble/src/Mumble.proto
    cd C:\Users\Administrator\Documents\mumble\build

src\Mumble.pb.cc: src\Mumble.pb.h
    @$(CMAKE_COMMAND) -E touch_nocreate src\Mumble.pb.cc

shared_autogen: src\CMakeFiles\shared_autogen
shared_autogen: src\Mumble.pb.cc
shared_autogen: src\Mumble.pb.h
shared_autogen: src\CMakeFiles\shared_autogen.dir\build.make
.PHONY : shared_autogen

# Rule to build all files generated by this target.
src\CMakeFiles\shared_autogen.dir\build: shared_autogen
.PHONY : src\CMakeFiles\shared_autogen.dir\build

src\CMakeFiles\shared_autogen.dir\clean:
    cd C:\Users\Administrator\Documents\mumble\build\src
    $(CMAKE_COMMAND) -P CMakeFiles\shared_autogen.dir\cmake_clean.cmake
    cd C:\Users\Administrator\Documents\mumble\build
.PHONY : src\CMakeFiles\shared_autogen.dir\clean

src\CMakeFiles\shared_autogen.dir\depend:
    $(CMAKE_COMMAND) -E cmake_depends "NMake Makefiles" C:\Users\Administrator\Documents\mumble C:\Users\Administrator\Documents\mumble\src C:\Users\Administrator\Documents\mumble\build C:\Users\Administrator\Documents\mumble\build\src C:\Users\Administrator\Documents\mumble\build\src\CMakeFiles\shared_autogen.dir\DependInfo.cmake --color=$(COLOR)
.PHONY : src\CMakeFiles\shared_autogen.dir\depend

line 66: src\Mumble.pb.h: src\protobuf::protoc

Krzmbrzl commented 2 years ago

Hm... It appears as if somehow cmake is generating an invalid Makefile. I'm not sure what is the issue though, as I am not really familiar with the syntax of these files. A quick search brought up https://stackoverflow.com/questions/35131763/cmake-error-when-generate-nmake-makefiles though. In that light, are you executing cmake from a Developer command prompt?

Have you already tried completely wiping the build directory and restarting from scratch? Maybe cmake just got hung up on something :thinking:

wxlg1117 commented 2 years ago

@Krzmbrzl

use x64 Native Tools Command Prompt for VS 2022: %comspec% /k "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"

and I delete all the files in the "build" directory before each build, but it still gives me the same error.

Is there a third party automated build site where I can download the latest snapshot version of client for windows? latest snapshot version i means =1.5 ,not 1.4

Krzmbrzl commented 2 years ago

Hm that's odd.

You could try using Ninja instead of NMake Makefiles. That's what I use on Windows and I never had issues with it. Note that you'll have to install Ninja first (unless you already have it): https://ninja-build.org/

Is there a third party automated build site where I can download the latest snapshot version of client for windows? latest snapshot version i means =1.5 ,not 1.4

If you can live with an unsigned binary, you can download it from our CI: https://dev.azure.com/Mumble-VoIP/Mumble/_build/results?buildId=5903&view=artifacts&pathAsName=false&type=publishedArtifacts

stale[bot] commented 2 years ago

This support-issue has been automatically marked as stale because it has not had recent activity. If no further activity occurs, the issue will be automatically closed as we'll assume your problem to be fixed.