After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686272 - Build issues on Windows, crash in Release build
Build issues on Windows, crash in Release build
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: qt-gstreamer
0.10.2
Other Windows
: Normal normal
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-17 08:29 UTC by Ola Røer Thorsen
Modified: 2012-12-14 10:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ola Røer Thorsen 2012-10-17 08:29:03 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).
Comment 1 George Kiagiadakis 2012-12-06 09:56:06 UTC
(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.
Comment 2 Andoni Morales 2012-12-14 10:28:14 UTC
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
Comment 3 Andoni Morales 2012-12-14 10:30:43 UTC
For more context, also refer too:
http://sourceware.org/bugzilla/show_bug.cgi?id=12633