-
Notifications
You must be signed in to change notification settings - Fork 63
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
undefined reference to gst_stream_type_get_type #68
Comments
From where did you install GStreamer and which version? This is indeed wrong though, StreamType should only be exposed if the v1_10 feature or higher is used. Your error suggests that you're using GStreamer 1.8? |
The above commit should fix that, unless there are actually other problems and this was just the first symbol it failed on. |
For testing this you can replace I'll include that fix in 0.10.1 in a few days though. |
Yes, I copied the exact pacman invocation from here, which installs a package called Ok, I swapped out the dependency for the Git version and then it compiles without errors. To run it, I had to copy a bunch of DLLs from Now I'm getting an |
Hm, or maybe it does. I have tried the different tutorial files and every |
It should install more than one package. If you check the commandline, there are 6 packages: mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gst-plugins-ugly mingw-w64-x86_64-gst-libav You then only installed GStreamer core, which comes with only the absolute basics, and e.g. not with playbin. |
Sorry I was imprecise. It installs a whole bunch of packages, I just mentioned the gstreamer package because you asked for the version number. The list of all installed packages is:
|
Thanks. What's the output of gst-inspect-1.0? |
It's long. :) Output of gst-inspect-1.0.exe
Note that I ran this inside the MSYS2 MinGW 64 shell. I don't know if everything that is available here is also available to the Rust program. In particular I suspect that my Rust program might not only need |
You need to make sure that the PATH contains the directory where all those DLLs are located, which is always required by Windows. DLLs are only searched in PATH and the current directory. That you had to copy the DLL suggests that this is not the case yet. GStreamer is searching for its plugins relative to the libgstreamer-1.0.dll by default (you can override that with the GST_PLUGIN_PATH environment variable), so if you copied only that it wouldn't find them anymore. The correct solution would be to keep the right directory structure or even better just set the PATH accordingly. |
That was the solution. I deleted the copied files and instead added |
OK, let me know if you run into other problems and please send a PR if the docs were wrong or confusing :) |
Also please let me know what the problem with srtp is :) It's not used by the tutorials or examples either. |
While thinking about how to improve the documentation I wondered: Is there a debug mode or some other way to, instead of About the srtp: It seems |
On my phone so only about the first part, debug mode. Set GST_DEBUG=6 in the environment for example, and you'll get a huge amount of debug output. See https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html for more details |
What I did:
rustup-init.exe
and choosex86_64-pc-windows-gnu
as default triple.cargo new --bin test
gstreamer = "0.10.0"
to my Cargo.toml dependenciesNow, because I got an error
ld: cannot find -lgstreamer-1.0
(and the same forgobject-2.0
,glib-2.0
andgobject-2.0
) I tried setting environment variables:After I set
LIBRARY_PATH
, the error changed to:The text was updated successfully, but these errors were encountered: