ubuntu下编译wine
来源:互联网 发布:淘宝店铺推广视频教程 编辑:程序博客网 时间:2024/04/29 16:59
ubuntu下编译wine
作者: Goando 出自: http://www.linuxdiyf.com$sudo apt-get update$sudo apt-get build-dep wine
$sudo apt-get install fakeroot libglib1.2-dev libglib2.0-dev libltdl3-dev libmad0-dev libmng-dev libodbcinstq1c2 libogg-dev libpng12-dev libqt3-headers libqt3-mt-dev libvorbis-dev libxft-dev libxi-dev libxinerama-dev libxmu-dev libxmu-headers libxmuu-dev libxpm-dev libxtrap-dev libxtst-dev libxv-dev libxxf86dga-dev qt3-dev-tools render-dev unixodbc-dev x-dev x11proto-record-dev x11proto-trap-dev x11proto-video-dev x11proto-xf86dga-dev xlibs-dev
创建一个编译Wine时所需要的目录:
$mkdir wine-src
$cd wine-src
sudo apt-get source wine
或下载Wine的源码包
地址 http://www.winehq.org/?announce=latest
解压
tar jxvf wine-0.9.59.tar.bz2
修改源代码
--- wine-20050111/dlls/gdi/freetype.c 2005-01-06 01:12:07.000000000 +0800
+++ wine-20050111.gbhack/dlls/gdi/freetype.c 2005-01-15 18:30:32.481788272 +0800
@@ -1677,7 +1677,22 @@
if(!strcmpiW(lf.lfFaceName, SymbolW))
lf.lfCharSet = SYMBOL_CHARSET;
- if(!TranslateCharsetInfo((DWORD*)(INT_PTR)lf.lfCharSet, &csi, TCI_SRCCHARSET)) {
+ if( lf.lfCharSet == DEFAULT_CHARSET || lf.lfCharSet == ANSI_CHARSET)
+ {
+ int codepage = 936; /* I'm Chinese. Let me do something selfish. */
+ char *env_wdc = getenv("WINE_DEFAULT_CODEPAGE");
+ if (env_wdc != NULL)
+ {
+ codepage = atoi(env_wdc);
+ }
+ FIXME("Dirty hack. Default and ansi charset is translated to getenv(/"WINE_DEFAULT_CODEPAGE/")/n");
+ if(!TranslateCharsetInfo((DWORD*)(INT_PTR)codepage, &csi, TCI_SRCCODEPAGE)) {
+ FIXME("OMG. Even this dirty hack doesn't work. Let's PRAY./n");
+ csi.fs.fsCsb[0] = 0;
+ }
+ lf.lfCharSet = csi.ciCharset;
+ }
+ else if(!TranslateCharsetInfo((DWORD*)(INT_PTR)lf.lfCharSet, &csi, TCI_SRCCHARSET)) {
switch(lf.lfCharSet) {
case DEFAULT_CHARSET:
csi.fs.fsCsb[0] = 0;
@@ -1861,6 +1876,10 @@
width = face->size.x_ppem >> 6;
height = face->size.y_ppem >> 6;
}
+
+ if (0 <= height && height <12) height =12;
+ else if ( 0 > height && height > -12) height = -12;
+
ret->ft_face = OpenFontFile(ret, face->file, face->face_index, width, height);
if (!ret->ft_face)
编译安装
cd wine-0.9.59
sudo ./configure
sudo make depend && make
编译完成以后
sudo make install
- ubuntu下编译wine
- cygwin编译下wine
- UBUNTU 下安装Wine
- ubuntu下安装wine
- Ubuntu下安装Wine
- ubuntu下安装wine
- ubuntu下wine
- ubuntu下安装wine
- ubuntu下升级wine
- ubuntu下wine 的使用
- 在ubuntu下安装wine
- Ubuntu下Wine使用教程
- ubuntu下安装wine qq
- Ubuntu 下安装最新版 wine
- Ubuntu下彻底删除wine
- Ubuntu下搭建wine环境
- Ubuntu 16.04下删除wine
- [Ubuntu--wine]Ubuntu下使用windows常用软件
- 7种JS脚本分页代码
- 社会责任的思考
- 2b
- zf第一课--环境搭建
- c++ primer 9.16 9.17
- ubuntu下编译wine
- Ubuntu下Wine工具的完全使用攻略
- 也谈ReportView中调用rdlc
- 牛人对KMP的理解
- "音乐频道"网站主页(附源码)
- 阿凡达:文明,这是一个哲学命题
- Hello, Blog!
- 编译Ogre1.7.1-Src
- Aptana Studio Professional Edition 1.2.7 破解方法