Log in

View Full Version : Using GStreamer in Windows projects


JonE
21st August 2010, 19:33
I thought I'd take a look at using GStreamer under windows (Ossbuild (http://code.google.com/p/ossbuild/)). Unfortunately there is little in the way of help - the sdk does not include any sample projects to get you up and running.

This link (http://felipec.wordpress.com/2008/01/19/gstreamer-hello-world/) gives a useful starter program but it is an example for Linux and it is the project setup that is now the issue.

After trial and error, I've worked out the four include dirs:
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\gstreamer-0.10"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\glib-2.0"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\libxml2\"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\"

After configuring the project to use multibyte chars instead of unicode, this gets me to the stage where the 'c' code compiles but won't link, leaving 9 errors

1>MfcTest.obj : error LNK2019: unresolved external symbol _g_error_free referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_free referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_main_loop_quit referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_log referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_main_loop_run referenced in function "void __cdecl play_uri(char const *)" (?play_uri@@YAXPBD@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_object_set referenced in function "void __cdecl play_uri(char const *)" (?play_uri@@YAXPBD@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_type_check_instance_cast referenced in function "void __cdecl play_uri(char const *)" (?play_uri@@YAXPBD@Z)
1>MfcTest.obj : error LNK2019: unresolved external symbol _g_main_loop_new referenced in function "void __cdecl play_uri(char const *)" (?play_uri@@YAXPBD@Z)


(if I remove "gstreamer-0.10.lib" I get another 10 errors so it is definitely finding this main lib).

There are so many other lib files I'm never gonna find the right ones, so can anybody help ?

TTFN,
Jon

tin3tin
28th August 2010, 23:28
http://www.gstreamer-winbuild.ylatuya.es/doku.php
https://forja.rediris.es/forum/forum.php?forum_id=1624