Error when installing kanata on macOS Sequoia #1274
Unanswered
highly-illiquid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting this error when doing cargo install kanata.
I have installed the Karabiner-DriverKit-VirtualHIDDevice-5.0.0.pkg. I also have Karabiner Elements installed if that matters.
Can someone help?
`The following warnings were emitted during compilation:
warning: karabiner-driverkit@0.1.3: In file included from c_src/driverkit.cpp:1:
warning: karabiner-driverkit@0.1.3: c_src/driverkit.hpp:1:10: fatal error: 'map' file not found
warning: karabiner-driverkit@0.1.3: 1 | #include
warning: karabiner-driverkit@0.1.3: | ^~~~~
warning: karabiner-driverkit@0.1.3: 1 error generated.
error: failed to run custom build command for
karabiner-driverkit v0.1.3
Caused by:
process didn't exit successfully:
/var/folders/q_/8nrf0hm93vx3_1zfpwgxbb5c0000gn/T/cargo-installEvqkm7/release/build/karabiner-driverkit-2813bb0390041c8f/build-script-build
(exit status: 1)--- stdout
macOS version 15.0.1, using dext...
OUT_DIR = Some(/var/folders/q_/8nrf0hm93vx3_1zfpwgxbb5c0000gn/T/cargo-installEvqkm7/release/build/karabiner-driverkit-1898eb8c195b2ffc/out)
TARGET = Some(aarch64-apple-darwin)
OPT_LEVEL = Some(z)
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
CXX_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
CXX_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CXX
HOST_CXX = None
cargo:rerun-if-env-changed=CXX
CXX = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:warning=In file included from c_src/driverkit.cpp:1:
cargo:warning=c_src/driverkit.hpp:1:10: fatal error: 'map' file not found
cargo:warning= 1 | #include
cargo:warning= | ^~~~~
cargo:warning=1 error generated.
--- stderr
error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "c++" "-Oz" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=arm64-apple-darwin" "-mmacosx-version-min=15.0" "-shared" "-std=c++2a" "-I" "c_src/Karabiner-DriverKit-VirtualHIDDevice/include/pqrs/karabiner/driverkit" "-I" "c_src/Karabiner-DriverKit-VirtualHIDDevice/src/Client/vendor/include" "-Wall" "-Wextra" "-w" "-fPIC" "-o" "/var/folders/q_/8nrf0hm93vx3_1zfpwgxbb5c0000gn/T/cargo-installEvqkm7/release/build/karabiner-driverkit-1898eb8c195b2ffc/out/5a8d0e5847def0b2-driverkit.o" "-c" "c_src/driverkit.cpp" with args c++ did not execute successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
error: failed to compile
kanata v1.6.1
, intermediate artifacts can be found at/var/folders/q_/8nrf0hm93vx3_1zfpwgxbb5c0000gn/T/cargo-installEvqkm7
.To reuse those artifacts with a future compilation, set the environment variable
CARGO_TARGET_DIR
to that path.`
Beta Was this translation helpful? Give feedback.
All reactions