Skip to content

gstscream crate does not build its lib dependencies #69

@bwwu

Description

@bwwu

I would like to include crate gstcream as a dependency in my project. This does not work out of the box, because the crate does not build the dynamic lib libscream, thus the following err message:

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,-exported_symbols_list" "-Wl,/var/folders/ty/740j0bm95xs36ggr1n93stcr0000gq/T/rustcuGr5Fb/list" "/var/folders/ty/740j0bm95xs36ggr1n93stcr0000gq/T/rustcuGr5Fb/symbols.o" "<160 object files omitted>" "-lscream" "/Users/brandon/.cargo/git/checkouts/scream-5fba2e82e10db994/9676fd9/gstscream/target/debug/deps/{libgstreamer_video-07c2e6cd0ee0a50c,libgstreamer_video_sys-1d738d5b4a607a85,libgstreamer_base-16f90f5ea0a723a2,libatomic_refcell-8488491b038709e5,libgstreamer_rtp-1bab3bb6f7754ede,libgstreamer_rtp_sys-20368ac49be16fc8,libgstreamer_base_sys-a6380c3cc3427ecd,libhashbrown-ea85df0d3dcdab36,libahash-e416dae33ef429c2,libonce_cell-4ad5eb14a4779e2d,libgstreamer-29f25eae36ebce03,libkstring-c211c29db381c0a7,libstatic_assertions-c4e28e61724d4f27,liboption_operations-ac8f327da4be4968,libmuldiv-c658a49fa37c1c6c,libitertools-faa33fb92373e63f,libeither-f5cbca86e07f8690,libnum_rational-cf6777dc024087a8,libnum_integer-9127f06ee75f04a5,libnum_traits-b872bc3ccde0d32a,libthiserror-fa059c06a4b061ed,libgstreamer_sys-0cbbbef5cc5e1196,libcfg_if-90419fe6f45341bd,libglib-2f178b3fcb4315f1,libfutures_executor-fc4807fbc31d7a64,libmemchr-ce8c57a4682c4b2d,libsmallvec-72969df19b2b84fb,libgio_sys-fc43d028419c911a,libfutures_util-ad6d67db6e6a4355,libslab-367f9e438396e70a,libpin_project_lite-eb15d7b2742d6936,libpin_utils-4b299572fc0cb12b,libfutures_task-9c6f2ff7315c7b17,libfutures_channel-7becc30865a592df,libfutures_core-b68aa948120a041b,libgobject_sys-98451b464b43143f,libglib_sys-0487f8fbc60757da,liblibc-a3fc4e03a8972724,libbitflags-c2ae0b453a8bd5f9,libarray_init-6ceb33d9a7cbc04d}.rlib" "<sysroot>/lib/rustlib/aarch64-apple-darwin/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-lgstvideo-1.0" "-lgstbase-1.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgstrtp-1.0" "-lgstbase-1.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgstbase-1.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-liconv" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=11.0.0" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gstreamer/1.26.7/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gstreamer/1.26.7/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gstreamer/1.26.7/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gstreamer/1.26.7/lib" "-L" "/opt/homebrew/Cellar/glib/2.86.0/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-o" "/Users/brandon/.cargo/git/checkouts/scream-5fba2e82e10db994/9676fd9/gstscream/target/debug/deps/libgstscream.dylib" "-Wl,-dead_strip" "-dynamiclib" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld: warning: ignoring duplicate libraries: '-lglib-2.0', '-lgobject-2.0', '-lgstbase-1.0', '-lgstreamer-1.0', '-lintl'
          ld: library 'scream' not found
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `gstscream` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions