Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake issue when building iui v 0.3.0 on windows 8.1 #120

Open
mhamedGd opened this issue Aug 12, 2022 · 3 comments
Open

Cmake issue when building iui v 0.3.0 on windows 8.1 #120

mhamedGd opened this issue Aug 12, 2022 · 3 comments

Comments

@mhamedGd
Copy link

Compiling ui-sys v0.1.3
error: failed to run custom build command for ui-sys v0.1.3

Caused by:
process didn't exit successfully: C:\Users\intel\Desktop\Rust_Projects\guessing-game\target\debug\build\ui-sys-1a90a5063783f1a4\build-script-build (exit code: 101)
--- stdout
git version 2.37.1.windows.1
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\intel\.cargo\registry\src\github.com-1ecc6299db9ec823\ui-sys-0.1.3\libui" "-G" "Visual Studio 16 2019" "-Thost=x64" "-Ax64" "-DCMAKE_INSTALL_PREFIX=C:\Users\intel\Desktop\Rust_Projects\guessing-game\target\debug\build\ui-sys-bb7b023830056e1d\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=release"
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 6.3.9600.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/intel/Desktop/Rust_Projects/guessing-game/target/debug/build/ui-sys-bb7b023830056e1d/out/build
running: "cmake" "--build" "." "--target" "" "--config" "release" "--parallel" "4"

--- stderr
fatal: not a git repository (or any of the parent directories): .git
Usage: cmake --build

[options] [-- [native-options]]
cmake --build --preset [options] [-- [native-options]]
Options:
= Project binary directory to be built.
--preset , --preset=
= Specify a build preset.
--list-presets
= List available build presets.
--parallel [], -j []
= Build in parallel using the given number of jobs.
If is omitted the native build tool's
default number is used.
The CMAKE_BUILD_PARALLEL_LEVEL environment variable
specifies a default parallel level when this option
is not given.
--target ..., -t ...
= Build instead of default targets.
--config = For multi-configuration tools, choose .
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--resolve-package-references={on|only|off}
= Restore/resolve package references during build.
--verbose, -v = Enable verbose output - if supported - including
the build commands to be executed.
-- = Pass remaining options to the native tool.
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now', C:\Users\intel.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.48\src\lib.rs:975:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@mhamedGd mhamedGd changed the title Cmake issue when building iui v 0.1.3 Cmake issue when building iui v 0.1.3 on windows 8.1 Aug 12, 2022
@mhamedGd mhamedGd changed the title Cmake issue when building iui v 0.1.3 on windows 8.1 Cmake issue when building iui v 0.3.0 on windows 8.1 Aug 12, 2022
@kellda
Copy link

kellda commented Jan 11, 2023

Hit the same error, the fix I found was to specify .build_target("all") instead of .build_target("") in build.rs

@Gamer-Kold
Copy link

I encountered the same error when trying to build a project with iui as a dependecy. On Linux Mint 21.1

@Gamer-Kold
Copy link

Building from master fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants