Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4460884
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

发布时间:2018-04-14 10:51:40

我的系统是opensuse修改/etc/samba/smb.conf添加[share]    comment = Shared Folder    path = /home/zengming/download/share    public = yes    writable = yes    create mask = 0700    directory mask = 0700.........【阅读全文】

阅读(2532) | 评论(0) | 转发(0)

发布时间:2018-02-03 10:30:43

先装jdkhttp://www.oracle.com/technetwork/java/javase/archive-139210.htmldownload java SE 6http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.htmlJava SE Development Kit 6u45jdk-6u45-linux-i586.binregistery firstdownloadrun$./jdk-6u45-lin.........【阅读全文】

阅读(1556) | 评论(0) | 转发(0)

发布时间:2017-10-14 23:19:12

google测试框架gtest编译与示例
git clone https://github.com/google/googletestcd googletestmkdir buildcd build默认是生成静态库执行cmake ../-- The CXX compiler identification is GNU 4.8.5-- The C compiler identification is GNU 4.8.5-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/.........【阅读全文】

阅读(2638) | 评论(0) | 转发(0)

发布时间:2017-10-04 16:01:04

主要讲下c/c++的,xptemplate c++会有些代码会帮你自动完成,但是代码格式可能并不是我们想要的,怎么办,可以通过修改配置解决1)修改()中的空格假设是c++(只针对c++)则在ftplugin/cpp下新建个.vim文件 .vim/ftplugin/cpp/zm.vim添加如下内容:XPTemplate priority=personalXPTvar $SParg   ''或者在vimrc.........【阅读全文】

阅读(1912) | 评论(0) | 转发(0)

发布时间:2017-09-27 15:57:13

环境ubuntu内核Linux ntt-misc 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux部分ssl代码:ssl_method = SSLv3_server_method();ssl_ctx = SSL_CTX_new(ssl_method);if (ssl_ctx == NULL){    // 这里可能出错退出    ERR_print.........【阅读全文】

阅读(1950) | 评论(0) | 转发(0)

发布时间:2017-07-11 18:32:04

首先下载busybox源码解压比如我的是busybox-1.23.2, 交叉工具是arm-none-linux-gnueabi-gcc进入配置,跟配置内核差不多,用menuconfigmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig选择自己要的功能,退出后保存配置然后编译:make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- CFLAGS="-I.........【阅读全文】

阅读(9531) | 评论(0) | 转发(3)

发布时间:2017-05-02 22:07:45

Binary String Matching时间限制:3000 ms  |  内存限制:65535 KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For example, the text string B is.........【阅读全文】

阅读(1344) | 评论(0) | 转发(0)

发布时间:2016-08-23 16:15:14

交叉编译精简版mplayer出错:libmpcodecs/vd_lzo.o: In function `decode':vd_lzo.c:(.text+0x70): undefined reference to `av_lzo1x_decode'libmpdemux/demux_mkv.o: In function `demux_mkv_decode.clone.5':demux_mkv.c:(.text+0xe1c): undefined reference to `av_lzo1x_decode'sub/sub.o: In function `vo_updat.........【阅读全文】

阅读(2083) | 评论(0) | 转发(0)

发布时间:2016-07-30 17:05:28

实现目的:外网访问内网1) 从www.pubyun.com申请动态域名,2) 连客户端都不用安装,也不用配置文件,不用知道IP,使用lynx(一般的Linux,BSD都自带),就可以了! 使用方法:lynx -mime_header -auth=用户名:密码 "http://members.3322.net/dyndns/update?system=dyndns&hostname=域名"详细描述可参照官网 http://ww.........【阅读全文】

阅读(3942) | 评论(0) | 转发(0)

发布时间:2016-07-26 11:05:58

linux opensuse下virtualbox识别USBopensuse Tumbleweed滚动版,  virtualbox5.0.16问题:在设置-USB设备中--添加USB设备选项中显示没有可用设备1) 首先要安装 VirtualBox guest tools, 设置-USB设备--启用USB设备(选择USB2.0)2) 其实将当前用户加入到vboxusers组中sudo usermod -a -G vboxusers $USER3) 插上.........【阅读全文】

阅读(2063) | 评论(0) | 转发(0)

发布时间:2016-07-08 13:54:28

想编译一个最精简版本的mplayer, 想把./configure中的所有选项都disable掉比如需要把下面的选项加入到编译选项中,首先使用:%s/--enable/--disable/g 把 enable的都换成diable:%s/  --//g并把--前面的空白删除  --enable-gui           enable GMPlayer .........【阅读全文】

阅读(4009) | 评论(0) | 转发(0)

发布时间:2016-07-07 16:07:53

mplayer1.0.rc3/opt/sun5i/中存放mplayer要用到的库与头文件,此例使能faad库,使之能够播放m4a, 如果不需要可以删除 faad两个enable选项PKG_CONFIG_PATH=/opt/sun5i/lib/pkgconfig \./configure \--enable-alsa \--enable-faad-fixed \--enable-faad \--cc=arm-none-linux-gnueabi-gcc  \--target=arm-linux .........【阅读全文】

阅读(2581) | 评论(0) | 转发(0)

发布时间:2016-06-18 11:58:30

首先要安装有sox软件这是一个强大的转换软件,不局限于wavfor sound in `ls *.wav`; do sox $sound -b 16 -r 16000 16-$sound; done-r是指定rate,如果不需要可以去掉。......【阅读全文】

阅读(2900) | 评论(0) | 转发(0)

发布时间:2016-04-23 09:52:27

到以下网址下载源码http://www.audiocoding.com/downloads.html我下的是faad2-2.7.tar.bz2tar -xvf faad2-2.7.tar.bz2cd faad2-2.7交叉编译器是arm-none-linux-gnueabi-gcc,安装到/opt/sun5i编译(内容根据你自己的交叉编译器名改变):configure --host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc --e.........【阅读全文】

阅读(4302) | 评论(1) | 转发(0)

发布时间:2016-04-08 14:37:34

mqtt协议是最近比较流行的即时推送的协议到 http://mosquitto.org/download/ 下载源码或者跟我一样我直接下git$ git clone git://git.eclipse.org/gitroot/mosquitto/org.eclipse.mosquitto.git$ cd  org.eclipse.mosquitto/ 编译pc平台的$ make WITH_SRV=no运行$ cp src/mosquitto mosquitto_pc$ cp client/.........【阅读全文】

阅读(15311) | 评论(0) | 转发(0)

发布时间:2016-03-02 18:19:58

soapcpp2 -i bike.h 问题:**  The gSOAP code generator for C and C++, soapcpp2 release 2.8.17r**  Copyright (C) 2000-2013, Robert van Engelen, Genivia Inc.**  All Rights Reserved. This product is provided "as is", without any warranty.**  The soapcpp2 tool is released under o.........【阅读全文】

阅读(3281) | 评论(0) | 转发(0)

发布时间:2016-02-20 17:05:33

在程序自动升级的时候需要自己重新启动自己示例代码:点击(此处)折叠或打开#include <unistd.h>#include <stdio.h>#include <stdlib.h>int main(int argc, char **argv){    char buf[.........【阅读全文】

阅读(4968) | 评论(0) | 转发(0)

发布时间:2016-02-19 16:49:05

当前目录所有mp3转wav,需要安装mpg123for mp3file in `ls *.mp3`; do mpg123 -w $mp3file.wav $mp3file; done;如果要转成16KHZ的for mp3file in `ls *.mp3`; do mpg123 -r 16000 -w $mp3file.wav $mp3file; done;重命名rename .mp3.wav .wav *.mp3.wavwav批量转spx,需要安装speexencfor wavfile in `ls *.wav`; do.........【阅读全文】

阅读(2056) | 评论(0) | 转发(0)

发布时间:2015-11-24 20:34:29

从datasheet中查到IO口寄存器基地址Base Address:0x01C20800PE口的寄存器PE Data Register 偏移offset: 0xA0,那么PE_DAT地址就是0x01C208A0现在要访问PE4的值,PE4就是0x01C208A4程序如下:点击(此处)折叠或打开#include <stdio.h>#include <stdlib.h>#include.........【阅读全文】

阅读(7017) | 评论(0) | 转发(0)

发布时间:2015-11-02 18:13:00

make make -C /benew/hello/../linux-3.0 M=/benew/hello modules make[1]: Entering directory '/benew/linux-3.0'  CC [M]  /benew/hello/hello.o In file included from include/linux/compiler.h:48:0,                .........【阅读全文】

阅读(22810) | 评论(0) | 转发(0)

发布时间:2015-10-14 20:46:27

virtualbox 启动问题不能为虚拟电脑 xp 打开一个新任务.Failed to load VMMR0.r0 (VERR_SUPLIB_OWNER_NOT_ROOT).返回 代码:NS_ERROR_FAILURE (0x80004005)组件:Console界面:IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}查找问题在哪ls -l /drwxr-xr-x ?13 abc ?test ? 4096 6月 ? 7 2.........【阅读全文】

阅读(3046) | 评论(0) | 转发(0)

发布时间:2015-08-24 11:10:24

交叉编译zlib  到http://www.zlib.net/下载zlib源码,生成Makefile./configure --prefix=/opt/sun5i/   
修改Makefile,替换里面的gcc成arm-none-linux-gnueabi-gcc
AR=ar改成AR=arm-none-linux-gnueabi-ar  
make
make install

交叉编译lzo   (http://blog.........【阅读全文】

阅读(3596) | 评论(0) | 转发(0)

发布时间:2015-08-24 10:57:07

首先下载lzo源码<br />http://www.oberhumer.com/opensource/lzo/download/<br />解压<br />tar -xvf lzo-2.09.tar.gz&nbsp;<br /><div>cd&nbsp;lzo-2.09<br />编译<br /><div>./configure --prefix=/opt/sun5i/ CC=arm-none-linux-gnueabi-gcc --host=arm-none-linux-gnueabi --enable-shared<br />make<br /.........【阅读全文】

阅读(2218) | 评论(0) | 转发(0)

发布时间:2015-07-28 12:35:23

ftp://ftp.alsa-project.org/pub/utils/<br />下载最新版的alsa-utils<br />解压代码<br />&nbsp;tar -xvf alsa-utils-1.0.9.tar.bz2&nbsp;<span style="line-height:1.5;"><br />cd alsa-utils-1.0.9/<br />配置,需要先编译alsa-lib,我已经编译好安装到/opt/sun5i目录下,alsa-lib编译请参照<a href="http://blog.chi.........【阅读全文】

阅读(2942) | 评论(0) | 转发(0)

发布时间:2015-07-18 14:23:16

板子上需要控制声音,试过salsa的库(精简版的alsa),功能有些受限,在PC上测试无法正常获取声音大小,打算采用alsa
http://www.alsa-project.org/main/index.php/Download
下载.........【阅读全文】

阅读(4653) | 评论(3) | 转发(0)
给主人留下些什么吧!~~

chinaunix网友2011-02-15 16:05

看了你的博文,有这么多的体会,很佩服你的学习精神,总结出来写本书如何?我的联系方式:wuyi1352@gmail.com

回复 |  删除 |  举报

chinaunix网友2009-06-11 17:22

你好,问一下SendARP探测活动性的那是原原本本的程序吗,不缺什么吧?我运行之后SendARP的返回值总是31.不知道为什么,麻烦帮忙看看,谢谢了!

回复 |  删除 |  举报

chinaunix网友2009-05-14 17:00

文章都很好 收藏了

回复 |  删除 |  举报

wjksd2009-04-17 11:24

很厉害啊

回复  |  举报

chinaunix网友2008-11-09 16:44

师兄,我来像你学习来啦! 嘎嘎!

回复 |  删除 |  举报
留言热议
请登录后留言。

登录 注册