http://blog.chinaunix.net/space.php?uid=20587912&do=blog&id=405022
windows 的Souce Insight 是非常經典的C編譯器,無論是應用程序開發和編譯都是相當不錯,Linux 有Kcodes,但功能不如Source
Insight.有一種解決方案的是在LINUX安裝Wine, 然後安裝Source Insight.
在linux中先解壓:tar -xjfwine-1.0.1.tar.bz2
gcc -c -I. -I. -Ihttp://www.cnblogs.com/include -Ihttp://www.cnblogs.com/include -I/usr/local/include/freetype2 -I/usr/local/include -D__WINESRC__ -D_GDI32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -o freetype.o freetype.c freetype.c:166: error: 'FT_MulFix' undeclared here (not in a function) freetype.c:166: warning: type defaults to 'int' in declaration of 'pFT_MulFix' freetype.c: In function 'WineEngGetOutlineTextMetrics': freetype.c:5009: error: called object 'pFT_MulFix' is not a function freetype.c:5010: error: called object 'pFT_MulFix' is not a function freetype.c:5012: error: called object 'pFT_MulFix' is not a function |
LOAD_FUNCPTR(FT_MulFix)
#ifndef
FT_MULFIX_INLINED
LOAD_FUNCPTR(FT_MulFix)
#endif
#define pFT_MulFix
FT_MULFIX_INLINED
#else
MAKE_FUNCPTR(FT_MulFix);
#endif
虛擬成d:,e:
3\Insight3.exe"
Wine已經在系統中關聯了所有的.exe文件,因此在系統中的.exe程序可以直接雙擊或右鍵菜單選Wine
loader執行.
也無法顯示中文和輸入中文,都是亂碼.也無法用拷貝的方式加入到當中.而同樣的環境下.WINDOWS的寫字板程序能正常的顯示和用SCIM輸入中文.
NT\CurrentVersion\FontSubstitutes
~/.wine/drive_c/windows/fonts
能部分顯示GBK的中文文件內容,
/usr/local/lib/wine/gdi32.dll.so.backup
(別忘複製這兩個文件到你wine的system32目錄下) ~/.wine/drive_c/windows/system32
然後選edit,都設爲native
的編輯區仍然無法輸入漢字(可能採用非標準控件)但是標準的文件對話框輸入框都能輸入中文,並且能拷貝到編輯區中。也可以用WINDOWS的記事本程序書寫漢字。大段拷貝過來。(但仍然有部分亂碼)但好象也只能做到這一步了,本身SI對漢字的支持就不好。