[gst-devel] gstreamer ossbuild BETA2 misssing pieces

Andoni Morales ylatuya at gmail.com
Fri Apr 9 22:03:02 CEST 2010


2010/4/9 Kulecz, Walter (JSC-SK)[WYLE INTEG. SCI. & ENG.]
<walter.kulecz-1 at nasa.gov>:
>>Developing on Windows with mingw/msys is not straightforward ;)
> Seems it would be if the gstreamer tree were setup correctly.
>
>
>> I wouldn't trust pkg-config on Windows. As you say, iconv.h is
>>installed in c:/gstreamer/include which is not listed by pkg-config,
>>so consider adding '-lc:/gstreamer/include' to solve it. You should
>>also change '-Lc:/gstreamer/lib' '-Lc:/gstreamer/bin' for since on
>>windows .la files are not distributed  and you can link against the binaries.
>
> Adding -Ic:/gstreamer/include didn't change anything, copying all the *.h file in c:\gstreamer\include to C:\gstreamer\include\gstreamer-0.10 allowed the HelloGstreamer.c sample program to compile.  When I ran it (all on W2K) I got (hitting the spacebar to dismiss every WS2_32.dll error):
Adding -Ic:/gstreamer/include must work, it's the way to tell the
compiler to look for includes  file in this folder (maybe you typed
'l' instead 'I' or I did a typo). Copying all the .h files to
C:\gstreamer\include\gstreamer-0.10 worked because
-Ic:/gstreamer/include/gstreamer.0-10 adds this path to the include
path.
>
> $ HelloGstreamer test.ogg
> ** (HelloGstreamer.exe:1884): WARNING **: Failed to load plugin 'c:\gstreamer\lib\gstreamer-0.10\libgstasfdemux.dll': `c:\gstreame
> r\lib\gstreamer-0.10\libgstasfdemux.dll': The specified procedure could not be found.
> ** (HelloGstreamer.exe:1884): WARNING **: Failed to load plugin 'c:\gstreamer\lib\gstreamer-0.10\libgstgio.dll': `c:\gstreamer\lib
> (rest of these warnings from dismising the WS2_32.dll error dialog deleted)
> Now playing: test.ogg
> Running...
> Dynamic pad created, linking demuxer/decoder
> End of stream
> Returned, stopping playback
> Deleting pipeline
>
> And the short test.ogg audio file seemed to play fine.   Also, if I dismiss all the WS2_32.dll error dialogs, eventually the msys command ::  gst-launch-0.10 videotestsrc ! dsvideosink does play as expected.
>
>
>>The binaries and the developers package are different things. The
>>download is called "GStreamer WinBuild 0.10.5 *Developers Package*",
>>and has the '-dev' suffix, which clrealy states the purpose of the installer.
>>
> I know, I've installed both the 0.10.5 packages on W2K and both the BETA2 on XP.
> Neigher work right.
>
>
>>Many developers have been able to use successfully the dshow capture
>>wrapper on windows.
> If I get a capture device working on my XP notebook, a sample gst-launch command would be helpful, as gst-launch from the BETA2 install on XP seems to work.  Too bad I need to start from zero again with the include file spaghetti :(    But my motivation is minor until I get a Directshow video capture device working there.  Its easy on my W2K box as its got PCI slots and I've spares of the cards I use on Linux.
>
>
>>If you know how to setup properly the compiler flags there is no need
>>for that. the msys zip has nothing to do with GStreamer and it's a
>>helper tool we use to compile the deps, you don't it at all, unless,
>>as I said before, you know what you are doing and the pros and cons of
>>using msys/mingw.
>
> I'm not clairvoyant, if the documentation were decent I'd have a clue as to what the properly setup compiler flags are supposed to be.  Pkg-config is supposed to be the way  to "just use it" without needing to know where the developers put things.  But if its broke, the whole scheme breaks down and either gstreamer is just given up on as too much trouble, or you get threads like this on the mailing lists.

pkg-config is working as expected, but since the headers are not a in
the standard path, like /usr/include, you need to add
c:\gstreamer\include manually using the proper option. The
documentation is there and very decent I'd say, but you were not
looking at the right place:
http://gcc.gnu.org/onlinedocs/gcc-4.4.3/gcc/Directory-Options.html#Directory-Options
>
> The obvious advantage of msys/mingw is I could (once I copied the *.h files to where the broken Win32 pkg-config could still find them) build the sample program with the same command on Linux and Windows::   gcc HelloGstreamer.c -o HelloGstreamer `pkg-config --cflags --libs gstreamer-0.10`
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es




More information about the gstreamer-devel mailing list