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

Issue: can't build tectonic rust crate (0.15.0) on windows due to error with tectonic_bridge_graphite2 v0.2.2 #1206

Open
LordIV4 opened this issue Jul 30, 2024 · 2 comments

Comments

@LordIV4
Copy link

LordIV4 commented Jul 30, 2024

when calling the cargo install tectonic comand, I run into the following error:

error: failed to run custom build command for tectonic_bridge_graphite2 v0.2.2

Caused by:
process didn't exit successfully: C:\Users\{USERNAME}\AppData\Local\Temp\cargo-install4o6F51\release\build\tectonic_bridge_graphite2-d7ca28945d7ea126\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=TECTONIC_DEP_BACKEND
cargo:rerun-if-env-changed=TECTONIC_PKGCONFIG_FORCE_SEMI_STATIC
cargo:rerun-if-env-changed=GRAPHITE2_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

--- stderr
thread 'main' panicked at C:\Users{USERNAME}.cargo\registry\src\index.crates.io-6f17d22bba15001f\tectonic_dep_support-0.1.1\src\lib.rs:113:14:
called Result::unwrap() on an Err value: Could not run PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags graphite2
The pkg-config command could not be found.

Most likely, you need to install a pkg-config package for your OS.

If you've already installed it, ensure the pkg-config command is one of the
directories in the PATH environment variable.

If you did not expect this build to link to a pre-installed system library,
then check documentation of the tectonic_bridge_graphite2 crate for an option to
build the library from source, or disable features or dependencies
that require pkg-config.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile tectonic v0.15.0, intermediate artifacts can be found at C:\Users\{USERNAME}\AppData\Local\Temp\cargo-install4o6F51.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

What can I do to sucessfully install the tectonic-rust crate ?


I tried to use cargo vcpk and managed to sucessfully compile my tectonic git pull; but still the rust package isn't able to be installed correctely.

@LordIV4 LordIV4 changed the title Issue: can't build tectonic rust crate on windows (0.15.0) Issue: can't build tectonic rust crate (0.15.0) on windowsdue to error with tectonic_bridge_graphite2 v0.2.2 Jul 30, 2024
@LordIV4 LordIV4 changed the title Issue: can't build tectonic rust crate (0.15.0) on windowsdue to error with tectonic_bridge_graphite2 v0.2.2 Issue: can't build tectonic rust crate (0.15.0) on windows due to error with tectonic_bridge_graphite2 v0.2.2 Jul 30, 2024
@photino
Copy link

photino commented Sep 26, 2024

I also have the same problem. Any ideas on how to fix it?

@Prashant4900
Copy link

I also have the same problem. Any ideas on how to fix it?

did you find any solution?

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