GNOME Bugzilla – Bug 686272
Build issues on Windows, crash in Release build
Last modified: 2012-12-14 10:30:43 UTC
I've tried to compile qt-gstreamer-0.10.2 on Windows 7 using the instructions found on the wiki (http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows) I'm using Visual Studio 2010 and the GStreamer SDK. I ran into some issues while building: 1. GL_CLAMP_TO_EDGE used in openglsurfacepainter.cpp is not defined anywhere 2. "setenv" used in the qmlplayer example (main.cpp) is not defined on windows When commenting out these, it builds in Debug mode. The examples work fine, also my own application runs OK. When compiling in Release, it builds, but the example applications all crash when I try to run them. Also my own application crashes. I'm not sure if I'm the only one with this issue? This is a showstopper for deploying my app on Windows (works fine on Linux).
(In reply to comment #0) > I've tried to compile qt-gstreamer-0.10.2 on Windows 7 using the instructions > found on the wiki > (http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows) > I'm using Visual Studio 2010 and the GStreamer SDK. > > I ran into some issues while building: > 1. GL_CLAMP_TO_EDGE used in openglsurfacepainter.cpp is not defined anywhere > 2. "setenv" used in the qmlplayer example (main.cpp) is not defined on windows Fixed. > When commenting out these, it builds in Debug mode. The examples work fine, > also my own application runs OK. > > When compiling in Release, it builds, but the example applications all crash > when I try to run them. Also my own application crashes. > > I'm not sure if I'm the only one with this issue? This is a showstopper for > deploying my app on Windows (works fine on Linux). This is probably a problem with your environment. There are many people using qt-gstreamer successfully on windows. I am not considering this a qt-gstreamer bug, so I will close this ticket now that the compilation issue is fixed.
On Visual Studio, make sure that you use the property sheets included in the GStreamer SDK as explained in "Remove the dependency with the Visual Studio runtime" here: http://docs.gstreamer.com/display/GstSDK/Installing+on+Windows Apart from linking to the same CRT used by the DLL's built with GStreamer, it will also set the linker option OptimizeReferences=False, which will fix your issue in the Release build, see: http://cgit.freedesktop.org/gstreamer-sdk/cerbero/tree/data/vs/msvc/common.props#n15
For more context, also refer too: http://sourceware.org/bugzilla/show_bug.cgi?id=12633