Re: Fox Tool kit installing issue

Enno Rehling <[email protected]> Fri, 22 Sep 2023 08:22:09 +0200
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
Are you sure you have the correct version of libpng and fox? Your 
directory name says fox-1.6.8, that's far from the latest release.

Rather than build it yourself, have you considered installing the Ubuntu 
libfox-1.6-dev package?

Enno.

On 22-Sep-23 05:11, Soubheek Nath wrote:
> I am attempting to install the fox tool kit on my Ubuntu 23.04 operating 
> system. However, I encountered some errors after building it. I also 
> attempted to install libpng, but encountered the same problems.
> 
> fxpngio.cpp:78:18: error: invalid use of incomplete type 'png_struct' 
> {aka 'struct png_struct_def'}
>          78 | longjmp(png_ptr->jmpbuf,1);                           // 
> Bail out
>               |                  ^~
> In file included from fxpngio.cpp:29:
> /usr/include/png.h:439:16: note: forward declaration of 'png_struct' 
> {aka 'struct png_struct_def'}
> 
>          439 | typedef struct png_struct_def png_struct;
>                 |                ^~~~~~~~~~~~~~
> In file included from /usr/include/pngconf.h:51,
>                             from /usr/include/png.h:335:
> fxpngio.cpp: In function 'bool FX::fxloadPNG(FXStream&, FXColor*&, 
> FXint&, FXint&)':
> fxpngio.cpp:121:20: error: invalid use of incomplete type 'png_struct' 
> {aka 'struct png_struct_def'}
> 
>          121 | if(setjmp(png_ptr->jmpbuf)){
>                  |                    ^~
> 
> /usr/include/png.h:439:16: note: forward declaration of 'png_struct' 
> {aka 'struct png_struct_def'}
>          439 | typedef struct png_struct_def png_struct;
>                 |                ^~~~~~~~~~~~~~
> fxpngio.cpp: In function 'bool FX::fxsavePNG(FXStream&, const FXColor*, 
> FXint, FXint)':
> fxpngio.cpp:234:20: error: invalid use of incomplete type 'png_struct' 
> {aka 'struct png_struct_def'}
> 
>          234 | if(setjmp(png_ptr->jmpbuf)){
>                 |                    ^~
> /usr/include/png.h:439:16: note: forward declaration of 'png_struct' 
> {aka 'struct png_struct_def'}
>          439 | typedef struct png_struct_def png_struct;
>                 |                ^~~~~~~~~~~~~~
> make[1]: *** [Makefile:745: fxpngio.lo] Error 1
> make[1]: Leaving directory '/home/sn/temp/fox-1.6.8/src'
> make: *** [Makefile:203: install-recursive] Error 1
> 


_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users