Http://blog.chinaunix.net/space.php? Uid = 20587912 & Do = Blog & id = 405022
Windows Souce insight is a very classic C compiler. Both application development and compilation are quite good. Linux has kcodes, but the function is not as good as source
Insight. One solution is to install wine in Linux and then install source insight.
Wine compilation and Installation
Wine download path:
Http://ibiblio.org/pub/linux/system/emulators/wine/wine-1.0.1.tar.bz2
Wine installation is a simple configure & make install
Compile prompt
Gcc-c-I.-I.-ihttp: // www.cnblogs.com/include -I/usr/local/include/FreeType2-I/usr/local/include-d1_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 on the network to solve the problem. Remove the pft_mulfix processing.
Http://lists.nongnu.org/archive/html/freetype-cvs/2008-09/msg00003.html
Http://forum.ubuntu.com.cn/viewtopic.php? F = 121 & t = 244486 & view = next prompt, patch its code.
Modify FreeType. c
The problem occurs in DLLs/GDI32/FreeType. C.
Ft_mulfix in ft_mulfix_inlined mode refers to ft_mulfix_inlined itself.
Original 2441 rows
Load_funcptr (ft_mulfix)
Extended
# Ifndef
Ft_mulfix_inlined
Load_funcptr (ft_mulfix)
# Endif
The original 166 rows
Make_funcptr (ft_mulfix)
Extended
# Ifdef ft_mulfix_inlined
# Define pft_mulfix
Ft_mulfix_inlined
# Else
Make_funcptr (ft_mulfix );
# Endif
After modification, compile and install (make & make install)
After running winecfg, a dialog box is displayed for setting.
Wine~ /. Wine/driver_cUsed as drive C.
Install source insight
1. Use wine to run the source insight installation program.
First, upload the SI installer to Linux. then execute the installation.
Wine si35setup.exe
The source insight installation interface is displayed on the desktop.
2. Use winecfg to virtualize common working directories into windows drive letters, such as/home/hxy,/home/workspace
Virtualized to D:, E:
3. Create a shortcut on the RHEL desktop for convenient calling.
The Call Command for creating shortcuts is.
Wine "C: \ Program Files \ source insight
3 \ insight3.exe"
4. Use source insight normally.
Another quick execution method:
Winehas associated all the. exefiles in the system, because the. exe program in the system can be directly double-clicked or right-clicked to select wine
Loader execution.
Adjustments supported by wine in Chinese
In the Chinese system, the prompt for the. wincfg button is square. The error message ". Source insight" is not displayed.
Chinese characters and Chinese characters cannot be displayed. it cannot be added by copying. in the same environment. the Windows WordPad program can display and use scim to input Chinese characters.
The root cause is that the tahoma font display dialog box is used in wine. This font cannot display Chinese characters normally. There are two ways to remedy this problem,
Method 1:
Modify the registry and use Regedit to edit the wine registry. Run the following command:
Wine regedit
Set the following registry directory to null (I will delete them one by one)
\ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows
NT \ CurrentVersion \ fontsubstitutes
After running winecfg again, the "OK", "cancel" and "application" in the dialog box are displayed normally, but some dialog box programs still display garbled characters.
The following command must be used to execute the English environment:
Env lang = zh_CN.UTF-8 wine xxx
Method 2
2.1 copy the default Windows Font and the font from windows, and set the MS shell DLG value to simsun (Sun)
First, copy simsun. TTC () to the Windows XP fonts directory.
~ /. Wine/drive_c/Windows/Fonts
2.2 import the following modified reg registry file to the system, mainly to replace the font of the dialog box with. Run
Wine Regedit Zh. Reg
2.3 source insight cannot display Chinese characters at this time. After using the gdi32.dll. So patch provided on the Internet, source insight
Partially display the content of GBK Chinese files,
Method
MV/usr/local/lib/wine/gdi32.dll. So
/Usr/local/lib/wine/gdi32.dll. So. Backup
CP gdi32.dll. So/usr/local/lib/wine/
2.4 set riched1_dll
Open winecfg and add richedw.dll and riched32.dll under the libraries option page.
(Do not forget to copy these two files to the System32 directory of your wine )~ /. Wine/drive_c/Windows/system32
Select edit and set them to native.
In this case, source insight
The editing area still cannot enter Chinese characters (non-standard controls may be used), but the input box of the standard file dialog box can all input Chinese characters and copy them to the editing area. You can also use a Windows Notepad program to write Chinese characters. Copy the large segment. (But there are still some garbled characters) but it seems that only this step can be achieved, and Si's support for Chinese characters is not good.