librasterlite2 - error compiling on Mac

32 views
Skip to first unread message

carlob

unread,
Jul 14, 2016, 7:46:50 AM7/14/16
to SpatiaLite Users
Ciao,
I'm trying to install librasterlite2 with brew.
I made a new formula, starting from librasterlite version 1, I added the new libraries that are requested by Configure; it starts compiling and stops on this error, complaining:

==> ./configure --prefix=/usr/local/Cellar/librasterlite2/1.0.0-rc0_2

==> make install

Last 15 lines from /Users/io/Library/Logs/Homebrew/librasterlite2/02.make:

                            print_gif_error (GifFile->Error);

                                             ~~~~~~~  ^

rl2gif.c:753:35: error: no member named 'Error' in 'struct GifFileType'

                      print_gif_error (GifFile->Error);

                                       ~~~~~~~  ^

rl2gif.c:765:34: error: no member named 'Error' in 'struct GifFileType'

                            print_gif_error (GifFile->Error);

                                             ~~~~~~~  ^

rl2gif.c:791:30: error: no member named 'Error' in 'struct GifFileType'

          print_gif_error (GifFile->Error);

                           ~~~~~~~  ^

9 errors generated.


How should I patch rl2gif.c, if that is necessary, any cue about what's happening otherwise?


Cheers

c


mj10777

unread,
Jul 14, 2016, 8:01:19 AM7/14/16
to SpatiaLite Users


On Thursday, 14 July 2016 13:46:50 UTC+2, carlob wrote:
Ciao,
I'm trying to install librasterlite2 with brew.
I made a new formula, starting from librasterlite version 1, I added the new libraries that are requested by Configure; it starts compiling and stops on this error, complaining:

==> ./configure --prefix=/usr/local/Cellar/librasterlite2/1.0.0-rc0_2

==> make install

Last 15 lines from /Users/io/Library/Logs/Homebrew/librasterlite2/02.make:

                            print_gif_error (GifFile->Error);

                                             ~~~~~~~  ^

this looks has if the libgif is not being found 
#include <gif_lib.h>

rl2gif.c:753:35: error: no member named 'Error' in 'struct GifFileType'

                      print_gif_error (GifFile->Error);

                                       ~~~~~~~  ^

rl2gif.c:765:34: error: no member named 'Error' in 'struct GifFileType'

                            print_gif_error (GifFile->Error);

                                             ~~~~~~~  ^

rl2gif.c:791:30: error: no member named 'Error' in 'struct GifFileType'

          print_gif_error (GifFile->Error);

                           ~~~~~~~  ^

9 errors generated.


How should I patch rl2gif.c, if that is necessary, any cue about what's happening otherwise?

see above (missing libgif)

Also you seem to be using the alpha version (1.0.0-rc0)

- where in the 1 year a lot was changed

Mark
 


Cheers

c


carlob

unread,
Jul 14, 2016, 4:25:02 PM7/14/16
to SpatiaLite Users
Thank you very much, Mark.
I tried with the newer source, I added all the dependencies. At least all the dependencies I could find, as it seems one of the dependencies, CharLS v. 2 asks for c++14 which seems not available for my machine, if I stick to brew (don't bother funny mac OS things...). CharLS v. 1 could be sufficient and was easy to build, but it missed an include (interface.h). So everything seems more involved than I expectes.
Maybe tomorrow it will be better, after paying taxes...
c
Reply all
Reply to author
Forward
0 new messages