cargo-c install problem in cerbero UCRT64 bootstrap

Jun Xiao xiaojuntime at gmail.com
Wed Nov 2 16:29:51 UTC 2022


Hi Nirbheek,

When I tried further to do ` ./cerbero-uninstalled.sh -c
config/win64.cbc -v visualstudio package gstreamer-1.0`, I met
following problem with pkg-config.
I am pretty that pkg-config is on $PATH which I used pacman to install
in UCRT64 terminal.

  cargo:rerun-if-env-changed=GSTREAMER_1.0_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=GSTREAMER_1.0_STATIC
  cargo:rerun-if-env-changed=GSTREAMER_1.0_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  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 'called `Result::unwrap()` on an `Err`
value: Could not run `"/ucrt64/bin/pkg-config" "--libs" "--cflags"
"gstreamer-1.0"`
  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 gst-plugin-threadshare crate for an option to
  build the library from source, or disable features or dependencies
  that require pkg-config.', generic\threadshare\build.rs:2:64
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error: CliError { error: Some(1 job failed), exit_code: 101 }

The full log is also attached.

Thanks,
Jun


On Wed, Nov 2, 2022 at 4:19 PM Jun Xiao <xiaojuntime at gmail.com> wrote:
>
> Thanks Nirbheek! It works now.
>
> Cheers,
> Jun
>
> On Wed, Nov 2, 2022 at 5:49 AM Nirbheek Chauhan
> <nirbheek.chauhan at gmail.com> wrote:
> >
> > Hi Jun,
> >
> > This will be fixed by:
> > https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/991
> >
> > Please try the patches in that MR.
> >
> > Cheers,
> > Nirbheek
> >
> > On Mon, Oct 31, 2022 at 3:47 PM Jun Xiao via gstreamer-devel
> > <gstreamer-devel at lists.freedesktop.org> wrote:
> > >
> > > Hi,
> > >
> > > I did following steps to bootstrap cerbero env with rust support:
> > > - `toos/bootstrap-windows.ps1` ( I changed msys64 drive from C: to D:)
> > > - open D:\msys64\ucrt64.exe terminal
> > > - git clone cerbero repo
> > > - ./cerbero-uninstalled.sh -c config/win64.cbc -v visualstudio bootstrap
> > >
> > > then i got some errors like:
> > >   cargo:warning=x86_64-w64-mingw32-gcc-ar: Cannot find binary 'ar'
> > >   exit code: 1
> > >
> > > Full cargo-c-install.log is attached. Could anyone have some insight on this?
> > >
> > > Thanks,
> > > Jun
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gst-plugins-rs-compile.log
Type: application/octet-stream
Size: 329969 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221103/0e748a03/attachment-0001.obj>


More information about the gstreamer-devel mailing list