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 316085 - MinGW compilation: GetText related issues
MinGW compilation: GetText related issues
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Windows
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 316073
 
 
Reported: 2005-09-12 14:17 UTC by Michal Benes
Modified: 2005-10-21 16:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michal Benes 2005-09-12 14:17:43 UTC
I have some issues with gettext, it might be a problem with my version of this
library. Still, some weird things happen

1) In my config.h I have ended up
#undef ENABLE_NLS
#define GETTEXT_PACKAGE "gstreamer-0.9"
(NLS disabled GETTEXT enabled) this confuses the header gst/gst-i18n-lib.h
since this header then tries to redefine GETTEXT_PACKAGE macro. This ends with
error.

I think that my gsttext library is broken so I have decided to undefine
GETTEXT_PACKAGE macro in config.h

Still, I had two problems:

2) None of gstreamer opptions work unless I delete the line 
{NULL, NUL, POPT_ARG_INTL_DOMAIN, GETTEXT_PACKAGE, 0, NULL, NULL},
from gstreamer_options (function gst_init_get_popt_table, file gst/gst.c)

3) ngettext is undefined in gst-register
Comment 1 Michal Benes 2005-09-12 15:22:21 UTC
I have tried it once more and config.h parameters

#define ENABLE_NLS 1
#define GETTEXT_PACKAGE "gstreamer-0.9"

work too. So the only problem is with the combination

#undef ENABLE_NLS
#define GETTEXT_PACKAGE "gstreamer-0.9"

(these macros are probably meant to be both defined or undefined)

The problem with gettext in popt remains, but this is probably popt issue. It is
really a nightmare to compile popt for windows.
Comment 2 Michal Benes 2005-10-14 13:45:18 UTC
All these issues are fixed:

1) See CVS commit date: 2005-10-11 16:05:16 +0000;  author: thomasvs;  state:
Exp;  lines: +1 -1;  commitid: 1f94434be2904567;

2) popt dependency removed

3) gst-register removed

Thanks
Comment 3 Michal Benes 2005-10-14 13:47:01 UTC
Forget to close the bug...