久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術(shù)文章
文章詳情頁

Wine安裝一些Windows軟件的錯誤以及處理

瀏覽:3日期:2024-01-28 08:41:26
;1、安裝rtx軟件 1)安裝時,后臺會報一些錯誤:如找不到mfc42u.dll之類的,可以從windows/system32目錄拷貝到wine的相應(yīng)目錄。 2)如果是自動構(gòu)建的wine,則有可能出現(xiàn) libxml2 support was not present at compile time 的問題,這時需要安裝 libxml2-dev 包。 2、安裝一些帶輸入檢測的軟件如招商證券,會出現(xiàn)包含類似 X11DRV_SetDIBits+0x1f2() in winex11 的錯誤,這時需要打補丁。打補丁的方法是: 1)下載wine源代碼 2)按照以下內(nèi)容修改文件 wine/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c: Skipped content of type multipart/alternative-------------- next part --------------diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.cindex cec2058..809897e 100644--- a/dlls/winex11.drv/dib.c+++ b/dlls/winex11.drv/dib.c@@ -3861,6 +3861,7 @@ INT X11DRV_SetDIBits( X11DRV_PDEVICE *phX11DRV_DIB_IMAGEBITS_DESCR descr;BITMAP bitmap;LONG width, height, tmpheight;+ int nrsrcbytes, dibpitch;INT result;descr.physDev = physDev;@@ -3880,6 +3881,16 @@ INT X11DRV_SetDIBits( X11DRV_PDEVICE *phif (startscan + lines > height) lines = height - startscan;+ /* pointer check */+ dibpitch = ((width * descr.infoBpp + 31) &~31) / 8;+ if( descr.compression)+ nrsrcbytes = 1;+ else {+ nrsrcbytes = lines * dibpitch;+ if( nrsrcbytes < 0) nrsrcbytes = - nrsrcbytes;+ }+ if( IsBadReadPtr( bits, nrsrcbytes)) return 0;+switch (descr.infoBpp){case 1:@@ -3926,7 +3937,7 @@ INT X11DRV_SetDIBits( X11DRV_PDEVICE *phdescr.width = bitmap.bmWidth;descr.height = lines;descr.useShm = FALSE;- descr.dibpitch = ((descr.infoWidth * descr.infoBpp + 31) &~31) / 8;+ descr.dibpitch = dibpitch;X11DRV_DIB_Lock( physBitmap, DIB_Status_GdiMod, FALSE );result = X11DRV_DIB_SetImageBits( &descr );X11DRV_DIB_Unlock( physBitmap, TRUE );左邊有-號的,刪除這一行,左邊有+號的,添加這一行。 修改后編譯,如果使用debian系統(tǒng),則可以用以下命令編譯: cd winesudo debian/rules cleansudo debian/rules buildsudo debian/rules binary3、出現(xiàn)斷言失敗錯誤: text.c: usr32 pellip->under == 0 && pellip->after == 0 時,有可能是亂碼導(dǎo)致,配置wine支持中文即可。

標(biāo)簽: Windows系統(tǒng)
主站蜘蛛池模板: 三都| 平阴县| 行唐县| 嫩江县| 康定县| 清流县| 浦县| 茌平县| 潼关县| 九台市| 普定县| 天峻县| 伊金霍洛旗| 渭南市| 兴安盟| 石狮市| 武山县| 罗城| 班玛县| 昂仁县| 德兴市| 黎川县| 郧西县| 治多县| 遵义县| 嫩江县| 永济市| 民丰县| 大关县| 古浪县| 鄄城县| 阿城市| 苏州市| 明溪县| 德格县| 抚松县| 崇仁县| 赫章县| 通江县| 兴城市| 驻马店市|