mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Building rustdesk fails with a gstreamer error on Mageia8 #1447
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#1447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ericxuo on GitHub (Feb 27, 2023).
Bug Description
Hi,
I get the same issue than https://github.com/rustdesk/rustdesk/issues/1226 but I'm NOT using docker. Could you explain how to do to solve this issue ?
My (partial) commands :
setenv VCPKG_ROOT $HOME/vcpkg
cargo run
...
Compiling gdk-sys v0.16.0
error: failed to run custom build command for gstreamer-sys v0.9.1
Caused by:
process didn't exit successfully: /home/eric/Téléchargements/rustDesk/rustdesk/target/debug/build/gstreamer-sys-5b9fc3fb8ffdd8a1/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=GSTREAMER_1.0_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
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-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
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-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
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-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
"pkg-config" "--libs" "--cflags" "gstreamer-1.0" "gstreamer-1.0 >= 1.10" did not exit successfully: exit status: 1
error: could not find system library 'gstreamer-1.0' required by the 'gstreamer-sys' crate
--- stderr
Package gstreamer-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gstreamer-1.0', required by 'virtual:world', not found
Package 'gstreamer-1.0', required by 'virtual:world', not found
I'm running under Mageia8.
Regards.
Xuo.
How to Reproduce
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git checkout 2021.12.01
cd ..
vcpkg/bootstrap-vcpkg.sh
setenv VCPKG_ROOT $HOME/rustDesk/vcpkg
vcpkg/vcpkg install libvpx libyuv opus
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
setenv PATH $HOME/.cargo/bin:$PATH
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
mv libsciter-gtk.so target/debug
setenv VCPKG_ROOT $HOME/vcpkg
cargo run
Expected Behavior
No compilation error.
Operating system(s) on local side and remote side
Mageia8
RustDesk Version(s) on local side and remote side
1.1.9
Screenshots
Additional Context
No response
@rustdesk commented on GitHub (Feb 27, 2023):
#763
@ericxuo commented on GitHub (Feb 27, 2023):
Hi,
I could make it work after I've added the package lib64gstreamer (and some others later).
But now it fails on :
error: failed to run custom build command for
scrap v0.5.0 (/home/xuo/rustDesk/rustdesk/libs/scrap)Caused by:
process didn't exit successfully:
/home/xuo/rustDesk/rustdesk/target/debug/build/scrap-656f16bb33095715/build-script-build(exit status: 101)--- stdout
cargo:info=x64-linux
cargo:rustc-link-lib=static=yuv
cargo:rustc-link-search=/home/xuo/rustDesk/vcpkg/installed/x64-linux/lib
cargo:include=/home/xuo/rustDesk/vcpkg/installed/x64-linux/include
cargo:info=x64-linux
cargo:rustc-link-lib=static=vpx
cargo:rustc-link-search=/home/xuo/rustDesk/vcpkg/installed/x64-linux/lib
cargo:include=/home/xuo/rustDesk/vcpkg/installed/x64-linux/include
rerun-if-changed=/home/xuo/rustDesk/rustdesk/libs/scrap/vpx_ffi.h
rerun-if-changed=/home/xuo/rustDesk/vcpkg/installed/x64-linux/include
--- stderr
/home/xuo/rustDesk/vcpkg/installed/x64-linux/include/vpx/vpx_integer.h:15:10: fatal error: ''' file not found
/home/xuo/rustDesk/vcpkg/installed/x64-linux/include/vpx/vpx_integer.h:15:10: fatal error: 'stddef.h' file not found, err: true
thread 'main' panicked at 'called
Result::unwrap()on anErrvalue: ()', libs/scrap/build.rs:134:18note: run with
RUST_BACKTRACE=1environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
and I don't know from which package this file 'stddef.h' should be added.
Regards.
Xuo.
@QYH2MMT4EVER commented on GitHub (Mar 6, 2023):
Have you solved this problem ? could you give me some help if so?
@ericxuo commented on GitHub (Mar 6, 2023):
Hello,
I think I have installed the package lib64clang-devel to make it compile correctly.
Regards.
Xuo.
@dvorakchen commented on GitHub (Nov 15, 2024):
enter
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-devto installreference: https://stackoverflow.com/questions/25558308/error-no-gstreamer-1-0-1-4-0-gstreamer-found#51665804