Re: Fox Tool kit installing issue

Soubheek Nath <[email protected]> Fri, 22 Sep 2023 15:36:24 +0530
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
Hi, Enno, Thank you for replying.

Yes, sudo apt install libfox-1.6-dev installs correctly.

Here's the output

Suggested packages:
   libfox-1.6-doc
The following NEW packages will be installed:
   libfox-1.6-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 1,211 kB of archives.
After this operation, 8,742 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu lunar/universe amd64 
libfox-1.6-dev amd64 1.6.57-1build2 [1,211 kB]
Fetched 1,211 kB in 1s (1,355 kB/s)
Selecting previously unselected package libfox-1.6-dev.
(Reading database ... 627787 files and directories currently installed.)
Preparing to unpack .../libfox-1.6-dev_1.6.57-1build2_amd64.deb ...
Unpacking libfox-1.6-dev (1.6.57-1build2) ...
Setting up libfox-1.6-dev (1.6.57-1build2) ...
update-alternatives: using /usr/bin/fox-config-1.6 to provide 
/usr/bin/fox-config (fox-config) in auto mode
update-alternatives: using /usr/bin/reswrap-1.6 to provide 
/usr/bin/reswrap (reswrap) in auto mode
Processing triggers for man-db (2.11.2-1) ...

On 22/09/23 11:52, Enno Rehling wrote:
> 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

-- 
Soubheek Nath
Fifth Estate
[email protected]



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