2008年1月30日星期三

安装beryl 3D桌面

今天真是郁闷,装了一个小时都没有装上。官方网站能上去,但是官方源上不去,官方wiki上不去,这不是玩死人吗!妈的,不会是GFW了吧!
在google里搜啊搜啊!终于搜到了几个,清华的镜像:连接拒绝; 中科大的镜像:超慢,一会儿就断;东北大学的镜像:与中科大的相同;几个国外的:连接超慢,有的上不去,估计被封了,还有的没有gusty的;快气死我了!!!
算了,不装了!!!
总结出几个经验:1,不是教育网就别想上教育网的ftp,中国的教育网是只服务于学生甚至是本校学生的。 2,非教育网国外的网站也是很难上。 3,安装说明等等资料还是去外文wiki或官方上去找,中文的垃圾太多。就像是我弄得这么多垃圾。4,apt是很好,但是网络不好了,那就等着受罪吧!

再不行就直接从源码装了!
 
2008-01-30

于士友

笔记

以后必须注意记笔记了!发现很多东西原本以前已经弄明白了,但是现在却已经忘记了,必须从头开始看,真是郁闷。真是好记性不如烂笔头
 
2008-01-30

于士友

怎样把机器学习的方法融合到我的应用中?及对机器学习的认识

怎样把机器学习的方法融合到我的应用中?

提取特征-》训练-》分类
使用机器学习的问题主要是,样本的构造比较麻烦,而且会进一步降低实时性。

如果在我的应用中使用机器学习的话,步骤应该是这样:
1,确定特征。
首先要确定障碍物和地板(可行走路径)的最大的区别在哪里。也就是它们之间显著的区别特征在哪里。在我的应用中,可以区分它们的特征无非是颜色(RGB), HSV,灰度,纹理,边缘等等。这个步骤最重要的是找出它们之间区别最大的特征,这样利于进一步的根据这些特征分类。特征选择的好,训练过程更容易收敛,更快。

2,构造样本
根据实际的应用,构造尽可能典型,尽可能多的样本。包括正例和反例。对于我的应用来说,就是构造在各种条件下(光照)的典型障碍物(桌子,凳子,冰箱等等)的图片和地板的图片。样本图片的大小要根据摄像头采集的图像的大小及机器人所能识别的最小障碍物的大小和最小安全距离等确定。

3,选择机器学习的算法
神经网络,遗传算法,SVM,GMM,EM等等。每种机器学习的算法都有自己的特点和使用的范围,根据自己对性能和实时性的要求,选择一个适合自己应用的。

4,训练
用样本对算法进行训练,可能需要调整学习算法的一些参数,比如学习率等。

5,分类
对于自己训练过的算法,对实际的输入进行分类,并评估其性能。若不符合要求则转到步骤1。

是否在我的应用中使用机器学习算法就一定能够提高性能?如果直接只是使用HSV空间作为分割的特征的话,这样特征的取值与结果之间甚至可以近似的使用解析式和条件判断式表达。这样机器学习是不是就没有发挥的余地了?在这种情况下使用机器学习就有种脱了裤子放屁之感。而如果使用Gabor小波多尺度多方向提取的纹理作为分割的特征的话,比较简单的方法是用他们的方差和均方值进行分割。
机器学习应该适用于那种输入和输入不能或很难用解析式和条件判断表达的情况,例如垃圾邮件的分类,是否获得癌症的判断等。

如果有多个特征进行分类时,用我们简单的对他们加权计算欧式距离并不一定能接近真实的情况,而机器学习却可以通过样本学习,逐步逼近真实的情况。
如果使用多个特征的加权进行判别,例如x+y+z+h <200 ->属于A类,>=200 ->属于B类,本质上是在一个4维空间里的一个判别面,这个面的一边是一个类,另一面是另一个类。而实际中,多个特征之间不可能是线性无关的,而且简单的加权并不能反映真实的情况。而使用机器学习的方法,如人工神经网络,支持向量机,则通过样本学习,构造的这个判别面不是一个线性的面,而可能是一个非线性的面。例如在三维空间里不是一个平面,而可能是一个凸面等等,通过对大量样本的学习,这个面会逐步的接近(接近的方法取决于机器学习的算法本身)那个理想中的面。而通过调正算法的参数,如增加神经网络的神经元节点的个数等会使这个面更平滑,即更接近于真实的情况,当然学习的时间会更长。感觉类似于最优化方法,只不过是一个迭代的过程。
 
2008-01-29

于士友

torch2vision与opencv

torch2vision上发现了很多好东西,竟然有gabor小波提取纹理的类,但是从接口上看,很显然跟我从网上下的那个代码差不多,应该是从那个的基础上修改的。还有索尼云台摄像机d100p/d31的控制类,另外,机器学习方面的算法要比opencv多得多,毕竟是基于机器学习库torch的,特别是人脸检测方面的比较多。
但是他是基于linux的,因为主要是算法,所以移植起来也是比较简单的,windows下的云台控制我已经移植好了。
与opencv再一个很大的不同就是它是用C++写的,算法全部封装在类中,各个算法的逻辑层次关系比较鲜明。而opencv主要是用c语言写的。
 
2008-01-30

于士友

2008年1月28日星期一

同学聚会

昨天晚上,老徐请客吃饭。好久没有聚聚了,现在不像是刚毕业那会儿了,都比较闲,隔三岔五的聚。现在都忙了,老徐升了中层,天天工作,老六买房了准备结婚,老二天天腐败,老四镇守大西南,老三蜗居沪宁杭,老七杳无音信.... 好在老大明年就要从东北赶过来了。
 
吃得多,喝的少,由于昨天的超水平发挥,实在是喝不下了。即使老二百般纠缠,俺还是不为所动,一直喝到接近10点,晚上在老六家睡的。一大早跟的老六的班车。老六日子过得真是幸福,房子买了,弟妹又是那么温柔贤惠。羡慕中!!
 
票买了,腊月二十九动车挺进鲁西北平原!!
 
2008-01-28

于士友

2008年1月27日星期日

公司年会

 
昨天下午公司年会,晚上又聚餐,饭基本没吃,光喝酒了。没想到公司的小�们这么能喝,而且回来直接去通宵上网。佩服!
演得节目很不错,特别是那个小品,生产部的弟兄姐妹们真是有才!
 
喝了很多,头晕晕的,好在没有吐。晚上做了好多梦,好的坏的。早上起来,头还是晕晕的,晚上还得去老徐家聚会。
 
有很多事其实很简单,只是你觉得很难,你觉得那是一面墙,其实一推即倒。迈出了第一步,往下就很容易了。
 
forget all the things and enjoy life.   fighting!!!
 
2008-01-27

于士友

2008年1月26日星期六

a good sentence

"If I get close to you, I get hurt. But if I don't get close to you, I get lonely. If I tell you truly how I feel, you distance from me. But if I can not tell you truly how I feel, I distance from you. "
 
2008-01-26

于士友

2007年总结3

其他娱乐方面的:
1,CS还是玩得太多,虽然水平很次
2,共看了电影大约80部,迅雷下载列表里共有50部,再加上从同学那里看的。
3,
 
其他:
1,
 
2008-01-24

于士友

看了情书(上周日看的)

补一篇:

很早就听说了《情书》这部经典的爱情电影,一直放在硬盘上没有看,一是因为是日本的,不太喜欢日语,再就是一直没有心情看爱情片。马上就要放假了,就想把硬盘上的电影看完,今天就剩下这一部了,于是就勉强看了,一个故事娓娓道来.....

真得没有想到日本也能拍出这样经典的电影。也许它是我看过的最经典的爱情片,也许要在《罗马假日》,《西雅图不眠夜》....之上。

也许这样的故事或多或少地在每个人身上都发生过,每个人都有一段青涩的回忆,每个人或许都暗恋过某个人,而且大多是最后也没有表白。而且那时候的爱完全是一种无私的,没有掺杂其他杂质的,单纯的爱。每个人应该都有过那样的体会,但是能把那种心境保留下来的能有几个?曾有很多人跟我抱怨过"他"的那个"她",甚至是说一些无情无义的话,不知是真的还是只是一时之气,不过我想两方面也许都有吧!但不可否认,现代人对爱情的看法已经改变了很多,无所谓的心态正在蔓延。有时候我也会问自己,到底什么是真正的爱情。到底根据什么标准才能判断那是真的爱呢?我会假设一个场景,如果她双腿断了,你还会爱她娶她吗?如果她得了绝症你还会娶她吗?.....如此等等,如果你不能马上回答能,还需要沉思,那么...我想每个人的心里都会有自己的答案。

想写很多,但是没有心境,思路完全断断续续....唉,算了吧!还是看俺的scheme吧!
 
强烈推荐看,"一万个人眼里有一万个哈姆雷特",一万个人眼里也会有一万个情书。
2008-01-25

于士友

最近

 
最近过得还可以。昨天发现离公司大约1000多米处竟然有一个小城镇,还挺繁华的,啥都有卖的,这下好了,原来还担心万一大雪封山了,自己不得被饿死啊!明天公司里年底聚会,后天本科同学聚会,哈哈,有两次大餐吃了。
 
每天也是忙得很,但是有没啥成就感。主要是没做好计划。SICP和TAOUP也看了一些了,不过进度很慢,思考的太少了。
 
课题做得很少,论文又看了2篇,但还是没有灵感。明天继续看。
 
现计划:
上午看几页SICP,和一篇论文。下午思考,写程序。晚上,做未完成的和其他的点。临睡前看TAOUP。
 
这一周也就明天还有点时间学习。
2008-01-25

于士友

2008年计划1

1,最重要的,顺利做完课题,写完论文,通过答辩,顺利毕业。
2,仔细认真得研读SICP和TAOUP。
3,对机器视觉进行进一步地学习。
4,ARM+OS
5,深入开关电源
6,对嵌入式开发要达到更高的境界
7,深入linux
8,加强英语听说读写的锻炼
 
如果有余力的话:
1,FPGA+CPLD   VHDL+VERILOG
2,web2.0
3,DSP
 
其他:
1,拿出一定的时间与人交流
2,每周至少拿出一个时间段去玩
3,对于同学朋友家人联系
4,锻炼与人合作的能力
5,学习商业经济方面的东西
6,学习哲学
7,看经典的小说等,加强文学方面的修养
8,享受生活
9,每天每周每月每季度每年都要有书面的计划
10,做事情分清主次
11,对东西要深入研究不能不明不白
12,继续发扬敢爱敢恨的精神
13,包容别人
14,不能纵容自己
15,多想多看多说
16,锻炼身体
17,吃好喝好玩好
18,做一个好人
19,想到的事马上去做,不拖
 
待续
 
2008-01-25

于士友

2007年总结2(经验教训)

1,2007年竟然没有看什么经典的数目,只是浮光掠影的看了一些乱七八糟的招式,没有一点儿心经。
2,2007年没有什么计划,没有什么目标、核心,完全是当一天和尚撞一天钟。
3,每天几乎都处在忙得很,但是却"无为"。
4,没有一个职业规划。
5,心理还是很脆弱。对某些事还是太过执着。(是好还是坏)
 
2007是我的本命年,但是却遇到了这么多的事,有时候觉得这就像是一场梦,觉已经醒来,可我还是在梦中。有时候想为什么受伤的总是我,为什么我还是不够坚强,为什么有的人能够一笑置之,而我却不能;为什么明知道不会有什么结果,还是会那样做;为什么我对这些看得这么重;难道这就是幼稚,不成熟吗?可能若干年后,想起这些事,会禁不住发笑。可是我没有做错什么。我不想对不起别人,有时甚至宁愿对不起自己。
 
还是不去想这些事了,有些事本来就是很无奈。再去想只能是让自己更痛苦。
 
 
 
2008-01-25

于士友

2008年1月25日星期五

2007年总结1(学习方面)

2008年的第一个月马上就要过去了,先对2007年总结一下:
 
2007所做的主要工作:
1,4月份定下的课题,开题,换实验室。
2,设计开发了红外测距模块和电源管理模块。
3,与其他同学一起设计了移动机器人的驱动系统,机械系统和控制系统等,还有各个部分的选型等
4,对CAN总线基本上比较熟练了
5,跟同学一起装配调试移动机器人
6,写了几个demo,移动机器人远程控制,远程云台控制,远程视频监控,基于声纳的避障
7,机器视觉方面,完成了基于gabor小波的纹理提取
8,学习了wxwidget的GUI开发,现在基本上的gui都是使用它。
9,学习了opencv,视觉开发基本上都基于它
10,找到了工作
 
怎么这么少?基本上没有做什么东西啊!
郁闷!@!
 
2008-01-24

于士友

2008年1月23日星期三

ubuntu linux7.10印象

 
虽然俺接触linux比较早,大三就装了一个,但俺也只是菜鸟一个。一般安装完,配置后就扔在那里不管了。从red hat9->fc3->magic linux1.0->ubuntu,现在是学校机器上是magic linux1.0,公司机器上是ubuntu7.10。
感觉从易用性来看,ml1.0绝对是最好的,国内社区开发维护的,虽然是基于redhat,但是易用性,中文化提高了很多很多,毕竟是咱中国人维护的啊。不过就是开发更新的速度很慢,bug也不容易排除,维护的人太少了,而且没有商业化,不能盈利。而ubuntu是蒸蒸日上,如火如荼啊!每年出两个版本,硬件兼容性,软件管理等都是首屈一指的。但是感觉速度慢,有时候系统甚至会停止响应,俺的机器虽然配置不是很高(1G+1.6GHZ*2),但也比俺学校的机器强多了(p42.6+256m),俺的ml1.0可是跑的像兔子一样啊!
 
无论是启动速度,还是程序启动速度等等,u7.10都比ml1.0差得远。ml1.0的软件集成的也很好,基本上上不用自己再配置了,中文输入法,窗口管理器,播放软件等等都很齐全,好像开发者都是选的比较符合中国人口味的软件。不过好像现在世界上特别是做研究的主要还是用的u7。
倒是u7的apt真是不错,不用到处搜软件了,ml里面也有不过一直没有用。
2008-01-23

于士友

这两天

这两天一直在公司住着,条件还算不错,四个人住三室一厅,就是啥家具也没有。公用的洗衣机,热水器。就是没法做饭。
白天看看论文、写写程序、玩玩linux,再就是跟朋友MSN,GTALK.
晚上玩。
没法看电影!!!下载速度上去100k,就被封。太垃圾了!!
睡觉也挺好的,第一天2点睡着的,估计是公司聚餐可乐喝的太多了。第二天,同事打呼噜,无奈,半夜偷偷的搬到隔壁一间屋自己睡。很怪,第二天竟然不困!!可能是不胡思乱想了吧!
吃得还行,早饭一个鸡蛋一个烧饼,中午晚上一素一荤,顿顿有粥喝。虽然菜做得垃圾了点,但是好歹有肉啊!最重要的是free。
就是烧水不方便,宿舍没有水炉,要是提水,我要下4个楼梯,走30m,再上6个楼梯。周末去买热得快!
昨天听光光说一汽给他配的电脑,DELL(2g+3Ghz*2+wide LCD)就郁闷的不行!
做事还是太急功近利了。思考的太少。
还偶尔想起。
 
寒假计划基本做完课题,写点论文,看完sicp。思考思考再思考。忘记忘记再忘记。
 
2008-01-23

于士友

ubuntu7.10 desktop版本的硬盘安装方法

昨天,在公司的机器上安装了ubuntu7.10 desktop 。上个月在ubuntu申请了光盘,但需要6个周才能送到。在网上看到可以硬盘安装,就研究了一番,还算是顺利,其中遇到了几个问题,但总算是安装好了。
 
步骤如下:
参考:
 
1,下载
在官方网站(ubuntu.com)下载,选择台湾的镜像,下载ubuntu-7.10-desktop-i386.iso 。desktop版是自带live cd的,意思就是不用安装就可以引导进系统界面,使用户可以事先感受一下。另外的一个版本是alternate版,不带live cd功能,而且安装过程用户的选择性比较大,适合高级用户,但是内容是一样的。
 
2,下载引导文件
bhd_i386_2.6.22-14g-ntfs.tar.gz (URL http://d103.d.iask.com/fs/800/1/450cea4e10c8278b04b1fb47f6424c7b10560270/gz/bhd_i386_2.6.22-14g-ntfs.tar.gz )
在任意盘找根目录中建一个 gutsy 文件夹, 把下载的桌面版光盘(*.iso)文件放到此目录中,把 boot 文件夹、grldr文件移到 C:\, 在 c:\boot.ini 文件后面添加 c:\grldr=" Ubuntu Linux    "
 
3,右击"我的电脑"-》"管理"里面删除你要安装linux的分区
 
4,重新启动电脑
选择Ubuntu Linux 进入。如果一切正常的话,系统会进入ubuntu的桌面。
 
5,再按下面的步骤操作,这好像是一个bug,我一开始也遇到这个错误了!"创建ext3文件系统失败"。(这些步骤忘了从哪里转得了。)"设置可移动驱动器及多媒体"选项的位置与下面所说的不太一样,但是差不多,很容易找到。
 
"
   使用Xubuntu的桌面版安装光盘时,安装过程可能会在分区过程如"在第一个从磁盘(hdb)进行ext3文件系统分区创建时失败"之类的提示中出错。Bug#107259.此时,关闭安装程序,遵照下列步骤操作:
 
   1.桌面 左上角: 系统->组选项->管理设置
   2, 选择文件管理
   1. Switch to the "Advanced" tab. 选择"高级"选项标签
   2.
   3. Click on the "Configure the management of removable drives and media ...". 点击"设置可移动驱动器及多媒体"
   4.
   5. Uncheck both "Mount removable drives when hot-plugged" and "Mount removable media when inserted". 不选"在热插时挂载可移动磁盘"和"插入移动多媒体设备时挂载"
   6.
   7. Close all the windows just opened, and restart the installer. 关闭之前打开的所有窗口,重启安装程序 
"
 
6, 应用-》附件-》终端  打开终端窗口,输入:sudo umount -a。卸载所有挂载的驱动器。root的密码为空,直接回车即可。
 
7,分区选择,选择 "使用最大的未使用连续磁盘空间"选项,这样就不用自己手动分区了,非常适合初级用户。注意它会把剩余磁盘空间分为两个分区,一个是EXT3格式的,是主分区,挂载点是"/",另一个是SWAP分区。我的硬盘原来有4个分区,我把F盘删了安装linux,这样在linux下,我的这5个分区分别为(我的硬盘是SCSI接口的):sda1,sda3(对应linux的ext3分区),sda5,sda6,sda7(对应linux的swap分区。不知道为什么linux的ext3分区对应于sda3而不是sda2。
 
8,如果一切顺利,很快就可以装完了!呵呵
 
 
ps:用桌面版本的安装盘进行安装时,预览菜单中不能选择专家模式,相应的,按F6,输入priority=low,把此模式加入至核心控制台。这将使所有可能被提及的选项能够得到显示。Bug#107220.
 
ps:根据网上有些人遇到的情况,好像分区不能事先用patition magic分好再安装,ubuntu不认。这个开源免费的:http://linuxtoy.org/archives/parted-magic.html   分区工具可以。而且是live cd。
 
2008-01-23

于士友

ubuntu7.10安装完毕后的配置

几个比较详细的说明:
http://wiki.ubuntu.org.cn/%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97/GutsyGibbon#.E8.AE.BE.E7.BD.AE.E7.B3.BB.E7.BB.9F.E4.B8.AD.E6.96.87.E7.8E.AF.E5.A2.83.E6.94.AF.E6.8C.81     best software setup
 
http://gdzhljw.blog.163.com/blog/static/803706200772554949215/    software install
 
http://www.zhanggy.com/blog/ubuntu-edgy-6.10-install-note
 
ubuntu的资源:
http://ubuntuforums.org/   英文论坛
http://forum.ubuntu.org.cn 中文论坛
 
主要是:
1,换源
2,安装中文包
3,安装字体,星际词霸,firefox插件,配置Pidgin(支持msn,gtalk),g++
4,设置显卡,屏幕分辩率
 
等等
 
俺还存在的问题:
1,邮件客户端evolution不知道怎样设置,让它不接收邮箱的旧邮件。貌似设置规则可行,但还是没有成功。
2,怎样设置使普通受限用户可以访问widows分区,貌似更高fstab文件可以,但是还没弄好,受限用户可以了,管理员帐户又有问题了。
3,qq没有设置好。
 
今天安装了:g++,wxwidget2.8.7,code::blocks。基本上设置好了。
 
2008-01-23

于士友

ubuntu7.10中文输入法的设置

参考:
http://wiki.ubuntu.org.cn/%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97/GutsyGibbon#.E8.AE.BE.E7.BD.AE.E7.B3.BB.E7.BB.9F.E4.B8.AD.E6.96.87.E7.8E.AF.E5.A2.83.E6.94.AF.E6.8C.81     best software setup
http://gdzhljw.blog.163.com/blog/static/803706200772554949215/    software install
 
安装好ubuntu7.10后,中文输入法中文输入法SCIM不能使用(表现为按ctrl+space不跳出SCIM输入法),"系统>系统管理>语言支持" 选项里面没有中文选项。其主要原因是没有安装好中文包,在安装ubuntu的过程中,可能会自动下载中文包安装,如果网络设置的不好的话,连不上网络,系统就无法下载中文包安装。再一种可能是系统在安装过程中会自动更新软件源列表,如果连不上网络,源无法更新,则 "系统>系统管理>语言支持" 选项里面也不会出现中文。
 
故解决方法是:安装完毕后马上更改软件源地址,并更新源。然后就会在"系统>系统管理>语言支持" 选项里面出现 中文 选项,在chinese后面打勾-确定 。系统会提示下载中文包等,更新完毕即可使用中文输入法了。
更改源的方法,和比较快的源,这里都有说明:http://wiki.ubuntu.org.cn/%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97/GutsyGibbon#.E8.AE.BE.E7.BD.AE.E7.B3.BB.E7.BB.9F.E4.B8.AD.E6.96.87.E7.8E.AF.E5.A2.83.E6.94.AF.E6.8C.81     
俺是青岛网通的,经测试还是这个源比较快:
deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ gutsy main restricted universe multiverse
 
教育网的用教育网的源。
2008-01-23

于士友

unbuntu7.10屏幕分辨率的修改及进入控制台黑屏

问题:系统更改分辨率后,重启自动返回原来的状态。还有就是无法进入控制台,ctrl+alt+f2后,显示器黑屏,红灯闪烁。
根本原因还是驱动不对,设置不对。在系统-》系统管理-》显示器与显卡 里面选择根据型号选择驱动,系统会自动的选择相应的驱动,显示器选择要根据你的显示器的最大
分辨率在genetic里面选择(如果系统不能自动找到型号的话)。可以手工更改sudo gedit /etc/X11/xorg.conf,里面的显示器和显卡设置,
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82945G/GZ Integrated Graphics Controller"
Monitor "H72F"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1920 1440   #这里是默认的分辨率设置
 
2008-01-23

于士友

ubuntu7.10上wxwidgets 2.8.7和code::blocks的安装方法

 
参考:http://forum.ubuntu.org.cn的forrid
http://forum.ubuntu.org.cn/ptopic73584.html
具体安装步骤如下:
1、安装必要组件
 安装编译器
sudo apt-get install build-essential
安装调试器
sudo apt-get install gdb 
2、更新源(参见:http://wiki.wxpython.org/InstallingOnUbuntuOrDebian)
   gksudo gedit /etc/apt/sources.list
在文件的末尾加入:
  # wxWidgets/wxPython repository at apt.wxwidgets.org
    deb http://apt.wxwidgets.org/ gutsy-wx main
    deb-src http://apt.wxwidgets.org/ gutsy-wx main  
(代号gutsy表7.10版本)
3、获取密钥
wget  -q  http://apt.wxwidgets.org/key.asc | sudo apt-key add - 
4、安装最新 wxWidgets 库
sudo apt-get update
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common libwxbase2.8-0 wx2.8-examples
5、设置 wxWidgets 默认版本
sudo update-alternatives --config wx-config
从列表中选择一项即可。
6、下载安装 Code::Blocks 每夜构建版本 (参见:http://forums.codeblocks.org/index.php/board,20.0.html,http://lgp203.free.fr/spip/spip.php?article2&lang=en
,http://lgp203.free.fr/spip/spip.php?article1&lang=en)
gksudo gedit /etc/apt/sources.list
添加源:
deb http://lgp203.free.fr/ubuntu/ gutsy  universe
获取key:
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
安装:
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
其中,CB_20070608_rev4078_Ubuntu6.10+7.04_wx2.8.4.deb是2007年6月8日最新版本,以此类推。
参考 http://wiki.codeblocks.org/
2008-01-23

于士友

2008年1月19日星期六

I understand


Sudenly, I understand, she didn't really want a quarrel, she just miss the boy who have quarrelled with her. I didn't really
like popcorn, that type of food, that type of books, ... I just like her.


2008年1月18日星期五

。。。


前天看到蔡少芬结婚了,不是很了解这个人,对娱乐界不感兴趣,但是看过她的《女警本色》,曾经在本科时疯狂看。很好的一部连续剧,很喜欢她扮演的那个人物,好像叫 英姿,另一个主人公叫 小生。有些喜欢他们的那些生活状态。


朋友 “封博”




昨天看到一朋友封博了:"


2008-01-15 | 封博






写了一年多的博客,这里记录了我那段时间的心情,因为年轻需要发泄我选择这里,现在可以把事情藏在心里了。以后我不再把心里所想的写出来,因为我的心里足以承受的了,有些时候有些事和人我们不必在意,他们只是人生中的小插曲或者过客。人生的大方向不会变,这就够了!!


异国的生活很难,可是难得自己有这个成长的机会,处理一些困难的事情,自己会长大。有时候觉得依靠别人的时候,发现咬着牙自己也能渡过,这就是成长,成长的痕迹告诉我,我根本不需要别人的怜悯了!!


加油了!!正在成长的各位兄弟姐妹们,A Za A Za Fighting!!


对一直支持我的博客的各位朋友说声抱歉,以后我不再写了,做出这个决定我考虑了好长时间,但是依然做出了决定。谢谢你们的支持!!


"
我不是为了发泄,我是为了记录。想想10年之后看一看,就像是现在看初中时写的日记,很是有趣!很多事又会想起,很多人也是。




2008年1月16日星期三

养花

 
邻家小妹说她去南山买的风信子,快开花了。 那么冷的天出去买花,精神可嘉!
想起自己也是很喜欢养花的,可是已经不知多长时间没有再养了。幼时养过竹子,美人蕉,地瓜花,月季,山红豆,菊花,夜来香,不死了.... 但都养不长,不久就被自己养死了,那时没有互联网,不知道每种花的习性,只知道每天浇水,经常施肥。结果可能都是因为浇水施肥过多而死了。记得养的最长的是山红豆,不知道是不是这样 写,也不知道学名是什么,是那种多年生木本植物,结很多红色的球果。从一粒种子开始,长到了有半米那么高,虽然每年冬天都要冻死大部分的枝杈,但每年的春天都会冒出新芽。大概长了有3,4年,最后那年的春天再也没有发芽。
再后来,上了中学,住校,学业也加重了,就再也没有养过花。但每次见了盛开的花,心里总是很高兴,自己是真的喜欢花。
记得,高三高考时,房东的院子里种了好大一棵昙花,开花的那天房东高高兴兴的约我晚上看花,因为早上还得上自习就婉言谢绝了,隔日早上,已谢。
上了大学,每每看到校园里春天盛开的的月季,秋天的菊花,就有股幼时养花的冲动,但一眨眼就忘了。
上了研究生,也有过几次想养,但也是不了了之。
而现在毕业在即,各事繁多,屡遇挫折,心难平静,养花可能也只是空谈。
想起电影《这个杀手不太冷》(中文翻译的不错),若翻译成《里昂》,估计俺就不会去看了)中杀手里昂养的那盆花,不知道是什么名字。想起,他每天早上给它擦叶子,逃命时也不忘带上它,想起片子的最后,他把花递到波特曼的手里,心里就有种莫名的感动。想着自己有时候就像是里昂,孤独的灵魂,只能以花为伴。
 
也许是该养盆花了!
2008-01-16

于士友

 
从表妹的博客上看到,北京下雪了,她很想再回她的母校(烟台)去看雪飘落进海里的景色。
发现,虽然在青岛已经快7年了,却还没有看过这样的景色,见过雨中的大海,风中的大海,却没有见过雪中的大海,一是因为一直没有想到,二是青岛很少下雪,三是没人陪。
下次下雪一定要去,不管多么冷!
2008-01-16

于士友

2008年1月15日星期二

最近

最近疯狂看论文。机器人的本体算是搭起来了,这些本应该在暑假完工的,由于导师的暑假开会而推迟到了9月份。直到两周前,才调试完毕,而剩下的软件部分,工作量更加巨大!简单的声纳,红外避障,远程视频监控,远程云台控制完成了,都是些有工作量但没难度的程序。现在主要是做视觉避障,上一周看了n多论文,大多是国外的,看得直恶心。总算有了些头绪,开始写程序实验。原本还打算在控制系统架构上了解一下,现在看是没有时间了,orcos,microsoft robot studio, play/stage,唉,没时间了!!真后悔没有早点看机器视觉方面的资料!
 
暑假还得实习,估计得年底才能回去了。好在还能弄课题。
 
鄙视microsoft,妈的,msn8.5都不能装在2000上!我 呸!!
 
咋用google talk的人这样少,,喜欢google的产品!
 
下一部电影准备看 飞跃疯人院!
 

飞越疯人院 | 飞越杜鹃巢

(1975)

英文名:
One Flew Over the Cuckoo's Nest

中文名:
飞越疯人院 | 飞越杜鹃巢

导 演:
( 米洛斯·福尔曼 Milos Forman )  

主 演:
(杰克·尼科尔森 Jack Nicholson)   (路易丝·弗莱彻 Louise Fletcher)   (威廉·雷德菲尔德 William Redfield)   (迈克尔·贝里曼 Michael Berryman)   ( Peter Brocco)   ( Dean R. Brooks)  

上 映:
1975年11月19日 美国   更多地区

地 区:
美国    更多详细拍摄地

对 白:
英语

评 分:
本站评分..8.5/10 ( 153票 )  详细

IMDb评分飞越疯人院IMDb评分8.8/10 ( 130003票 )  详细  

颜 色:
彩色

声 音:
单声道(Mono)

时 长:
133

类 型:
剧情



网 易 有 道 词 典 -- 全 球 最 强 大 的 免 费 英 汉 互 译 词 典 ( 只 有 2 兆 )

【转贴】OpenSource/Freeware vision software

 
Use our search box above to search ALL the following sites!

Advanced Digital Imaging Solutions Laboratory (ADISL)
Image Apprentice is a C/C++ based Image Processing Learner's Toolkit. Students use it as a companion to their favourite Image Processing Textbook. It allows one to use self-written image processing algorithms as plugins.
It comes with a Plugin Development Kit (PDK) that has a skeleton code having a simple coding style. A student who has attended a 101-level course in C/C++ programming is well-equipped to write an Image Processing plugin for Image Apprentice using Visual C++.

AllSeeingI
AllSeeingI (ASI) is the codename for a computer vision and visualization framework. It is a visual programming environment for rapid development and easy reusability.

Editor's Note - This project is just getting started but may be a chance for developers to contribute to a brand new vision system.

CamCap and CLAG
Links to the Nottingham video processing environment otherwise known collectively as CamCap, for camera and video processing work and CLAG, for command line based image processing/display and prototyping. The environment is windows based and makes use of DirectShow and the intel open source computer vision library (OpenCV).

CImg
The CImg Library is an open source C++ toolkit for image processing. It provides simple classes and functions to load, save, process and display images in your own C++ code. CImg stands for "Cool Image" : It is simple to use and efficient. It's like a STL for image processing!

CMVision
Project goal was to create a simple, robust vision system suitable for real time robotics applications. The system aims to perform global low level color vision at video rates without the use of special purpose harware.

CVIPtools
One of the primary purposes of the CVIPtools development is to allow students, faculty, and other researchers to explore the power of computer processing of digital images.
The newest version of CVIPtools, version 4.3, developed at the Computer Vision and Image Processing Laboratory at Southern Illinois University at Edwardsville, under the continuing direction of Dr. Scott E Umbaugh is currently available with the new textbook, Computer Imaging: Digital Image Analysis and Processing.

EDISON
Code for the Edge Detection and Image SegmentatiON system. This system is a low-level feature extraction tool that integrates confidence based edge detection and mean shift based image segmentation. It was developed by the Robust Image Understanding Laboratory at Rutgers University.

FILTERS
Filters is a library (not an application) implementing image filters and image processing functions.

Gandalf
The Fast Computer Vision and Numerical Library. Gandalf is a C library designed to support the development of computer vision applications. Gwyddion
Gwyddion is a modular program for SPM (scanning probe microscopy) data analysis. Primarily it is supposed to be used for analysis of height fields obtained by means of scanning probe microscopy techniques (AFM, MFM, STM, NSOM), but generally it can be used for any other height field analysis or image analysis.

Gluas plus GIMP - GNU Image Manipulation Program
Gluas is a GIMP plug-in providing a enviroment for testing algorithms for image processing. The environment contains a simple editor for entering the algorithms. It uses the lua interpreter.

IM Toolkit
Windows and UNIX - The idea behind IM was to create a toolkit that was not so complex as OpenCV, neither so big as VTK, but that can be used as a solid base to the development of thesis and dissertations, as for commercial applications.

ImageJ
ImageJ is a public domain Java image processing program inspired by NIH Image for the Macintosh. It runs, either as an online applet or as a downloadable application, on any computer with a Java 1.1 or later virtual machine. Downloadable distributions are available for Windows, Mac OS, Mac OS X and Linux.

Editor's Note - This project is geared towards medical image analysis. If you need to analyze image cross-sections, break/create image stacks, then this package is worth some attention!

ImLib3D
ImLib3D is a C++ library and visualisation system for 3D image processing. It contains most basic image processing algorithms, and some more sophisticated ones. ImLib3D images are STL-compliant templated containers.

Imalab
Imalab is a powerful development environment for complex applications in computer vision. It allows for flexible interactive experimentation with the vision modules developed in the Prima team, and can be dynamically extended with new modules. A versatile scripting mechanism provides for fast and convenient interactive development.

Editor's Note - Most of the documentation is in French.

IMLAB
IMLAB is a free open source graphical application for Scientific Image Processing that runs in Windows, Linux and many other UNIX systems. It supports multiple windows, data types including 32 bit integers, 32 bit real numbers and complex numbers. It is implemented in C++ and also in C to provide a very simple way to add new functions. It has many image operations and supports several file formats.

IPL
Intel® Integrated Performance Primitives (Intel® IPP) is a software library of highly optimized functions for multimedia, audio, video, speech, computer vision, image and signal processing.

IMPROMPTU
IMPROMPTU, which stands for IMage PROcessing Module for the Prototyping, Testing, and Utilization of image analysis processes, is a software package for multi-dimensional image processing. With IMPROMPTU, a user can construct an arbitrary sequence of operations to run automatically on an input volume. This sequence, referred to as a process, can be made up of operations selected from any of several categories. Each category, which represents one general type of image-processing operation, contains a number of functions.

JHLabs
Jerry's Java Image Processing Pages. A great way to explore many image processing filters by experimenting with Java applets.
Java Advanced Imaging (JAI) API
The Java Advanced Imaging API provides a set of object-oriented interfaces that support a simple, high-level programming model which lets you manipulate images easily.

Leptonica Library
This site contains well-tested C code for some basic image processing operations, along with a description of the functions and some design methods. A full set of affine transformations (translation, shear, rotation, scaling) on images of all depths is included, with the exception that some of the scaling methods do not work at all depths. There are also implementations of binary morphology, grayscale morphology, convolution and rank order filters, and applications such as jbig2 image processing and color quantization.

LTI-Lib
The LTI-Lib is an object oriented library with algorithms and data structures frequently used in image processing and computer vision. It has been developed at the Chair of Technical Computer Science (Lehrstuhl fuer Technische Informatik) LTI at the Aachen University of Technology, as part of many research projects in computer vision dealing with robotics, object recognition and sign language and gesture recognition.

Lispix
Lispix is a public domain image analysis program for Microsoft Windows (PC), written and maintained by David Bright. It features a collection of special purpose research tools for electron microscopy and spectral imaging at NIST. Most of Lispix is written in Common Lisp.

LuaMat
LuaMat aims to provide a easy to use language to create visual effects and to modify images. LuaMat is a fast way to use the most popular algorithms of Image Processing and Computer Vision. As Lua, becoming the standard for video-game scripting engines, LuaMat is fast and has a simple syntax.

The Mimas toolkit
Mimas was originally conceived as a platform for real-time machine vision research. Its aim was and still is to reduce the turnaround time of new research into the application workspace. It is written in C++ and is released in source code form subject to the GNU Lesser General Public License (LGPL).

Mavis
Mavis is computer vision software for mobile robots. It's part of an ongoing, group robotics project, called Leaf.

MIRIAD
MIRIAD (Multichannel Image Reconstruction, Image Analysis and Display) is a toolbox, in the form of an environment with a large set of moderate-sized program which perform individual tasks, involving calibration, mapping, deconvolution and image analysis of interferometric data. MIRIAD software is also part of the Hat Creek telescope control software; data obtained from the telescopes is directly written into MIRIAD format with a MIRIAD user interface.

Motion
Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed; in other words, it can detect motion.

tnimage
tnimage is a scientific image analysis program that allows you to create, edit, analyze, and produce color prints of images. It is particularly useful for analyzing images of SDS and agarose gels and X-ray or MRI images.

NeatVision
NeatVision is a free Java based image analysis and software development environment, which provides high level access to a wide range of image processing algorithms through well defined and easy to use graphical interface. NeatVision is in its second major release.

NIH IMAGE
NIH Image is a public domain image processing and analysis program for the Macintosh. It was developed at the Research Services Branch (RSB) of the National Institute of Mental Health (NIMH), part of the National Institutes of Health (NIH).

Editor's Note - The NIH IMAGE project is similar to ImageJ. In fact they are documented side by side. ImageJ is recommended to be used by PC based users as NIH IMAGE is a Mac based program.

OpenCV
OpenCV is an extensive open-source image processing library, built on the Intel Image Processing Library (IPL). OpenCV aids commercial uses of computer vision in human-computer interface, robotics, monitoring, biometrics and security by providing a free and open infrastructure where the distributed efforts of the vision community can be consolidated and performance optimized.

Peter Kovesi Research
MATLAB and Octave Functions for Computer Vision and Image Processing.

Projective Vision Toolkit
The Projective Vision Toolkit (PVT) is a series of utilities that allows one to take an image sequence and compute the fundamental matrix and trilinear tensor.
This can be used for such problems as camera selfcalibration, structure from motion, camera motion annotation, image stabilization, 3D tracking and recognition, etc.

RAVL - Recognition And Vision Library
RAVL provides a base C++ class library, together with a range of computer vision, pattern recognition and supporting tools. The aim of RAVL is to move software developed within the Centre for Vision, Speech and Signal Processing at the University of Surrey, England for research purposes into the public domain and to support its use in a wider community.

RoboRealm
Using RoboRealm you can create a low cost vision software solution with a standard webcam that allows you to explore the very complex world of image analysis and image processing. Through an easy to use analysis pipeline you can add image processing filters to translate an image into robotic movements, computer actions, or just plain fun! RoboRealm is free to download!

RobotVisionCAD
RobotVisionCAD or in short RvCAD is a computer aided design for Image Processing and Computer Vision. RvCAD's GUI presents users with a view where users drag and drop Image Processor Elements, and visually connecting them to form Image Processing Pipeline. RvCAD supports real-time live video processing from VideoForWindow, DirectShow(WDM) and Video4Linux on linux, compatible capture device.

TINA
TINA (TINA Is No Acronym) is an open source environment developed to accelerate the process of image analysis research. TINA provides functionality to assist in all areas of image analysis including handling of image, image feature and geometrical data; statistical and numerical analysis of data; GUI development as well as transmission and containment of data. TINA also provides a range of high-level analysis techniques for both machine vision (3D object location, 2D object recognition, temporal-stereo depth estimation, etc) and medical image analysis (MR tissue segmentation, blood flow analysis, etc).

Tekkotsu
Exploring Tekkotsu Programming on the Sony AIBO. Tekkotsu (see www.Tekkotsu.org) is an application development framework for the Sony AIBO robot dog. ("Tekkotsu" literally means iron bones in Japanese, and refers to a metal framework, such as the skeleton of a building.) At its lowest level, Tekkotsu provides primitives for sensory processing, smooth control of effectors, and event-based communication.

Torch3vision
It's a machine vision library, written in simple C++ and based on the Torch machine-learning library. This package contains Basic image processing and feature extraction algorithms such as rotation, flip, photometric normalizations (Histogram Equalization, Multiscale Retinex, Self-Quotient Image or Gross-Brajovic), edge detection, 2D DCT, 2D FFT, 2D Gabor, PCA to do Eigen-Faces, LDA to do Fisher-Faces

UTHSCSA ImageTool
UTHSCSA ImageTool (IT) is a free image processing and analysis program for Microsoft Windows 9x, Windows ME or Windows NT. IT can acquire, display, edit, analyze, process, compress, save and print gray scale and color images.IT can read and write over 22 common file formats including BMP, PCX, TIF, GIF and JPEG.

VXL
VXL (the Vision-something-Libraries) is a collection of C++ libraries designed for computer vision research and implementation. It was created from TargetJr and the IUE with the aim of making a light, fast and consistent system. VXL is written in ANSI/ISO C++ and is designed to be portable over many platforms. There are libraries covering numerical algorithms, image processing, co-ordinate systems, camera geometry, stereo, video manipulation, structure recovery from motion, probability modelling, GUI design, classification, robust estimation, feature tracking, topology, structure manipulation, 3d imaging, and much more.

XVision
XVision provides an application independent set of tools for visual feature tracking optimized to be simple to configure at the user level, yet extremely fast to execute.

2008-01-15

2008年1月13日星期日

....


I don't want to hear that again!! I hate it, related things, scenes, sounds.... I don't want to see that. My mind is so weak facing this. All I want is to make my mind free and concentrate on someting that make me useful for this world, make me feel I am useful. Why I always hear or see that, that make me feel ill, make me lose my concentration, lose my self-confidence, my courage. I can't bear that any more, I am out of my mind, I always secret my feelings, my emotions, my tears. I always pretend I am happy, I am doing someting wonderful. I always let movies, food, reading something in the virtual world hocus me, hocus my mind, my brain and my heart . This can stop me thinking about something that would harm me. I am indulge my life, my mind, my purpose, I know that, but how can I get out. I can't find a way to get out. I need complete freedom. This year, please go quickly!


转:技能


技能谁都可以学会,如果你的技能比别人多,那么你的优势仅仅在于你比他起步早一点,。他赶上你只是时间和精力的问题;但是一旦你比别人更加深谙数学方法,那么你与别人的差距并不是别人花三五年苦练技能就能企及的。


转帖:几个句子


http://user.qzone.qq.com/290898654/blog/1197718833


第一句
如果我们之间有1000步的距离 
你只要跨出第1步
我就会朝你的方向走其余的999步

第二句
通常愿意留下来跟你争吵的人 
才是真正爱你的人

第三句
付出真心 才会得到真心 
却也可能伤得彻底
保持距离 就能保护自己 
却也注定永远寂寞

第四句
有时候 不是对方不在乎你 
而是你把对方看得太重


第五句
朋友就是把你看透了 还能喜欢你的人

第六句
就算是believe 中间也藏了一个lie

第七句
真正的好朋友 
并不是在一起就有聊不完的话题
而是在一起 就算不说话 
也不会感到尴尬

第八句
没有一百分的另一半 
只有五十分的两个人
第九句
为你的难过而快乐的 是敌人
为你的快乐而快乐的 是朋友
为你的难过而难过的 
就是那些 该放进心里的人
第十句
冷漠 有时候并不是无情 


2008年1月12日星期六

解决xp正版验证


1、开始-运行-regedit,进入注册表,找到HKEY_LOCAL_MACHINE\SOFTWARE\microsoft\WindowsNT\CurrentVersion\ Winlogon\Notify\WgaLogon,删除WgaLogon。


2,打开任务管理器,关闭进程中的wgatray.exe进程(如果有的话)


3,到Windows\System32目录下把wgatray.exe ,wgalogon.dll删除(找不到的话可以在C盘上搜索一下)


4,关闭自动更新,以后更新补丁用360等




Technorati :

The Internet Movie Database (IMDb)


最近看了 IMDB TOP 154 位的电影"撞车",英文名为"crash",非常不错。感觉今年就看了两部好电影,一部是"心灵捕手",又名"骄阳似我",另一部就是这个了。看完之后,有"余音绕梁,三日不绝"之感,遂决定以后从TOP1开始看,看完TOP250的电影。


豆瓣上的影评不错。


" IMDB是目前全球互联网中最大的一个电影资料库,里面包括了几乎所有的电影,以及1982年以后的电视剧集。IMDB的资料中包括了影片的众多信息,演员,片长,内容介绍,分级,评论等。"


http://www.imdb.cn/IMDB250/ 中文网站


http://www.imdb.com/chart/top 英文网站


http://baike.baidu.com/view/50771.htm 百度贴吧的说明



http://www.douban.com/group/imdb/ 豆瓣上的小组

雪人


下了这么点雪,竟然有人在草坪上堆了两个雪人,真是有才!


2008年1月11日星期五

some feelings


Yestoday night, suddenly remember some feelings, may be a month before. For a long time that I always wake up in mid-night, and my mind is very very clear, but I don't know why. That's when I have a telephone about my interview the next day, I saw something, that I really don't want to see, coz I ... Then, my brain become blank, I can't hear any words from the other line, I really can't. I have never had this feeling, never. It's magic! After may be 4 or 5 minutes, I calm down.


It really happened!


Somedays before, when I go upstairs to do something, Liang said it's a long time after your last coming here. After some seconds, I realized that it's true. It's a long time! I do want to come here, but I just don't want to see something that may hurt me, although it's not right. I try my best to work like a cattle, and play like a child, I try my best to calm down.


I have two sides in my mind, may be everyone have, not so simple like the light side and the black side.One side, I know what's right and what's wrong. The other side, I don't konw how to define it, it's some needs, or just some feelings that may maze me. I really can't control my feelings, my emotion, especially the bad, I have tears when I am hurt or touched, I am angry when something make me angry. Sometimes, I find work and work or play and play can make you forget something for a while, can stop your attention on something. But just for a while.


I understand why some people commit suicide, why some people can't find the purpose of their life, why so many people do so stupid things. We should understand each other, but it's really so difficult, something when you open your heat you will lose something, may be forever. We human beings is the slave of our emotion. I am one of them.


I always write somethings that have no means, just a page of words, because it's just for myself, may be nobody can undetstand what I say, coz my mind is mass, also my words.


今天是Knuth的70寿辰


好大的雪!


今天是Knuth的70寿辰 !


http://blog.csdn.net/g9yuayon/archive/2008/01/11/2034708.aspx


http://freebypass.net/index.php?hl=f5&q=uggc%3A%2F%2Ferphefrq.oybtfcbg.pbz%2F2008%2F01%2Funccl-oveguqnl-qbanyq-xahgu.ugzy


2008年1月6日星期日

mingwm10.dll 用处



MinGW 的全称是 Minimalistic GNU for Windows,它提供了基于 GNU GCC 和
其他相关程序( make、autoconf 等等)构造 Win32 程序所必需的头文件、库。也许
你首先会想到 Cygwin。两者都是可以将 Unix 下程序在 Win32 下编译运行的办法。
但所不同的是,Cygwin 中是将完整的 POSIX 系统调用映射到本地API,使用一个模
拟 POSIX 调用的 dll。因此在实际执行时的效率比不上本地编译代码。另外一点:
Cygwin 的 License 是 GPL ,也就是说你在 Cygwin 上平台的代码必须开放。(这
个是很难让人接受的,仅仅因为移植代码就要开放源码...)


而 MinGW 与 Cygwin 的上述两点恰好相反,它将代码编译成 Win32 本地代码,
使用 msvcrt.dll 的 C 运行时库。而且MinGW的其他运行库不以 GPL License保护,
这也意味着你使用 MinGW 编译的代码不必公开源码。msvcrt.dll 本身是随Win32平
台发行的,因此这是一个完全免费的环境。


有人会问:有 Visual C++、Borland C++ 等等,为什么还要用 MinGW ?第一、
它们不是免费的;第二、移植Unix下的C/C++程序将十分痛苦。


目前,开源社区中 Unix 下许许多多著名的库和程序都有了 MinGW 的版本(因
为移植方便)。同时 Win32 本地 API 和其他一些库譬如DirectX 7/8/9,OpenGL都
被移植到了 MinGW 下。是理想的跨平台解决方案。


但经使用,发现mingw编译的程序有的还需要mingwm10.dll这个dll。经搜索:

mingwm10.dll是mingw的一个动态链接库,但不是C运行时库.


Even when using VC++ you have to ship the C runtimes, unless you use VC++6
which has the same C runtime as shipped with Windows already.


Volker


NOT true, because "-mthreads" is just needed for thread-safe exception
handling. Since Qt DOES NOT use exceptions at all, you can safly remove
this flag on a MinGW32-System.


有-mthreads链接选项则需要这个dll。
怎样静态链接进去,还没有发现。


If you wish to remove the dependency on mingwm10.dll as well, here are the steps I followed.
Note: there is some discussion around the forums as to whether this is a valid solution.
It seems to work for me so far.


Edit c:\qt\qt4.2.3\mkspecs\win32-g++\qmake.conf and remove all occurrences of "-mthreads".
Recompile Qt as above. Compile your project and the dependency on mingwm10.dll will be no longer.


I created a MT application with u++, and run it withouth mingw10.dll successfully.
This is not supposed to be possible. Multithreaded applications should be built with
the "-mthreads" option given to the compiler, which will trigger dynamic linking to
mingw10.dll. It is promissed that a future version of MinGW will remove this severe inconvenience.
There are long discussions about this topic on the Qt forum.


That -mthreads is needed, because it makes the compiler generate thread-safe versions of some codes.
It links with mingwm10.dll as the dll framework provide the only documented way a certain cleanup code
could be triggered after each thread terminates. (VC++ uses an undocumented way) So I can no longer hope
that you somehow miraculosly removed the dependency on mingwm10.dll.


Ok, for the benefit of Anonymous, this is how you get rid of mingwm10.dll.


Edit the file $QTDIR\mkspecs\win32-g++\qmake.conf and remove all instances of -mthreads.
Then recompile your app. The mingwm10.dll is no longer a dependancy.



Disclaimer: No-one seems to be entirely sure what that DLL is there for.
The best explanation I've seen is that it has something to do with propagating exceptions
in multithreaded programs. However, Qt doesn't use exceptions, so unless you use them yourself,
it shouldn't be a problem. I haven't had any problems with the DLL removed, and many others have
reported smooth sailing as well. However, this could create problems if you use exceptions and
threads in your program.


As far as I know mingw-compiled multithreaded applicaions should always be dynamically linked to mingwm10.dll,
so this file should be available on computers running the application. It seems that U++ somehow removes
this nasty limitation. How is that possible?




Technorati :

mingw32-make -f 编译wxwidget失败


很奇怪
我的mingw32-make没法调用系统内置的mkdir(cmd的),只能调用可执行程序,而复制到其他人的机器上就可以。
真是惊呆了!!
F:\temp\temp>mingw32-make -f sb.mak
process_begin: CreateProcess(NULL, mkdir ..\_temp\cxcore100, ...) failed.
make (e=2): 系统找不到指定的文件。
mingw32-make: [all] Error 2 (ignored)
文件sb.mak内容:
DR:=100
MAKE := mingw32-make



all:
@-mkdir ..\_temp\cxcore$(DR)


原来的mkdir不行,是因为D:\program\WinAVR\utils\bin下面有个mkdir.exe而且又是linux形式的。不能识别这种windows的。


找到原因了,原来是mingw32-make执行时会先找是否有make.exe这个程序,如果有则用它来make,但是恰好D:\program\WinAVR\utils\bin
也有一个linux形式的make,那样就用它来make了,故出错!


mingw+code:blocks+wxwidget


最近C++开发想抛弃微软,投向开源,经过多方搜索,选择了mingw+code:blocks+wxwidget。


安装编译指南:


参考:
http://blog.csdn.net/aspen_yang/archive/2007/12/06/1920783.aspx


1,安装MinGW
官方网站上下载自动安装的版本,它会边下载边安装,安装时注意选上G++和make,安装完后设置好环境变量C:\MinGW\bin


2,安装Code:Blocks
下载推荐的每天build版本,即需要的mingw和wxWidgets的dll,解压到一个目录即可,不用安装。
打开主程序,设置编译器为GNU GCC COMPILER,在settings->complier debuger setting 里面设置编译器的路径。

3,编译opencv
INSTALL里有编译说明
测试OPENCV,加入库和头文件的路径等,编译连接通过,但是不能执行,出错
怀疑是必须要用mingw重新编译openCV,故编译出错:

E:\program\OpenCV\_make>mingw32-make -f make_all_gnu.mak
mingw32-make: *** ../_temp/cxcore_Rls: No such file or directory. Stop.
mingw32-make: *** [all] Error 2

郁闷阿,编译OPENCV太麻烦了!编译的步骤install文件里有讲解,但是makefile里的mkdir命令老是出错,
最后只能是手工建立的目录。编译highgui时又出错,按照install文件里说的:
mingw32-make -f make_all_gnu.mak - build IA32 version with gcc compiler
(Make sure that <gcc_root>\bin is in the system path.
To build VFW-enabled highgui, read instructions in
opencv\otherlibs\_graphics\readme.txt)
按照这个文件里说的,复制vc6.0里的相关头文件,覆盖掉mingw的(之前最好备份),之后编译可以了。

是编译debug的还是release的,可以在mak文件里设置。

要注意编译前备份好bin目录下的文件和lib目录下的lib文件,以免被覆盖掉。



3,编译wxWidgets
install.txt里面有安装说明

../configure --with-msw --enable-release --enable-monolithic --disable-shared --enable-odbc
配置。


NOTE: The makefile.gcc makefiles are for compilation under MinGW using
Windows command interpreter (command.com/cmd.exe), they won't work in
other environments (such as UNIX or Unix-like, e.g. MSYS where you have
to use configure instead, see the section below)

make -f makefile.gcc BUILD=debug
用这个会出错,可能是因为环境里面已经有了mkdir等命令,不能使用cmd自带的了。

opencv的make_all_gnu.mak和wxWidgets的makefile.gcc都是利用cmd.exe的。



开始从网上看到,opencv不用再编译就可以,但是实验着不行,编译连接都没有事,就是执行的时候程序崩溃,提示内存访问越界。这里有mingw与vc的dll之间相互调用的解答:http://wyw.dcweb.cn/dllfaq.htm,但还不是很具体,google,baidu了一天多,有可能是以下情况:


1,Now for MinGW programs calling an MSVC DLL. We have two methods.
One way is to specify the LIB files directly on the command line after the main program (in newer MinGW versions;
MinGW GCC 2.95.2 is reported not to work). For example, after


cl /LD testdll.c


use


gcc -o testmain testmain.c testdll.lib


高版本的不支持?


2,对于静态库,如d3dx.lib在pre-April 2005 SDK,我们就没有必要使用reimp。只是在编译链接的链接阶段,把它作为object文件加以链接。如:


G++ test.cpp d3dx.lib o test.exe


静态库可以,动态库不可以这样用?


3,> I tried linking something by putting ftd2xx.lib directly on the command line
> and it appeared to work (no errors) but examining the import table shows
> that something is wrong and that it would cause an application to crash.
There is a bug in latest binutils RC that does the wrong thing with MSVC import
libs. The bug was not in older binutils and it is fixed in CVS.


http://marc.info/?l=mingw-users&m=107687856431472&w=2


这是一个bug???


晕死!估计是bug的可能性比较大,因为编译链接没有问题,说明在引入库中找到了函数入口。执行的时候没有提示"找不到函数入口",说明在dll中也找到了函数入口,内存访问越界,应该是参数的传入,释放等有问题!


使用第二种方法是可以的。



2008年1月5日星期六

meet you is my the most beautiful accident


so suffering! why this happen ?
it's like a dream, but a nightmare, that I will never can get out.
sometimes I feel lonely, I feel helpless, I don't know how can I get
out of it, how can I walk on, how can I feel happy, how can I feel I
am doing something, I don't know, I really don't know.
My heart is trapped in a cage and never get out. where is the end?
I can't see future.
I need help , but who can give me a help, only I can help myself, BUT
i DON'T know where I am? I am always struggling. I have been thought that
I can concentrate on research, study may be, but I really can't, I AM crazy,
I am stupid, may be I am go though something that i must go though.
OMG! Please help me!


2008年1月3日星期四

男人



http://www.daxia.com/bibis/moredata.asp?id=53639&syid=1235336










说说我的事吧,可能以后说的机会就少了




帖子编号: 1235336帖子类型:10 发表用户:普鲁士兰 发表时间:2008-1-2 13:55:04 访问次数:404 发贴IP:221.201.152.174 投票加精0 删除此贴 修改此贴

文章内容:

我和我的女友是高中同学,01年我俩大学毕业。3年后也就是04年,要准备结婚,然而她一次不经意的疼痛,去了医院做了检
查。2004年8月7号作了将近一天的手术,结果也出来了,癌症。同时医生也做出了5年的时间的预言。到今年前前后后作了3次
大手术。在这期间我包括她一直没有放弃生的希望。我一直很乐观的去面对。一直陪伴她,她也很坚强。然而事实就是这样残
酷。这个冬天她的状态很不好。现在真的要面对生离死别的现实,我真的接受不了。。。










>>相关帖子>>