Closed wxlg1117 closed 2 years ago
Could you show me what build\src\CMakeFiles\shared_autogen.dir\build.make
line 66 contains, please?
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
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:
@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
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
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.
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:
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:
The package libflac provides CMake targets:
The package libmariadb provides CMake targets:
The package libogg provides CMake targets:
The package libsndfile provides CMake targets:
The package libvorbis provides CMake targets:
The package poco provides CMake targets:
The package qt5-base provides CMake targets:
The package qt5-svg provides CMake targets:
The package qt5-tools provides CMake targets:
The package zlib is compatible with built-in CMake targets:
PS C:\Users\Administrator\Documents\mumble\scripts\vcpkg>
Relevant log output
Screenshots
No response