Re: can't install xfig 3.2.4



Paminu wrote:

> I have downloaded xfig 3.2.4.full.tar.gz from:
> http://xfig.org/art2.html
>
> I have then tried to type "make" in the extracted dir but I get this error:
> mos@ubuntu:~/apps/xfig.3.2.4.full/xfig.3.2.4$ make
<snip>
> In file included from d_text.c:26:
> u_fonts.h:35: error: array type has incomplete element type
> u_fonts.h:35: error: array type has incomplete element type
> u_fonts.h:36: error: array type has incomplete element type
> u_fonts.h:37: error: array type has incomplete element type
> make: *** [d_text.o] Error 1
> mos@ubuntu:~/apps/xfig.3.2.4.full/xfig.3.2.4$
>
> Any ideas on what is wrong and how to fix it??

1) Edit file "u_fonts.h".
Line numbers 35 - 37,

Replace
extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
extern struct _fstruct ps_fontinfo[];
extern struct _fstruct latex_fontinfo[];

With these:
extern struct _xfstruct *x_fontinfo;
extern struct _xfstruct *x_backup_fontinfo;
extern struct _fstruct *ps_fontinfo;
extern struct _fstruct *latex_fontinfo;
---------------

2) Edit file "w_i18n.c"
Line number 405 (around),

Replace
extern struct _xfstruct x_fontinfo[]; /* X11 fontnames */

With
extern struct _xfstruct *x_fontinfo; /* X11 fontnames */
---------------

3) Run
$ xmkmf
$ make
$ sudo make install.all
---------------

4) Opps, in case you hit some missing libraries...

$ apt-cache search libx11
$ apt-cache search etc etc etc

At least, you may need these
libx11-dev
xaw
libxaw7-dev
xaw3dg-dev
---------------

5) Fix fonts. Why can't they include this in "make install.all" ?
Why can't they include this in "make install.all" ?

See README file.
or
http://www.ubuntuforums.org/showthread.php?p=180320&mode=linear&highlight=Warning%3A+Missing+charsets+String+FontSet+conversion
.



Relevant Pages

  • Re: [Q] how to edit file when in "repair filesystems"???
    ... it stop in middle and asked me login as ... >>to fix it. ... does there has way to edit file ... Then you can write to that partition ...
    (RedHat)
  • vim - accent
    ... I just installed ubuntu but when I edit file with accent I get this ... with VIM ... Could someone tell me what to do to fix the problem. ...
    (comp.editors)