1.编译发行版wine所需要的依赖包:
sudoapt-getbuild-depwine
2.在源代码目录下新建一个lib32文件夹,然后新建一个sh:
ln-s/usr/lib32/libX11.so.6`pwd`/lib32/libX11.so
ln-s/usr/lib32/libXext.so.6`pwd`/lib32/libXext.so
ln-s/usr/lib32/libfreetype.so.6`pwd`/lib32/libfreetype.so
ln-s/usr/lib32/libfontconfig.so.1`pwd`/lib32/libfontconfig.so
ln-s/usr/lib32/libGL.so.1`pwd`/lib32/libGL.so
ln-s/usr/lib32/libGLU.so.1`pwd`/lib32/libGLU.so
ln-s/usr/lib32/libXrender.so.1`pwd`/lib32/libXrender.so
ln-s/usr/lib32/libXinerama.so.1`pwd`/lib32/libXinerama.so
ln-s/usr/lib32/libXxf86vm.so.1`pwd`/lib32/libXxf86vm.so
ln-s/usr/lib32/libXi.so.6`pwd`/lib32/libXi.so
ln-s/usr/lib32/libXrandr.so.2`pwd`/lib32/libXrandr.so
ln-s/usr/lib32/liblcms.so.1`pwd`/lib32/liblcms.so
ln-s/usr/lib32/libpng12.so.0`pwd`/lib32/libpng.so
ln-s/usr/lib32/libcrypto.so.0.9.8`pwd`/lib32/libcrypto.so
ln-s/usr/lib32/libssl.so.0.9.8`pwd`/lib32/libssl.so
ln-s/usr/lib32/libxml2.so.2`pwd`/lib32/libxml2.so
ln-s/usr/lib32/libjpeg.so.62`pwd`/lib32/libjpeg.so
ln-s/usr/lib32/libXcomposite.so.1`pwd`/lib32/libXcomposite.so
ln-s/usr/lib32/libcups.so.2`pwd`/lib32/libcups.so
ln-s/usr/lib32/libXcursor.so.1`pwd`/lib32/libXcursor.so
ln-s/usr/lib32/libdbus-1.so.3`pwd`/lib32/libdbus-1.so
ln-s/usr/lib32/libhal.so.1`pwd`/lib32/libhal.so
ln-s/usr/lib32/libsane.so.1`pwd`/lib32/libsane.so
ln-s/usr/lib32/libgphoto2.so.2`pwd`/lib32/libgphoto2.so
ln-s/usr/lib32/libgphoto2_port.so.0`pwd`/lib32/libgphoto2_port.so
ln-s/usr/lib32/libldap-2.4.so.2`pwd`/lib32/libldap.so
ln-s/usr/lib32/libldap_r-2.4.so.2`pwd`/lib32/libldap_r.so
ln-s/usr/lib32/liblber-2.4.so.2`pwd`/lib32/liblber.so
ln-s/usr/lib32/libxslt.so.1`pwd`/lib32/libxslt.so
ln-s/usr/lib32/libcapi20.so.3`pwd`/lib32/libcapi20.so
ln-s/usr/lib32/libjack.so.0`pwd`/lib32/libjack.so
ln-s/usr/lib32/libodbc.so.1`pwd`/lib32/libodbc.so
给予执行权限:sudochmod x???.sh,运行???.sh
3.最后编译安装:
CC="gcc-4.2-m32"LDFLAGS="-L/lib32-L/usr/lib32-L`pwd`/lib32-Wl,-rpath,/lib32-Wl,-rpath,/usr/lib32"./configure-v
sudomake
sudomakeinstall
注意要确保./configure正确无误
另外,删除编译安装的wine,cd进入源码目录:
sudomakeuninstall
Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)Ubuntu / Kubuntu 8.04 (Hardy Heron)下编译wine(64位)
阅读(722) | 评论(0) | 转发(0) |