GNOME Bugzilla – Bug 550944
Scons builder for libgstreamer
Last modified: 2011-05-23 08:29:14 UTC
I just write a SCons builder for core libgstreamer. I test it under windows, it works fine. This is my first time to use SCons to write builder, namely, I am not familiar with SCons. So if you see something wrong in that, just fix it or write a comment, thanks. Scons is cool, but not good enough to handle some specific detail of platform, I do my best to avoid using os and compiler depended feature. If you'd like to run SCons under other os. It should be easy. How to build gstreamer under windows: To run scons, all you need is python and scons module, you can download them from website. You should install dependencies before you build gstreamer. Build every libraries by manual under windows would be painful job, fortunately, you can find some libraries in Songbird project's dependencies svn. To build libgstreamer, check out gstreamer. And then, unzip my scons zip file and overwrite gstreamer directory. Modify build.bat's include and lib path as you need. You can also use command line to set up LIB and INCLUDE environment variable, rather than use "build.bat". Once you set up everything, type "build"(use build.bat), or "scons install"(set up environment by manual), everything should be done. If you need more option, just type "scope -H" to see build options. Victor Lin.
Created attachment 118077 [details] scons files
Created attachment 118079 [details] build tools part1
Created attachment 118080 [details] build tools part2
Created attachment 118081 [details] build tools part3 These files should be unzip to gstreamer directory, otherwise you have to set BUILD_TOOLS option.
Why do you want to add another build system to GStreamer? What does this solve? There already is an autoconf/automake based build system and Visual Studio project files and there are binaries for Windows available too nowadays from winbuild or ossbuilds or something.
Wow, that was long long time ago. I even forgot why I wrote that. But all I remember is - it was very very very difficult to build GStreamer under Windows. I think that's why I need to use another build system to build GStreamer. I also recall that GStreamer needs Visual Studio (not the Visual Studio Express, it appears some features of Visual Stuiod are used to build, and they didn't appear in Visual Studio Express) to build under Windows, it's not free, not even cheap, not affordable for students like me. Also, with VS build system, it's not possible to use mingw as compiler. I'm not sure is my recall correct and how's Windows building system going now. Another reason I wrote it with SCons, might be that I felt autoconf/automake really sucks, they are not portable (to Windows), difficult to understand and difficult to write, to debug. Personally, I really hate to solve problem introduced by autoconf/automake, they just like a crap. Anyway, I'm not using GStream for now. And I have no idea do my SCons build scripts still work now.
Ok, let's close this then. People are building GStreamer on Windows nowadays without too many problems it seems and it's also possible with completely free tools (msys/mingw). autotools are really not great but they work and still seem to be the best solution out there, scons has lots of other problems for example :)