上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 76 下一页
摘要: LM393输入大于6V时,输出为高电平;负电压时全是输出高电平。 阅读全文
posted @ 2015-03-09 13:51 ahuo 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 使用ffmpeg类库进行开发的时候,打开流媒体(或本地文件)的函数是avformat_open_input()。其中打开网络流的话,前面要加上函数avformat_network_init()。一般情况下,只要传入流媒体的url就可以了。但是在打开某些流媒体的时候,可能需要附加一些参数。例如在播放中... 阅读全文
posted @ 2015-03-06 12:12 ahuo 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-03-01 17:44 ahuo 阅读(480) 评论(0) 推荐(0) 编辑
摘要: Valgrind 是一款 Linux下(支持 x86、x86_64和ppc32)程序的内存调试工具,它可以对编译后的二进制程序进行内存使用监测(C语言中的malloc和free,以及C++中的new和delete),找出内存泄漏问题。 Valgrind 中包含的 Memcheck 工具可以检查以下... 阅读全文
posted @ 2015-01-22 10:41 ahuo 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 10K电位器并联10K电阻,调整范围0~5K,只要并联的电阻和电位器电阻比大于80% 曲线还是比较直的,可以保持相对线性。并联2k时,0~1K之间非常陡。 阅读全文
posted @ 2015-01-07 14:20 ahuo 阅读(1420) 评论(0) 推荐(0) 编辑
摘要: apt-get install mingw32int main(int argc, char *argv){printf("Windows Compiler Test\n");return 0;}i586-mingw32msvc-gcc -o win32.exe main.c 阅读全文
posted @ 2014-12-30 10:35 ahuo 阅读(556) 评论(0) 推荐(0) 编辑
摘要: R=2.5的内径圆,需要R=2.2的圆柱才能吻合,否则插不进去。 阅读全文
posted @ 2014-12-25 16:58 ahuo 阅读(195) 评论(0) 推荐(0) 编辑
摘要: strace命令详解strace 命令是一种强大的工具,它能够显示所有由用户空间程序发出的系统调用。 strace 显示这些调用的参数并返回符号形式的值。strace 从内核接收信息,而且不需要以任何特殊的方式来构建内核。 下面记录几个常用 option . 1 -f -F选项告诉strace... 阅读全文
posted @ 2014-12-08 11:13 ahuo 阅读(2200) 评论(0) 推荐(0) 编辑
摘要: ./configure --prefix="/root/code/install/x86" CPPFLAGS="-I/root/src/include" LDFLAGS="-L/usr/local/lib -L/root/code/x86/sqlite"动态链接AUTOMAKE_OPTIONS=fo... 阅读全文
posted @ 2014-11-27 14:22 ahuo 阅读(440) 评论(0) 推荐(0) 编辑
摘要: ftp必须用二进制模式上传才可以sqlite3arm-linux-gcc hello.c -o hello.cgi -I /cgi/include -L /cgi/lib -static -lsqlite3 -lpthread -ldl 阅读全文
posted @ 2014-11-21 23:16 ahuo 阅读(2216) 评论(0) 推荐(0) 编辑
摘要: 用动态链接的方法: arm-linux-gcc hello.c -o hello.out -Wl,-dynamic-linker=/system/lib/ld-linux.so.3 并且拷贝文件到安卓系统目录下/system/lib/ld-linux.so.3 -static 静态链接 阅读全文
posted @ 2014-11-21 11:05 ahuo 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: 安卓下执行交叉编译的可执行文件发现提示不允许。 原因是mount的方式问题,root后运行 su mount -o rw,remount /mnt/sdcard 就可以了 mount -o rw,remount / / 新版本系统 重新挂载根目录 阅读全文
posted @ 2014-11-20 21:56 ahuo 阅读(3096) 评论(0) 推荐(0) 编辑
摘要: 问题:undefined reference to `pthread_spin_init'解:修改CMakeCache.txt,CMAKE_EXE_LINKER_FLAGS原来为空,加上-lpthread -lrt -ldl 阅读全文
posted @ 2014-11-20 15:48 ahuo 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 原因是缺少库文件,解决办法:arm-linux-readelf -a helloword | grep NEEDED 拷贝so文件到安卓下或者arm-linux-gcc hello.c -o hello -static 阅读全文
posted @ 2014-11-20 15:11 ahuo 阅读(333) 评论(0) 推荐(0) 编辑
摘要: .├── aclocal.m4├── autoscan.log├── config.log├── config.status├── configure├── configure.in├── Makefile├── Makefile.am├── Makefile.in└── src ├── f... 阅读全文
posted @ 2014-11-18 13:01 ahuo 阅读(3270) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 76 下一页