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

Compiling tutorials on windows #64

Closed
madmaxio opened this issue Nov 18, 2017 · 25 comments
Closed

Compiling tutorials on windows #64

madmaxio opened this issue Nov 18, 2017 · 25 comments

Comments

@madmaxio
Copy link

Hey there, I cloned repo and installed gstreamer but getting this error on compiling tutorials:

ld: cannot find -lgstaudio-1.0
ld: cannot find -lgstapp-1.0
ld: cannot find -lgstbase-1.0
ld: cannot find -lgstreamer-1.0
ld: cannot find -lgobject-2.0
ld: cannot find -lglib-2.0
ld: cannot find -lgobject-2.0

Also, i didnt't really understand pkf-config part from readme: should PKG_CONFIG_PATH point to pkg-config.exe OR it should it point to some c:/gstreamer path?

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

I'm setting up a Windows machine later and try things myself. Will let you know

The PKG_CONFIG_PATH should be set to the directory where gstreamer-1.0.pc and other files are located, just like in the README.md where the default path for that for the GStreamer binaries is given.

Which variant of Rust did you install, the MSVC or MinGW one? Did you install GStreamer from the binaries (32 or 64 bit?) or msys2, and in case of the former did you install it into the default directory (c:\gstreamer\x86_64) or elsewhere?

@madmaxio
Copy link
Author

I use MinGW rust and msi binaries for gstreamer, installation defaulted to C:\gstreamer\1.0\x86_64

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

Then you set PKG_CONFIG_PATH to c:\gstreamer\1.0\x86_64\lib\pkgconfig (careful with escaping the backslashes) or /c/gstreamer/1.0/x86_64/lib/pkgconfig

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

Also make sure to have the gstreamer/1.0/x86_64/bin directory inside your PATH

@madmaxio
Copy link
Author

So my final setup is with c:\gstreamer\1.0\x86_64\lib\pkgconfig for PKG_CONFIG_PATH, also I added C:\gstreamer\1.0\x86_64\bin to PATH and managed to get this:

error: linking with gcc failed: exit code: 1

= note: ld: cannot find -lgstapp-1.0

      ld: cannot find -lgstbase-1.0

      ld: cannot find -lgstreamer-1.0

      ld: cannot find -lgobject-2.0

      ld: cannot find -lglib-2.0

      ld: cannot find -lgobject-2.0

error: Could not compile gstreamer-app.

ld: cannot find -lgstbase-1.0

      ld: cannot find -lgstreamer-1.0

      ld: cannot find -lgobject-2.0

      ld: cannot find -lglib-2.0

      ld: cannot find -lgobject-2.0

error: Could not compile gstreamer-base.

: ld: cannot find -lgstvideo-1.0

      ld: cannot find -lgstbase-1.0

      ld: cannot find -lgstreamer-1.0

      ld: cannot find -lgobject-2.0

      ld: cannot find -lglib-2.0

      ld: cannot find -lgobject-2.

error: Could not compile gstreamer-video

= note: ld: cannot find -lgstreamer-1.0

      ld: cannot find -lgobject-2.0

      ld: cannot find -lglib-2.0

      ld: cannot find -lgobject-2.0

error: Could not compile gstreamer.

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

Ok, I'll check on Windows myself later

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

Please also paste the complete compiler output from the very beginning, and the output of "export" or "printenv"

@madmaxio
Copy link
Author

  • cargo test *> 1.txt
  •   + CategoryInfo          : NotSpecified: (   Compiling tu...r-rs/tutorials):String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

error
: linking with gcc failed: exit code: 1
|

= note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\crt2.o" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "-L" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nigh
tly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_40.rust-cgu.o" "C:\src\gstreamer-rs\target\de
bug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_41.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_410.rust-cgu.o" "C:\src\gstreamer-rs\tar
get\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_411.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_412.rust-cgu.o" "C:\src\gstreamer
-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_413.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_414.rust-cgu.o" "C:\src\g
streamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_415.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_42.rust-cgu.o" "C:
\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_43.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_44.rust-cgu.o
" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_45.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_46.rust
-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_47.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_4
8.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.basic_tutorial_49.rust-cgu.o" "-o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.exe"
"C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_4-04a5ea070f4cd6a2.crate.allocator.rust-cgu.o" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\src\gstreamer-rs\target\debug\deps" "-L" "C:\Users\╨
Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-Wl,-Bstatic" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer-42aaac4580595741.rlib" "C:\src
\gstreamer-rs\target\debug\deps\libmuldiv-9cb8ac78ef809840.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_rational-1314b7679c44f2fc.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_integer
-e9ff83cf47d59612.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib-6e02d85ad644bdcf.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblazy_static-a7fb567af6e2471e.rlib" "C:\src\gstreamer-rs\targe
t\debug\deps\libgstreamer_sys-2eb1e0a7956b7e66.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgobject_sys-6eb035624d4bea05.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib_sys-8083f152669d7f9d
.rlib" "C:\src\gstreamer-rs\target\debug\deps\libbitflags-9dab0a5e2d986546.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblibc-abc2821618bd6362.rlib" "C:\src\gstreamer-rs\target\debug\deps\libn
um_traits-7af7d53b59bfdb48.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libtest-73f7d6b80ce30a71.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.r
ustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libterm-b7197353f0d23bc3.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustli
b\x86_64-pc-windows-gnu\lib\libgetopts-0032ec7e45822d03.rlib" "C:
\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-664906f071e10b12.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-
windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-93a68cce352090e9.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib
\libunwind-750823465b51b906.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-aefc98a8bfdeace4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\
.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc_system-ea86f92a508fe9a4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\l
ib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-edf403ccab33802f.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_unicode-fe35
6cfe779b55c4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librand-42aed390d8d0bbb0.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolcha
ins\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-1d04e47076dbb6c7.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\libcompiler_builtins-82cb3f0f911c9fba.rlib" "-Wl,-Bdynamic" "-l" "gstreamer-1.0" "-l" "gobject-2.0" "-l" "glib-2.0" "-l" "gobject-2.0" "-l" "kernel32" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv"
"-l" "shell32" "-Wl,-Bstatic" "-l" "gcc_eh" "-l" "pthread" "-Wl,-Bdynamic" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-wind
ows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"

= note: ld: cannot find -lgstreamer-1.0
ld: cannot find -lgobject-2.0
ld: cannot find -lglib-2.0

      ld: cannot find -lgobject-2.0

error
: aborting due to previous error

error
: linking with gcc failed: exit code: 1

|

= note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\crt2.o" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "-L" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nigh
tly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_70.rust-cgu.o" "C:\src\gstreamer-rs\target\de
bug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_71.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_710.rust-cgu.o" "C:\src\gstreamer-rs\tar
get\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_711.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_712.rust-cgu.o" "C:\src\gstreamer
-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_713.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_714.rust-cgu.o" "C:\src\g
streamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_715.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_72.rust-cgu.o" "C:
\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_73.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_74.rust-cgu.o
" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_75.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_76.rust
-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_77.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_7
8.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.basic_tutorial_79.rust-cgu.o" "-o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.exe"
"C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_7-2473ecbe3e73a6e0.crate.allocator.rust-cgu.o" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\src\gstreamer-rs\target\debug\deps" "-L" "C:\Users\╨
Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-Wl,-Bstatic" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer-42aaac4580595741.rlib" "C:\src
\gstreamer-rs\target\debug\deps\libmuldiv-9cb8ac78ef809840.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_rational-1314b7679c44f2fc.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_integer
-e9ff83cf47d59612.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib-6e02d85ad644bdcf.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblazy_static-a7fb567af6e2471e.rlib" "C:\src\gstreamer-rs\targe
t\debug\deps\libgstreamer_sys-2eb1e0a7956b7e66.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgobject_sys-6eb035624d4bea05.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib_sys-8083f152669d7f9d
.rlib" "C:\src\gstreamer-rs\target\debug\deps\libbitflags-9dab0a5e2d986546.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblibc-abc2821618bd6362.rlib" "C:\src\gstreamer-rs\target\debug\deps\libn
um_traits-7af7d53b59bfdb48.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libtest-73f7d6b80ce30a71.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.r
ustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libterm-b7197353f0d23bc3.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustli
b\x86_64-pc-windows-gnu\lib\libgetopts-0032ec7e45822d03.rlib" "C:
\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-664906f071e10b12.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-
windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-93a68cce352090e9.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib
\libunwind-750823465b51b906.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-aefc98a8bfdeace4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\
.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc_system-ea86f92a508fe9a4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\l
ib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-edf403ccab33802f.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_unicode-fe35
6cfe779b55c4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librand-42aed390d8d0bbb0.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolcha
ins\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-1d04e47076dbb6c7.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\libcompiler_builtins-82cb3f0f911c9fba.rlib" "-Wl,-Bdynamic" "-l" "gstreamer-1.0" "-l" "gobject-2.0" "-l" "glib-2.0" "-l" "gobject-2.0" "-l" "kernel32" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv"
"-l" "shell32" "-Wl,-Bstatic" "-l" "gcc_eh" "-l" "pthread" "-Wl,-Bdynamic" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-wind
ows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"

= note
: ld: cannot find -lgstreamer-1.0

      ld: cannot find -lgobject-2.0

      ld: cannot find -lglib-2.0
      ld: cannot find -lgobject-2.0

error
: aborting due to previous error

error
: linking with gcc failed: exit code: 1

|

= note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\crt2.o" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "-L" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nigh
tly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_30.rust-cgu.o" "C:\src\gstreamer-rs\target\de
bug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_31.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_310.rust-cgu.o" "C:\src\gstreamer-rs\tar
get\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_311.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_312.rust-cgu.o" "C:\src\gstreamer
-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_313.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_314.rust-cgu.o" "C:\src\g
streamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_315.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_32.rust-cgu.o" "C:
\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_33.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_34.rust-cgu.o
" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_35.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_36.rust
-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_37.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_3
8.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.basic_tutorial_39.rust-cgu.o" "-o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.exe"
"C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_3-c92391b8f4a8977d.crate.allocator.rust-cgu.o" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\src\gstreamer-rs\target\debug\deps" "-L" "C:\Users\╨
Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-Wl,-Bstatic" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer-42aaac4580595741.rlib" "C:\src
\gstreamer-rs\target\debug\deps\libmuldiv-9cb8ac78ef809840.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_rational-1314b7679c44f2fc.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_integer
-e9ff83cf47d59612.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib-6e02d85ad644bdcf.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblazy_static-a7fb567af6e2471e.rlib" "C:\src\gstreamer-rs\targe
t\debug\deps\libgstreamer_sys-2eb1e0a7956b7e66.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgobject_sys-6eb035624d4bea05.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib_sys-8083f152669d7f9d
.rlib" "C:\src\gstreamer-rs\target\debug\deps\libbitflags-9dab0a5e2d986546.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblibc-abc2821618bd6362.rlib" "C:\src\gstreamer-rs\target\debug\deps\libn
um_traits-7af7d53b59bfdb48.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libtest-73f7d6b80ce30a71.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.r
ustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libterm-b7197353f0d23bc3.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustli
b\x86_64-pc-windows-gnu\lib\libgetopts-0032ec7e45822d03.rlib" "C:
\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-664906f071e10b12.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-
windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-93a68cce352090e9.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib
\libunwind-750823465b51b906.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-aefc98a8bfdeace4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\
.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc_system-ea86f92a508fe9a4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\l
ib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-edf403ccab33802f.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_unicode-fe35
6cfe779b55c4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librand-42aed390d8d0bbb0.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolcha
ins\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-1d04e47076dbb6c7.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\libcompiler_builtins-82cb3f0f911c9fba.rlib" "-Wl,-Bdynamic" "-l" "gstreamer-1.0" "-l" "gobject-2.0" "-l" "glib-2.0" "-l" "gobject-2.0" "-l" "kernel32" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv"
"-l" "shell32" "-Wl,-Bstatic" "-l" "gcc_eh" "-l" "pthread" "-Wl,-Bdynamic" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-wind
ows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"

= note: ld: cannot find -lgstreamer-1.0

      ld: cannot find -lgobject-2.0

      ld: cannot find -lglib-2.0

      ld: cannot find -lgobject-2.0

error
: aborting due to previous error

error:
Could not compile tutorials.
warning: build failed, waiting for other jobs to finish...
error: Could not compile tutorials.
warning: build failed, waiting for other jobs to finish...
error: Could not compile tutorials.
warning: build failed, waiting for other jobs to finish...

error
: linking with gcc failed: exit code: 1
|

= note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-w
indows-gnu\lib\crt2.o" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "-L" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nigh
tly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_80.rust-cgu.o" "C:\src\gstreamer-rs\target\de
bug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_81.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_810.rust-cgu.o" "C:\src\gstreamer-rs\tar
get\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_811.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_812.rust-cgu.o" "C:\src\gstreamer
-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_813.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_814.rust-cgu.o" "C:\src\g
streamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_815.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_82.rust-cgu.o" "C:
\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_83.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_84.rust-cgu.o
" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_85.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_86.rust
-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_87.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_8
8.rust-cgu.o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.basic_tutorial_89.rust-cgu.o" "-o" "C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.exe"
"C:\src\gstreamer-rs\target\debug\deps\basic_tutorial_8-7f8be9cd78872e48.crate.allocator.rust-cgu.o" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\src\gstreamer-rs\target\debug\deps" "-L" "C:\Users\╨
Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-Wl,-Bstatic" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer_audio-d5fed79cd5b51787.rlib" "C:
\src\gstreamer-rs\target\debug\deps\libgstreamer_audio_sys-b693390c0959e8ee.rlib" "C:\src\gstreamer-rs\target\debug\deps\libbyte_slice_cast-a36a3cc341111c16.rlib" "C:\src\gstreamer-rs\target\debug
\deps\libgstreamer_app-fae8444078960220.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer_app_sys-29f93d4720f64191.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gn
u\lib\rustlib\x86_64-pc-windows-gnu\lib\libtest-73f7d6b80ce30a71.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgetopts-0032e
c7e45822d03.rlib" "C:\src\gstreamer-rs\target\debug\deps\libarray_init-f0d2808eaa8f242e.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnodrop-09923439745926a7.rlib" "C:\src\gstreamer-rs\target\de
bug\deps\libgstreamer_base-7632114d73dbfbc6.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer_base_sys-5d66f9c8c32971d9.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer-42aaac458059
5741.rlib" "C:\src\gstreamer-rs\target\debug\deps\libmuldiv-9cb8ac78ef809840.rlib" "C:\src\gstreamer-rs\target\debug\deps\libnum_rational-1314b7679c44f2fc.rlib" "C:\src\gstreamer-rs\target\debug\
deps\libnum_integer-e9ff83cf47d59612.rlib" "C:\src\gstreamer-rs\
target\debug\deps\libnum_traits-7af7d53b59bfdb48.rlib" "C:\src\gstreamer-rs\target\debug\deps\libglib-6e02d85ad644bdcf.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgstreamer_sys-2eb1e0a7956b7e66
.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblazy_static-a7fb567af6e2471e.rlib" "C:\src\gstreamer-rs\target\debug\deps\libgobject_sys-6eb035624d4bea05.rlib" "C:\src\gstreamer-rs\target\debug\
deps\libglib_sys-8083f152669d7f9d.rlib" "C:\src\gstreamer-rs\target\debug\deps\libbitflags-9dab0a5e2d986546.rlib" "C:\src\gstreamer-rs\target\debug\deps\liblibc-abc2821618bd6362.rlib" "C:\Users\╨Ь╨
░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libterm-b7197353f0d23bc3.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu
\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-664906f071e10b12.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-93
a68cce352090e9.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libunwind-750823465b51b906.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\too
lchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-aefc98a8bfdeace4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-
pc-windows-gnu\lib\liballoc_system-ea86f92a508fe9a4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-edf403ccab33802f.rlib"
"C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_unicode-fe356cfe779b55c4.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly
-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librand-42aed390d8d0bbb0.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\
lib\libcore-1d04e47076dbb6c7.rlib" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcompiler_builtins-82cb3f0f911c9fba.rlib" "-Wl,-Bdynam
ic" "-l" "gstaudio-1.0" "-l" "gstapp-1.0" "-l" "gstbase-1.0" "-l" "gstreamer-1.0" "-l" "gobject-2.0" "-l" "glib-2.0" "-l" "gobject-2.0" "-l" "kernel32" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv" "-l" "shell32"
"-Wl,-Bstatic" "-l" "gcc_eh" "-l" "pthread" "-Wl,-Bdynamic" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\Users\╨Ь╨░╨║╤Б╨╕╨╝\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\ru
stlib\x86_64-pc-windows-gnu\lib\rsend.o"

= note: ld: cannot find -lgstaudio-1.0
ld: cannot find -lgstapp-1.0
ld: cannot find -lgstbase-1.0
ld: cannot find -lgstreamer-1.0
ld: cannot find -lgobject-2.0
ld: cannot find -lglib-2.0
ld: cannot find -lgobject-2.0

error
: aborting due to previous error

error:
Could not compile tutorials.

To learn more, run the command again with --verbose.

@madmaxio
Copy link
Author

madmaxio commented Nov 19, 2017

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Максим\AppData\Roaming
CASSANDRA_HOME=C:\Program Files\DataStax Community\apache-cassandra
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=MAXIM
ComSpec=C:\WINDOWS\system32\cmd.exe
DSCINSTALLDIR=C:\Program Files\DataStax Community
FP_NO_HOST_CHECK=NO
GSTREAMER_1_0_ROOT_X86_64=C:\gstreamer\1.0\x86_64
HOMEDRIVE=C:
HOMEPATH=\Users\Максим
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66
LOCALAPPDATA=C:\Users\Максим\AppData\Local
LOGONSERVER=\MAXIM
NUMBER_OF_PROCESSORS=4
OneDrive=C:\Users\Максим\OneDrive
OS=Windows_NT
Path=C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\Максим.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python2712;C:\Program Files (x86)\Skype\Phone;C:\Users\Максим.cargo\bin;C:\Users\Максим\AppData\Roaming\npm;C:\Users\Максим\AppData\Local\atom\bin;C:\Users\Максим\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\gstreamer\1.0\x86_64\bin;C:\pkg-config-lite-0.28-1\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PKG_CONFIG_PATH=C:\gstreamer\1.0\x86_64\lib\pkgconfig
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PRUNMGR=C:\Program Files\DataStax Community\utils\prunmgr.exe
PRUNSRV=C:\Program Files\DataStax Community\utils\prunsrv.exe
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\2BA01\AppData\Local\Temp
TMP=C:\Users\2BA0
1\AppData\Local\Temp
USERDOMAIN=maxim
USERDOMAIN_ROAMINGPROFILE=maxim
USERNAME=Максим
USERPROFILE=C:\Users\Максим
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
windir=C:\WINDOWS

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

And can you also give the output of "pkg-config --libs --cflags gstreamer-1.0"?

@madmaxio
Copy link
Author

-mms-bitfields -IC:/gstreamer/1.0/x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/x86_64/include/glib-2.0 -IC:/gstreamer/1.0/x86_64/lib/glib-2.0/include -LC:/gstreamer/1.0/x86_64/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl

@sdroege
Copy link
Owner

sdroege commented Nov 19, 2017

Ok, so the question is why those -L para,eters don't end up in the compiler, only the -l ones.

@madmaxio
Copy link
Author

By they way output of pkg-config --libs-only-L gstreamer-1.0 is

-LC:/gstreamer/1.0/x86_64/lib

I believe this is not a healthy thing

@sdroege
Copy link
Owner

sdroege commented Nov 20, 2017

If you set PKG_CONFIG_PATH to /c/gstreamer/1.0/x86_64/lib, it's better.

So I tried locally here, your error happens if you don't have pkg-config installed before you first ran cargo build. Is that possible? If so, cargo clean should solve that, followed by another cargo build --all. However here it then can't find glib-2.0 via pkg-config, while the same works outside cargo.

@sdroege
Copy link
Owner

sdroege commented Nov 20, 2017

Probably because this is not part of the release yet: rust-lang/pkg-config-rs@ea341cf

@sdroege
Copy link
Owner

sdroege commented Nov 20, 2017

Or not. I've reported a bug: rust-lang/pkg-config-rs#51

@madmaxio
Copy link
Author

Cargo clean followed by cargo build --all worked! That's awesome.

@sdroege
Copy link
Owner

sdroege commented Nov 20, 2017

Ah, lucky you :) It didn't work for me. Windows is such an unfriendly platform

@madmaxio
Copy link
Author

By the way, how to deal with the situation like this:

[dependencies]

gstreamer = "*"
gtk = { git = "https://github.com/gtk-rs/gtk", features = ["v3_10"] }

cargo build
error: Multiple packages link to native library gobject. A native library can be linked only once.

Package gobject-sys v0.4.0
... which is depended on by gstreamer-sys v0.2.1
... which is depended on by gstreamer v0.8.2

links to native library gobject.

Package gobject-sys v0.4.0 (https://github.com/gtk-rs/sys#b08fc0e1)
... which is depended on by pango-sys v0.4.0 (https://github.com/gtk-rs/sys#b08fc0e1)
... which is depended on by gtk-sys v0.4.0 (https://github.com/gtk-rs/sys#b08fc0e1)
... which is depended on by gtk v0.2.0 (https://github.com/gtk-rs/gtk#0313b78b)

And somehow examples with --features "gtksink" are compiled succesfully, how is this possible?

@sdroege
Copy link
Owner

sdroege commented Nov 21, 2017

That's a cargo / general Rust problem. You can only link to a native library once. In your specific case that means that if you use gstreamer from crates.io, you have to use gtk and related crates from crates.io. If you use gtk from GIT master, you also have to use gstreamer (and other glib related crates) from GIT master.

Otherwise gtk (from git master) will pull in gobject-sys (from git master), and gstreamer (from crates.io) will pull in gobject-sys (from crates.io), and then you have the native gobject library linked in twice.

@madmaxio
Copy link
Author

Got it, and another issue related to gtk-rs/gtk#593:

if I have my Path variable looking like this:

default

gstreamer works,but gtk init fail because of gtk-rs/gtk#593

if I have my Path like this

default

gtk works fine, and gstreamer does not. What would you recommend here?

@sdroege
Copy link
Owner

sdroege commented Nov 22, 2017

You're having two different versions of glib and other libraries then and will have to fix that up. DLL hell.

You likely need to recompile gtk against the gstreamer version or gstreamer against the gtk version. Easiest is probably to install gstreamer also via msys in your case

@sdroege
Copy link
Owner

sdroege commented Nov 26, 2017

Is anything still left to be done here?

@madmaxio
Copy link
Author

madmaxio commented Nov 27, 2017

No, closing it.

@sdroege
Copy link
Owner

sdroege commented Nov 27, 2017

Great, thanks for letting me know

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

2 participants