编译microwindows-0.92

编译microwindows-0.92时,遇到一些依赖问题,记录下来,以便来着参详

root@ubuntu:/home/allen/share/ui/microwindows-0.92/src# ./xconfigure
-bash: ./xconfigure: /usr/bin/wish: bad interpreter: No such file or directory

root@ubuntu:/home/allen/share/ui/microwindows-0.92/src# wish
The program 'wish' can be found in the following packages:
 * tk
 * tk8.4
 * tk8.5
 * tk8.3
Try: apt-get install <selected package>
root@ubuntu:/home/allen/share/ui/microwindows-0.92/src# apt-get  install   tk8.5
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  tcl8.5
Suggested packages:
  tclreadline
The following NEW packages will be installed:
  tcl8.5 tk8.5
0 upgraded, 2 newly installed, 0 to remove and 211 not upgraded.
Need to get 2,013 kB of archives.
After this operation, 7,737 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ natty/main tcl8.5 i386 8.5.9-2 [1,051 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ natty/main tk8.5 i386 8.5.9-2 [962 kB]                                                                               
Fetched 2,013 kB in 2min 16s (14.7 kB/s)                                                                                                                        
Selecting previously deselected package tcl8.5.
(Reading database ... 138814 files and directories currently installed.)
Unpacking tcl8.5 (from .../tcl8.5_8.5.9-2_i386.deb) ...
Selecting previously deselected package tk8.5.
Unpacking tk8.5 (from .../tk8.5_8.5.9-2_i386.deb) ...
Processing triggers for man-db ...
Setting up tcl8.5 (8.5.9-2) ...
Setting up tk8.5 (8.5.9-2) ...
update-alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

 

 

1. error: jpeglib.h jerror.h No such file or directory 没有那个文件或目录

jpeg.cc:19:21: error: jpeglib.h: 没有那个文件或目录
jpeg.cc:20:20: error: jerror.h: 没有那个文件或目录

解决安装libjpeg:
新立得软件包管理器->libjpeg62-dev

 

2. error: png.h No such file or directory 没有那个文件或目录

error: png.h: 没有那个文件或目录

解决安装libpng:
新立得软件包管理器->libpng12-dev

http://wiki.linux-ren.org/index.php/Wish

3.error:ft2build.h: No such file or directory

sudo apt-get install libxft2-dev

4. make[1]: *** No rule to make target `/usr/lib/libjpeg.so', needed by `/home/allen/share/ui/microwindows-0.92/src/bin/nano-X'.  Stop.
make: *** [subdir-/home/allen/share/ui/microwindows-0.92/src/nanox] Error 2

这是一个笨办法,  实际上应该使用修改链接库搜索路径的办法

临时解决办法

root@ubuntu:/usr/lib# ln -s /usr/lib/i386-linux-gnu/libpng.so  libpng.so
root@ubuntu:/usr/lib# ln -s /usr/lib/i386-linux-gnu/lib.so  libpng.so
Display all 206 possibilities? (y or n)
root@ubuntu:/usr/lib# ln -s /usr/lib/i386-linux-gnu/libz.a  libz.a
root@ubuntu:/usr/lib# ls /usr/lib/i386-linux-gnu/libz.a
/usr/lib/i386-linux-gnu/libz.a
root@ubuntu:/usr/lib# cd ../local/lib/
root@ubuntu:/usr/local/lib# ln -s /usr/lib/i386-linux-gnu/libfreetype.a  libfreetype.a

make 通过

posted @ 2012-01-13 14:53  夏大王  阅读(940)  评论(0编辑  收藏  举报