免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4020 | 回复: 0
打印 上一主题 下一主题

Linux使用Wine 安装source insight [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-08 18:57 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP