http://blog.chinaunix.net/space.php?uid=20587912&do=blog&id=405022
windows of Souce Insight is very classic C compiler, both application development and compiler are very good, Linux has Kcodes, but less powerful than a Source
Insight. One solution is to install LINUX Wine, and then install Source Insight.
Compile and install Wine
Wine download path:
wine installation is simple configure & make & make install
When prompted to compile
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 |
Follow the prompts to network solutions. Removing the processing pFT_MulFix.
And
http://forum.ubuntu.com.cn/viewtopic.php?f=121&t=244486&view=next
tips, its code is patched.
Modify freetype.c
The problem here appears under dlls / gdi32 / freetype.c
Here FT_MulFix FT_MULFIX_INLINED mode refers in itself FT_MULFIX_INLINED
The original 2441 line
LOAD_FUNCPTR (FT_MulFix)
LOAD_FUNCPTR (FT_MulFix)
Expanded into
#ifndef
FT_MULFIX_INLINED
LOAD_FUNCPTR (FT_MulFix)
#endif
#ifndef
FT_MULFIX_INLINED
LOAD_FUNCPTR (FT_MulFix)
#endif
The original 166 line
MAKE_FUNCPTR(FT_MulFix)
Expanded into
#ifdef FT_MULFIX_INLINED
#define pFT_MulFix
FT_MULFIX_INLINED
#else
MAKE_FUNCPTR(FT_MulFix);
#endif
#define pFT_MulFix
FT_MULFIX_INLINED
#else
MAKE_FUNCPTR(FT_MulFix);
#endif
Modified then compiled, the installation (make & make install)
After a successful run winecfg will pop up a dialog box set.
Wherein the wine
~ / .wine / driver_c
as the C drive is used.
Installation Source Insight
1. First perform with Wine Source Insight installer. Install
First Si installer copyed LINUX. And perform the installation.
wine Si35Setup.exe
Here desktop display Source Insight installation interface
2. Winecfg the common working directory to all WINDOWS virtual drive letter, such as I / home / hxy, / home / workspace
virtualization into d:, e:
virtualization into d:, e:
3. In order to facilitate the call, in RHEL Desktop build a shortcut.
Built shortcut invoke the command Yes.
wine "C:\Program Files\Source Insight
3\Insight3.exe"
3\Insight3.exe"
4. Use the normal way of Source Insight.
Another fast execution method:
Loader execution.
Wine Chinese support adjustment
Tip .WinCfg under the Chinese system is a block button, can not suggesting normal .Source Insight
can not display Chinese and input Chinese are garbled. Can not join a way to copy them. The .WINDOWS is the same environment WordPad the program can display and normal use SCIM input Chinese.
can not display Chinese and input Chinese are garbled. Can not join a way to copy them. The .WINDOWS is the same environment WordPad the program can display and normal use SCIM input Chinese.
Root cause in WINE Tahoma font dialog box, the font can not display Chinese, there are two methods to remedy,
method 1:
One is to modify the registry, use regedit to edit the registry Wine execute the following command:
wine regedit
The following registry entries to an empty directory. (I removed one by one)
\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\FontSubstitutes
NT\CurrentVersion\FontSubstitutes
After the re-run winecfg, the following dialog "OK", "Cancel" and "Apply" normal display. But there are still garbled dialog box procedure.
All-English environment needs to be performed with the following command
env LANG=zh_CN.UTF-8 wine XXX
Method 2
2.1 copy of Windows from Windows default font, Times New Roman font, and MS Shell Dlg values set simsun (Times New Roman)
First, the windows xp Fonts directory, to the simsun.ttc (i.e. italicized) to
~ / .wine / drive_c / windows / fonts
~ / .wine / drive_c / windows / fonts
2.2 The following have been modified good reg registry file into the system, mainly to replace the Times New Roman font dialog box. carried out
wine regedit zh.reg
2.3 source insight at this time still does not display Chinese, the use of gdi32.dll.so patch available online, source Insight
can show part of Chinese GBK file content,
can show part of Chinese GBK file content,
method
mv /usr/local/lib/wine/gdi32.dll.so
/usr/local/lib/wine/gdi32.dll.so.backup
/usr/local/lib/wine/gdi32.dll.so.backup
cp gdi32.dll.so /usr/local/lib/wine/
2.4 Setting riched20.dll
Open winecfg, in libraries tab, and add riched20.dll the Riched32.dll
(do not forget to copy these files to your wine system32 directory) ~ / .wine / drive_c / windows / system32
(do not forget to copy these files to your wine system32 directory) ~ / .wine / drive_c / windows / system32
Then select edit, are set to native
Such source Insight
editing area are still unable to input Chinese characters (probably using non-standard controls) but the standard file dialog box can input Chinese input, and can be copied into the editing area. You can also use the WINDOWS Notepad writing Chinese characters. Large sections copied. (But there are still some garbled) but it seems can only do this step, itself SI support for Chinese characters is not good.
editing area are still unable to input Chinese characters (probably using non-standard controls) but the standard file dialog box can input Chinese input, and can be copied into the editing area. You can also use the WINDOWS Notepad writing Chinese characters. Large sections copied. (But there are still some garbled) but it seems can only do this step, itself SI support for Chinese characters is not good.
Reproduced in: https: //www.cnblogs.com/kungfupanda/archive/2012/12/02/2798499.html