- 博客(9)
- 资源 (8)
- 收藏
- 关注
原创 c和指针的9:12题解,个人觉得比答案给的好
char ASIIC[30] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int prepare_key(char * key) { int i = 0; char * copy = strdup(key); while(*copy != NUL) { *co
2013-12-01 20:18:59 722
原创 android的ndk里面编译boost
一:背景工作需要,要在android里面使用boost库,但是使用方法不是供界面通过jni的方法调用,而是只需要编译以后供c/c++的应用程序调用就好。平台使用的是atom的,所以本来如果不求甚解的话,我可以直接使用linux下的编译方法,通过静态编译就可以开发应用程序了;但是为了更好了的理解ndk,我还是决定要在ndk下面编译通过。二:首先遇到的问题是,ndk下载以后
2013-08-07 10:22:08 2881
原创 python3运行中的一些问题
1:几个月前交叉编译了python3,一直没有使用;最近工作需要又开始折腾,首先遇到的问题就是一些内置的模块找不到:time等等;经过上网搜索,发现是Modules/Setup需要打开一些没有编译的文件,比如上文提到了time;打开后会遇到_Pytime_DoubleToTimet找不到的问题,下载一个timemodule.c补上那个函数就可以了接着编译还会遇到make:
2012-12-28 13:39:25 2016 1
原创 交叉编译python3.2
最近由于工作需要,在tcc8900的板子上面交叉编译了python3.2为了备忘和有需要的朋友参考,将步骤记录下来;首先都是需要下载http://www.python.org/ftp/python/对应版本;Python-3.2.2.tar.bz2然后执行:tar -xvzf Python-3.2.2..tarbz2cd Python-3.2.2
2012-05-24 18:11:02 3769
原创 ubuntu10.04启动流程
关于linux的启动流程已近有很多人讨论过,但是很多时候都不是适合自己;这就是linux版本差异造成的,比如目前我看的10.04版本,就和很多网上的帖子论述的不一样所以需要自己边看边实验;大致的顺序就是:/etc/init.d/rc-sysinit.sh/etc/init.d/rcS/etc/init.d/rc S/etc/rcX.d/*然后就是用户相关的/et
2011-12-19 17:44:23 525
原创 关于在ubuntu下面添加自启动脚本的方法
我们需要依据upsatart启动机制,在/etc/init.d/里面添加要增加的脚本比如cat 》onlytestecho “I am here!”CTRL+D然后修改文件权限chmod a+x onlytest最后运行系统的perl脚本sudo updata-rc.d onlytest default 98删除的方法sudo update-rc.d -f
2011-12-19 10:36:19 474
原创 linux下隐藏鼠标的方法
最近工作需要,调查了一下如何在界面启动以后不显示鼠标光标,但是触摸屏可以正常工作,现将方法总结一下:1:使用XCursor Transparent Theme 方法下载xcursor-transparent-theme-0.1.1.gz,解压;编译,安装;./configurecd cursorsmake install-data-local DESTDIR=/home/use
2011-12-17 10:27:38 5946 1
原创 linux下网卡配置
linux系统安装完,以后通过命令模式配置网卡IP。配置文件通常是/etc/sysconfig/network-scripts/ifcfg-interface-name1.配置网卡IP地址vi /etc/sysconfig/network-scripts/ifcfg-eth0 #第二块网卡:vi /etc/sysconfig/network-scripts/ifcfg-eth1DEVI
2009-12-31 14:42:00 2068
原创 shell中的反引号与$()区别
今天在现在了ldd3的代码,运行scull中的scull_load的时候弹出如下错误:[root@localhost scull]# ./scull_loadawk: cmd. line:1: /=="scull" {print /}awk: cmd. line:1: ^ backslash not last character on linemknod: wrong number
2009-11-08 16:05:00 1811
A Little C Primer
2013-08-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人