ChinnaSuhas / ossbuild

Automatically exported from code.google.com/p/ossbuild
Other
0 stars 1 forks source link

How to develop & register Gstreamer pluging on Windows #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am trying to develop gstreamer on Windows. And the new plugin seems can not 
be registered (Can not be found via gst_registry_find_feature()), even I copy 
the plugin into plugin directory. So:

1. Does that mean my plugin creation is something wrong (seem not, for the code 
is the sample code (myelement) from gstreamer release)? If it is how to resolve 
it?

2. Does that mean its registration wrong? If it is, how to resolve it? Only 
copy is not enough?

Many thanks

Jimmy

Original issue reported on code.google.com by jcai2...@gmail.com on 28 Sep 2010 at 3:08

GoogleCodeExporter commented 9 years ago
Are you compiling it yourself from the repo. trunk or using the provided 
installers? It sounds like you're compiling it yourself since you mentioned the 
plugin directory.

You should delete your registry file (typically 
C:\Users\<Account>\.gstreamer-0.10\registry.i686.bin) and then use gst-inspect 
<plugin name> to see if gstreamer picked it up. If it didn't, then there's 
something else wrong. Double check that you're not crossing an installed 
gstreamer winbuilds w/ a locally built one. In that case, the env. var. 
GST_PLUGIN_PATH would be set and your local build would be looking in the wrong 
place.

Use test.bat in the <OSSBuild>/Tools/ directory to launch a command window with 
the correct env. vars. set and then delete your registry file, and run 
gst-inspect again. test.bat should setup the proper environment, overriding any 
system-wide configuration. I always test my new builds with it.

Original comment by david.g.hoyt on 28 Sep 2010 at 4:01

GoogleCodeExporter commented 9 years ago
1. I have NOT made full build on Windows, because my VC is ver. 8 while the 
code from SVN need Ver.9. So I setup my enviroment by installing 
"GStreamer-WinBuilds-GPL-x86.msi", "GStreamer-WinBuilds-SDK-GPL-x86.msi" and 
"ffmpeg".
2. I CAN compile & run gst-apps successfully which means the enviromant setting 
is correct
3. But when I try to build Gst plugin by (a) setting up empty VC2005 dll 
project and then (b) adding sample file (*.c and *.h), it can build 
successfully but cannot be found by gst-inspect even I copy it into install 
directory ".../Gstreamer/bin/". (The file is attached)
4. When I delete "registry.i686.bin", I can find that "gst-init()" can retrival 
all the .dll files in install directory, but my plugin can not be found 
correctly. I found this by debugging the "gst-inspect.c" code
5. Since I have no full build enviroment, it is quite difficult for me to debug 
into gst code. So where is my wrong? Can you help me?

Many thanks

Jimmy

Original comment by jcai2...@gmail.com on 29 Sep 2010 at 2:32

Attachments:

GoogleCodeExporter commented 9 years ago
I suppose I made a foolish mistake:) I should copy the plugin to 
".../Gstreamer/lib/gstreamer-0.10/" but not ".../Gstreamer/bin/"

Sorry for the bothering :)

Thanks

Jimmy

Original comment by jcai2...@gmail.com on 29 Sep 2010 at 5:12

GoogleCodeExporter commented 9 years ago
It's not a problem. (c:

Original comment by david.g.hoyt on 29 Sep 2010 at 5:54