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 325653 - build errors compiling audioresample on win32(vs7)
build errors compiling audioresample on win32(vs7)
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Windows
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-03 18:38 UTC by Sergey Scobich
Modified: 2006-04-11 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sergey Scobich 2006-01-03 18:38:16 UTC
rint() function is not defined in windows headers. Unresolved external error.

1. debug.h:

Microsoft compiler doesn't like ... in macroses and doesn't know what is __VA_ARGS__. 

#define RESAMPLE_ERROR(...) GST_ERROR(__VA_ARGS__)
#define RESAMPLE_WARNING(...) GST_WARNING(__VA_ARGS__)
#define RESAMPLE_INFO(...) GST_INFO(__VA_ARGS__)
#define RESAMPLE_DEBUG(...) GST_DEBUG(__VA_ARGS__)
#define RESAMPLE_LOG(...) GST_LOG(__VA_ARGS__)

2. debug.c:
a) please replace 
#include <debug.h> 
with 
#include "debug.h"

b) static int resample_debug_level = RESAMPLE_LEVEL_ERROR;
RESAMPLE_LEVEL_ERROR - is undeclared identifier (it is hidden by #if 0 macro in debug.h)


c) void
resample_debug_set_level (int level)
{
  resample_debug_level = level;
}
sintax error - because resample_debug_set_level is redefined as do { } while (0) in debug.h

3. resample.c
liboil/liboil.h is referenced here but not used.
Comment 1 Tim-Philipp Müller 2006-01-10 12:01:56 UTC
(1) is a similar problem to bug #320765 btw.

Comment 2 Tim-Philipp Müller 2006-04-11 13:56:36 UTC
If I understand correctly, this has been resolved now. Please re-open if there are still issues.

2006-04-09  Sebastien Moutte  <sebastien@moutte.net>

        * gst/audioresample/debug.h:
          replace debug macros with variable number of parameters
          by a simple alias to gstreamer standard debug macros
         (#define RESAMPLE_ERROR GST_ERROR, __VA_ARGS__ is not
          supported by MSVC 6.0 and 7.1)
        * gst/audioresample/resample.h:
          define M_PI and rint for WIN32
        * win32/common/libgstaudio.def:
        * win32/common/libgstriff.def:
        * win32/common/libgsttag.def:
        * win32/common/libgstvideo.def:
          add new exported functions
        * win32/vs6:
          update project files