Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101972181
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-10 11:14:12

作者: roina  出自:
1.下载OpenMotif



2.安装OpenMofi

# yum install libX* (最好安装一下)
# tar -xzvf openmotif-2.3.0.tar.gz
# cd openmotif-2.3.0
# vim INSTALL.configure
# ./configure
# make
# make check
# make install

3.安装过程中出现“X11/extensions/Print.h: No such file or directory”的解决方法

这是因为系统中缺少libXp-devel
# yum install libXp-devel

4.安装过程中出现“X11/bitmaps/gray: No such file or directory”的解决方法

这是因为系统中缺少xorg-x11-xbitmaps(x11/xbitmaps (Ubuntu) and xorg-x11-xbitmaps (Fedora Core 5).)

# yum install xorg-x11-xbitmaps

5.使用gcc编译motif程序

# cc -o test test.c -L/usr/X11R6/lib -I/usrX11R6/include -lX11 -lXm

6. 运行程序时出现“error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory”的解决方法

# ldconfig /usr/X11R6/lib/
阅读(548) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~