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

Unity project does not work & problems with the VS project #44

Closed
egemenertugrul opened this issue Oct 23, 2022 · 1 comment
Closed

Comments

@egemenertugrul
Copy link

egemenertugrul commented Oct 23, 2022

First off, thank you for developing this plugin!
I'm using Unity 2021.3.4f on Windows 10 x64 machine.
Installed Mingw 1.20.1 version of gstreamer (both devel_x86_64 and x86_64, complete) through here.

Installed gstreamer here: C:\gstreamer\1.0\mingw_x86_64\

Added
GST_SDK_PATH=C:\gstreamer\1.0\mingw_x86_64\ (user)
and
C:\gstreamer\1.0\mingw_x86_64\bin to Path (system)
environment variables.

Testing
I tried running the Unity test project, got:
DllNotFoundException: GStreamerUnityPlugin assembly:<unknown assembly> type:<unknown type> member:(null) GStreamerCore.Ref () (at Assets/GStreamerUnity/Scripts/GStreamerCore.cs:63) GstBaseTexture.Initialize () (at Assets/GStreamerUnity/Scripts/GstBaseTexture.cs:88) BaseVideoPlayer.Start () (at Assets/GStreamerUnity/Components/BaseVideoPlayer.cs:68)

Building
I tried rebuilding (Release, x64) the project using Visual Studio Community 2019 v142, and got the following errors (missing CMyUDPSrc.h, etc.):
image

I changed absolutely nothing - this is what I got after cloning the latest commit on the master branch.

Any ideas?
PS: I also noticed that VS Runtime 2010 link on README no longer works, is it still necessary to install it?
It appears I already have Microsoft Visual C++ x64 and x86 Redistributables:

  • 2010 v10.0.40219
  • 2013 v12.0.40664
@egemenertugrul egemenertugrul changed the title Unity project does not work & problems with the .sln file Unity project does not work & problems with the VS project Oct 23, 2022
@egemenertugrul
Copy link
Author

UPDATE: After reading #8 and #13, I realized that MSVC was what I needed, not MinGW, I did a clean reinstall, changed the paths of the environment variables, and restarted the PC. This solved the problem and allowed me to run the Unity test scenes.

However, the problems with building from the source still persist. This is regarding #42.

All in all, I think the VS .sln and README urgently need some tidying up.

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

1 participant