急: 红旗linux 下安装和使用xfig? 在线等,急用。谢谢
试着安装,可却有这么多错误;
root@localhost xfig.3.2.5]# xmkmf
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
[root@localhost xfig.3.2.5]# make
rm -f d_arc.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_arc.c
d_arc.c: In function `resizing_arc':
d_arc.c:311: warning: passing arg 1 of `compute_3p_angle' from incompatible pointer type
d_arc.c:311: warning: passing arg 2 of `compute_3p_angle' from incompatible pointer type
rm -f d_arcbox.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_arcbox.c
rm -f d_box.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_box.c
rm -f d_ellipse.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_ellipse.c
rm -f d_picobj.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_picobj.c
d_picobj.c: In function `create_picobj':
d_picobj.c:130: warning: passing arg 1 of `edit_item' from incompatible pointer type
gcc -m32 -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES -c -o d_subspline.o d_subspline.c
rm -f d_line.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_line.c
rm -f d_regpoly.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_regpoly.c
rm -f d_spline.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_spline.c
rm -f d_text.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES d_text.c
d_text.c: In function `overlay_text_input':
d_text.c:339: warning: assignment from incompatible pointer type
d_text.c:391: warning: passing arg 2 of `initialize_char_handler' from incompatible pointer type
d_text.c: In function `init_text_input':
d_text.c:466: warning: assignment from incompatible pointer type
d_text.c:660: warning: passing arg 2 of `initialize_char_handler' from incompatible pointer type
rm -f e_addpt.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES e_addpt.c
e_addpt.c: In function `point_adding_selected':
e_addpt.c:55: warning: passing arg 1 of `init_searchproc_left' from incompatible pointer type
rm -f e_align.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES e_align.c
e_align.c: In function `align_selected':
e_align.c:69: warning: passing arg 1 of `init_searchproc_left' from incompatible pointer type
rm -f e_arrow.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES e_arrow.c
e_arrow.c: In function `arrow_head_selected':
e_arrow.c:49: warning: passing arg 1 of `init_searchproc_left' from incompatible pointer type
e_arrow.c:50: warning: passing arg 1 of `init_searchproc_middle' from incompatible pointer type
rm -f e_break.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES e_break.c
e_break.c: In function `break_selected':
e_break.c:45: warning: passing arg 1 of `init_searchproc_left' from incompatible pointer type
e_break.c:46: warning: passing arg 1 of `init_searchproc_middle' from incompatible pointer type
rm -f e_compound.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES e_compound.c
In file included from e_compound.c:30:
figx.h:25:31: X11/Xaw3d/Command.h: 没有那个文件或目录
figx.h:26:29: X11/Xaw3d/Label.h: 没有那个文件或目录
figx.h:27:30: X11/Xaw3d/Dialog.h: 没有那个文件或目录
figx.h:28:27: X11/Xaw3d/Box.h: 没有那个文件或目录
figx.h:29:28: X11/Xaw3d/Form.h: 没有那个文件或目录
figx.h:30:33: X11/Xaw3d/Cardinals.h: 没有那个文件或目录
figx.h:31:28: X11/Xaw3d/Text.h: 没有那个文件或目录
figx.h:32:33: X11/Xaw3d/AsciiText.h: 没有那个文件或目录
figx.h:33:34: X11/Xaw3d/MenuButton.h: 没有那个文件或目录
figx.h:34:33: X11/Xaw3d/Scrollbar.h: 没有那个文件或目录
figx.h:35:34: X11/Xaw3d/SimpleMenu.h: 没有那个文件或目录
figx.h:36:27: X11/Xaw3d/Sme.h: 没有那个文件或目录
figx.h:37:31: X11/Xaw3d/SmeLine.h: 没有那个文件或目录
figx.h:41:30: X11/Xaw3d/Toggle.h: 没有那个文件或目录
figx.h:42:29: X11/Xaw3d/Paned.h: 没有那个文件或目录
figx.h:43:32: X11/Xaw3d/Viewport.h: 没有那个文件或目录
figx.h:44:28: X11/Xaw3d/List.h: 没有那个文件或目录
figx.h:45:30: X11/Xaw3d/SmeBSB.h: 没有那个文件或目录
e_compound.c: In function `open_compound_selected':
e_compound.c:110: warning: passing arg 1 of `init_searchproc_left' from incompatible pointer type
e_compound.c:111: warning: passing arg 1 of `init_searchproc_middle' from incompatible pointer type
e_compound.c: In function `popup_close_compound':
e_compound.c:227: error: `formWidgetClass' undeclared (first use in this function)
e_compound.c:227: error: (Each undeclared identifier is reported only once
e_compound.c:227: error: for each function it appears in.)
e_compound.c:232: error: `commandWidgetClass' undeclared (first use in this function)
e_compound.c:238: error: `XtNfromHoriz' undeclared (first use in this function)
make: *** [e_compound.o] 错误 1
[root@localhost xfig.3.2.5]# make install.all
make install
make[1]: Entering directory `/home/王海娇/xfig/xfig.3.2.5'
rm -f e_compound.o
gcc -m32 -c -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -pipe -I/usr/include/X11 -I/usr/local/include -I/usr/local/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_XPM -DXAW3D -DUSE_JPEG -DNEWARROWTYPES e_compound.c
In file included from e_compound.c:30:
figx.h:25:31: X11/Xaw3d/Command.h: 没有那个文件或目录
figx.h:26:29: X11/Xaw3d/Label.h: 没有那个文件或目录
figx.h:27:30: X11/Xaw3d/Dialog.h: 没有那个文件或目录
figx.h:28:27: X11/Xaw3d/Box.h: 没有那个文件或目录
figx.h:29:28: X11/Xaw3d/Form.h: 没有那个文件或目录
figx.h:30:33: X11/Xaw3d/Cardinals.h: 没有那个文件或目录
figx.h:31:28: X11/Xaw3d/Text.h: 没有那个文件或目录
figx.h:32:33: X11/Xaw3d/AsciiText.h: 没有那个文件或目录
figx.h:33:34: X11/Xaw3d/MenuButton.h: 没有那个文件或目录
figx.h:34:33: X11/Xaw3d/Scrollbar.h: 没有那个文件或目录
figx.h:35:34: X11/Xaw3d/SimpleMenu.h: 没有那个文件或目录
figx.h:36:27: X11/Xaw3d/Sme.h: 没有那个文件或目录
figx.h:37:31: X11/Xaw3d/SmeLine.h: 没有那个文件或目录
figx.h:41:30: X11/Xaw3d/Toggle.h: 没有那个文件或目录
figx.h:42:29: X11/Xaw3d/Paned.h: 没有那个文件或目录
figx.h:43:32: X11/Xaw3d/Viewport.h: 没有那个文件或目录
figx.h:44:28: X11/Xaw3d/List.h: 没有那个文件或目录
figx.h:45:30: X11/Xaw3d/SmeBSB.h: 没有那个文件或目录
e_compound.c: In function `open_compound_selected':
e_compound.c:110: warning: passing arg 1 of `init_searchproc_left' from incompatible pointer type
e_compound.c:111: warning: passing arg 1 of `init_searchproc_middle' from incompatible pointer type
e_compound.c: In function `popup_close_compound':
e_compound.c:227: error: `formWidgetClass' undeclared (first use in this function)
e_compound.c:227: error: (Each undeclared identifier is reported only once
e_compound.c:227: error: for each function it appears in.)
e_compound.c:232: error: `commandWidgetClass' undeclared (first use in this function)
e_compound.c:238: error: `XtNfromHoriz' undeclared (first use in this function)
make[1]: *** [e_compound.o] 错误 1
make[1]: Leaving directory `/home/王海娇/xfig/xfig.3.2.5'
make: *** [install.all] 错误 2
[root@localhost xfig.3.2.5]# make install.all
搜索更多相关主题的帖子:
红旗 xfig linux 在线