Setting Up VS to build GST apps on Windows

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting Up VS to build GST apps on Windows

Wes Miller
Administrator
Hi All,

I installed the OSSBuild gstreamer MSIs for GSTreamer and GStreamer-dev on my XP.  I created a VS project and find that i have to have there include directories added (s0 far)

"c:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\gstreamer-0.10\gst"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\glib-2.0"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\gstreamer-0.10"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include\libxml2"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\include"

But I still can't get the linking to work.

Error 1 error LNK2019: unresolved external symbol _g_main_loop_new referenced in function "public: __thiscall CIPComDLL::CIPComDLL(void)" (??0CIPComDLL@@QAE@XZ) IPComDLL.obj IPComDLL

Error 2 error LNK2019: unresolved external symbol _gst_init referenced in function "public: __thiscall CIPComDLL::CIPComDLL(void)" (??0CIPComDLL@@QAE@XZ) IPComDLL.obj IPComDLL

I tried adding these as link library locations:

"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\lib"
"C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk"


So, can anyone tell me what paths to use for Additional Library Directories?

Are there any other items I need to all to get my program to compile?

Thanks,

Wesley


Reply | Threaded
Open this post in threaded view
|

Re: Setting Up VS to build GST apps on Windows

Thomas Flüeli
> So, can anyone tell me what paths to use for Additional Library Directories?
>
> Are there any other items I need to all to get my program to compile?

The Additional Library Directories alone are not enough, you have to
add the library files as well. Try to add the following to Additional
Dependencies (that's in Linker -> Input):

gstreamer-0.10.lib
glib-2.0.lib
gobject-2.0.lib

By the way, "C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\lib"
should be sufficient for Additional Library Directories. And I'm using

"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"

as include path.

HTH

Thomas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel