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 572315 - Compiling camerabin on Windows with Visual Studio
Compiling camerabin on Windows with Visual Studio
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Windows
: Normal normal
: 0.10.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-18 19:34 UTC by Andoni Morales
Modified: 2009-02-22 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andoni Morales 2009-02-18 19:34:08 UTC
In order to compile the camerabin plugin in Windows with the MSVC toolchain 2 changes are required.

In file camerabingeneral.h (line 24) replace:
#include <sys/time.h>
#include <time.h>

with:
#ifdef HAVE_SYS_TIME_H
	#include <sys/time.h>
#endif
#include <time.h>

In file gstcamerabin.c add:
#ifdef WIN32
	#define strcasecmp _stricmp
#endif
Comment 1 Sebastian Dröge (slomo) 2009-02-22 17:42:35 UTC
commit 7992233522f6fe60c54cbdaa7f7e8ea9ce9fb398
Author: Andoni Morales <ylatuya@gmail.com>
Date:   Sun Feb 22 18:41:08 2009 +0100

    camerabin: Fix compilation on Windows with Visual Studio
    
    Windows doesn't have strcasecmp so we should use
    g_ascii_strcasecmp here instead.
    
    Also Windows doesn't have sys/time.h so we first
    need to check if it actually exists and if not
    we should not include it.
    
    Fixes bug #572315.