babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared
This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared | ChristophK | 19 Mar 15:45 |
babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared | Michael Henning | 19 Mar 19:22 |
babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared | ChristophK | 20 Mar 21:37 |
babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared
Hello,
I'm trying to compile babl-0.1.10 on windows using mingw and get the following error:
babl-palette.c:93:23: error: 'INT_MAX' undeclared
--Full Output--
$ mingw32-make
C:/MinGW/bin/mingw32-make all-recursive
mingw32-make[1]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10'
Making all in babl
mingw32-make[2]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl'
Making all in base
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl/base'
mingw32-make[3]: Nothing to be done for `all'.
mingw32-make[3]: Leaving directory
`k:/daten/programmierung/libraries/babl-0.1.1 0/babl/base'
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl'
CC babl-palette.lo
babl-palette.c: In function 'babl_palette_lookup':
babl-palette.c:93:23: error: 'INT_MAX' undeclared (first use in this
function) babl-palette.c:93:23: note: each undeclared identifier is
reported only once for each function it appears in
mingw32-make[3]: *** [babl-palette.lo] Error 1
----
As far as I can see, INT_MAX is not being declared. I didn't find any MAXINT either:
----
$ grep -R INT_MAX *
ChangeLog: palette: use INT_MAX instead of MAXINT
babl/babl-palette.c: int best_diff = INT_MAX;
$ grep -R MAXINT * ChangeLog: palette: use INT_MAX instead of MAXINT
$ ----
Please help
Christoph
babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared
As a general warning, compiling on plain mingw is not supported for babl/gegl/gimp. Use mingw64 instead; if it doesn't fix this, it will at least fix several other bugs.
Also note that because gegl and babl are still somewhat buggy, there have been a ton of bugfixes in the git versions. I would try compiling the latest git version too, and see if that fixes the issue.
Those are just general pointers. If you try that and still get issues, then post back here for more help.
-- drawoc
On Tue, Mar 19, 2013 at 11:45 AM, ChristophK wrote:
Hello,
I'm trying to compile babl-0.1.10 on windows using mingw and get the following error:
babl-palette.c:93:23: error: 'INT_MAX' undeclared
--Full Output-- $ mingw32-make
C:/MinGW/bin/mingw32-make all-recursive mingw32-make[1]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10' Making all in babl
mingw32-make[2]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl' Making all in base
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl/base' mingw32-make[3]: Nothing to be done for `all'. mingw32-make[3]: Leaving directory
`k:/daten/programmierung/libraries/babl-0.1.1 0/babl/base' mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl' CC babl-palette.lo
babl-palette.c: In function 'babl_palette_lookup': babl-palette.c:93:23: error: 'INT_MAX' undeclared (first use in this function) babl-palette.c:93:23: note: each undeclared identifier is reported only once for each function it appears in mingw32-make[3]: *** [babl-palette.lo] Error 1 ----As far as I can see, INT_MAX is not being declared. I didn't find any MAXINT either:
----
$ grep -R INT_MAX *
ChangeLog: palette: use INT_MAX instead of MAXINT babl/babl-palette.c: int best_diff = INT_MAX;$ grep -R MAXINT * ChangeLog: palette: use INT_MAX instead of MAXINT
$ ----
Please help
Christoph
_______________________________________________ gegl-developer-list mailing list
gegl-developer-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gegl-developer-list
babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared
Hi Michael,
there was a line missing in babl-palette.c:
#include
It was added 3 days after the release of version 0.1.10, so I consider
version 0.1.10 broken.
After adding the missing line, I was able to compile babl with plain mingw.
I was also able to compile the current git version of babl with plain mingw.
Regards
Christoph
On Tue, 19 Mar 2013 15:22:48 -0400 Michael Henning wrote:
As a general warning, compiling on plain mingw is not supported for babl/gegl/gimp. Use mingw64 instead; if it doesn't fix this, it will at least fix several other bugs.
Also note that because gegl and babl are still somewhat buggy, there have been a ton of bugfixes in the git versions. I would try compiling the latest git version too, and see if that fixes the issue.
Those are just general pointers. If you try that and still get issues, then post back here for more help.
-- drawoc
On Tue, Mar 19, 2013 at 11:45 AM, ChristophK wrote:
Hello,
I'm trying to compile babl-0.1.10 on windows using mingw and get the following error:
babl-palette.c:93:23: error: 'INT_MAX' undeclared
--Full Output-- $ mingw32-make
C:/MinGW/bin/mingw32-make all-recursive mingw32-make[1]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10' Making all in babl
mingw32-make[2]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl' Making all in base
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl/base' mingw32-make[3]: Nothing to be done for `all'. mingw32-make[3]: Leaving directory
`k:/daten/programmierung/libraries/babl-0.1.1 0/babl/base' mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl' CC babl-palette.lo
babl-palette.c: In function 'babl_palette_lookup': babl-palette.c:93:23: error: 'INT_MAX' undeclared (first use in this function) babl-palette.c:93:23: note: each undeclared identifier is reported only once for each function it appears in mingw32-make[3]: *** [babl-palette.lo] Error 1 ----As far as I can see, INT_MAX is not being declared. I didn't find any MAXINT either:
----
$ grep -R INT_MAX *
ChangeLog: palette: use INT_MAX instead of MAXINT babl/babl-palette.c: int best_diff = INT_MAX;$ grep -R MAXINT * ChangeLog: palette: use INT_MAX instead of MAXINT
$ ----
Please help
Christoph
_______________________________________________ gegl-developer-list mailing list
gegl-developer-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gegl-developer-list