Skip to content

Unable to compile successfully on Windows platform #121

@gnehc0

Description

@gnehc0

failed to run custom build command for couchbase-lite-core-sys v0.13.1
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
Caused by:
process didn't exit successfully: D:\demo\cbl3\target\debug\build\couchbase-lite-core-sys-dee37d0edfb538a7\build-script-build (exit code: 101)
--- stdout
git remote -v output: origin https://github.com/Dushistov/couchbase-lite-core (fetch)
origin https://github.com/Dushistov/couchbase-lite-core (push)
git repo has proper commit: b963be478a9b97fd149326dc69581f6733b23c23
CMAKE_TOOLCHAIN_FILE_x86_64-pc-windows-msvc = None
CMAKE_TOOLCHAIN_FILE_x86_64_pc_windows_msvc = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_GENERATOR_x86_64-pc-windows-msvc = None
CMAKE_GENERATOR_x86_64_pc_windows_msvc = None
HOST_CMAKE_GENERATOR = None
CMAKE_GENERATOR = None
CMAKE_PREFIX_PATH_x86_64-pc-windows-msvc = None
CMAKE_PREFIX_PATH_x86_64_pc_windows_msvc = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-pc-windows-msvc = None
CMAKE_x86_64_pc_windows_msvc = None
HOST_CMAKE = None
CMAKE = None
running: "cmake" "C:\Users\Lenovo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\couchbase-lite-core" "-G" "Visual Studio 17 2022" "-Thost=x64" "-Ax64" "-DDISABLE_LTO_BUILD=True" "-DENABLE_TESTING=False" "-DLITECORE_BUILD_TESTS=False" "-DCMAKE_INSTALL_PREFIX=D:\demo\cbl3\target\debug\build\couchbase-lite-core-sys-0f8447956b078b95\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Debug"
-- The C compiler identification is MSVC 19.41.34120.0
-- The CXX compiler identification is MSVC 19.41.34120.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/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 (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/app/Git/cmd/git.exe (found version "2.36.1.windows.1")
-- Wrote D:/demo/cbl3/target/debug/build/couchbase-lite-core-sys-0f8447956b078b95/out/build/generated_headers/repo_version.h...
-- Standalone build, configure cmake variables
-- No threading checks needed for Windows
-- Found Python3: C:/Python312/python.exe (found version "3.12.1") found components: Interpreter
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Configuring done (8.7s)
-- Generating done (0.3s)
-- Build files have been written to: D:/demo/cbl3/target/debug/build/couchbase-lite-core-sys-0f8447956b078b95/out/build
running: "cmake" "--build" "D:\demo\cbl3\target\debug\build\couchbase-lite-core-sys-0f8447956b078b95\out\build" "--target" "install" "--config" "Debug" "--parallel" "12" "--" "LiteCoreStatic" "FleeceStatic" "BLIPStatic"
适用于 .NET Framework MSBuild 版本 17.11.2+c078802d4
MSBUILD : error MSB1008: 只能指定一个项目。
完整命令行:“"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/amd64/MSBuild.exe" install.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /m:12 /v:m LiteCoreStatic FleeceStatic BLIPStatic”
响应文件追加的开关:
“”来自“C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.rsp”
开关:LiteCoreStatic
若要显示开关的语法,请键入“MSBuild -help”
--- stderr
CMake Deprecation Warning at vendor/zlib/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_FLAGS
CMAKE_ASM_FLAGS_DEBUG
thread 'main' panicked at C:\Users\Lenovo.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\cmake-0.1.54\src\lib.rs:1119:5:
command did not execute successfully, got: exit code: 1
build script failed, must exit now
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:692
1: core::panicking::panic_fmt
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src\panicking.rs:75
2: cmake::find_exe::{{closure}}
3: <cmake::Version as core::default::Default>::default
4: cmake::Config::build
5: build_script_build::find_all_c4_enum_option::{{closure}}
6: ::matches
7: core::ops::function::FnOnce::call_once
8: std::rt::lang_start::{{closure}}
9: std::rt::lang_start::{{closure}}
10: std::rt::lang_start_internal::closure$1
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\rt.rs:174
11: std::panicking::try::do_call
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:584
12: std::panicking::try
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:547
13: std::panic::catch_unwind
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panic.rs:358
14: std::rt::lang_start_internal
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\rt.rs:174
15: std::rt::lang_start
16: main
17: invoke_main
at D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
18: __scrt_common_main_seh
at D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
19: BaseThreadInitThunk
20: RtlUserThreadStart
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions