Chinaunix

标题: Linux使用Wine 安装source insight [打印本页]

作者: bluedrum    时间: 2010-01-08 18:57
标题: Linux使用Wine 安装source insight
Windows 的Souce Insight 是非常经典的C编译器,无论是应用程序开发和编译都是相当不错,Linux 有Kcodes,但功能不如Source Insight.有一种解决方案的是在LINUX安装Wine, 然后安装Source Insight.

Wine编译安装

Wine 下载路径:
http://ibiblio.org/pub/linux/system/emulators/wine/wine-1.0.1.tar.bz2

wine的安装是简单的configure & make & make install

编译时提示
gcc -c -I. -I. -I../../include -I../../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
按照网络的提示解决办法。去掉对pFT_MulFix的处理。
  
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
提示,对其代码打补丁。

修改freetype.c
这里的问题出现在 dlls/gdi32/freetype.c下
这里FT_MulFix在 FT_MULFIX_INLINED模式下是 指FT_MULFIX_INLINED本身
原来的2441行
LOAD_FUNCPTR(FT_MulFix)
扩充成
#ifndef FT_MULFIX_INLINED
LOAD_FUNCPTR(FT_MulFix)
#endif


原来166行
MAKE_FUNCPTR(FT_MulFix)
扩充成
#ifdef FT_MULFIX_INLINED
#define pFT_MulFix FT_MULFIX_INLINED
#else
MAKE_FUNCPTR(FT_MulFix);
#endif


修改后然后编译,安装(make & make install)
成功后,运行winecfg 会弹出一个对话框进行设置.

其中wine把 ~/.wine/driver_c 当做C盘来使用.

安装Source Insight

1.首先用Wine执行Source Insight 的安装程序.进行安装
   先将Si的安装程序拷入LINUX下.然后执行安装.
   wine Si35Setup.exe

这里桌面显示Source Insight安装界面

2.用Winecfg把常用的工作目录都虚拟成WINDOWS的盘符,如我把/home/hxy,/home/workspace 虚拟成d:,e:


3.为了方便调用,在RHEL桌面建一个快捷方式.
建快捷方式的调用命令是.
   wine "C:\Program Files\Source Insight 3\Insight3.exe"
4.按Source Insight 的正常方式使用即可.


Wine中文字体调整


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/105675/showart_2144086.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2