GNOME Bugzilla – Bug 572315
Compiling camerabin on Windows with Visual Studio
Last modified: 2009-02-22 17:42:35 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
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.