自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(60)
  • 资源 (1)
  • 收藏
  • 关注

原创 fb直接渲染

#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include stati

2016-06-21 20:53:17 589

转载 drm直接画图

#define _FILE_OFFSET_BITS 64#include #include #include #include #include #include #include #include #include //找到处于连接状态的ConnectordrmModeConnector* FindConnector(int fd){    d

2016-06-21 20:45:02 4562 7

原创 编译问题

1 编译出.o文件,但是还是提示某个函数没有定义,很可能是在源代码中存在一个同名的文件错误的编译了。2 某些文件没有自动编译,很可能在别的目录存在相应的.o文件,导致make过程中误以为已经编译完成。

2016-04-07 09:49:37 438

原创 linux 起步走 platform_driver_register

static struct platform_driver mxc_v4l2_driver = { .driver = { .name = “mxc_v4l2_capture”, .owner = THIS_MODULE, .of_match_table = mxc_v4l2_dt_ids, }

2016-03-09 17:46:33 945

转载 内核调试技术

转载Rockie Cheng最近在调试Linux内核,跟踪启动过程。发现在没有turn on mmu之前,可以使用物理地址,通过向串口Fifo丢数据的方式输出调试信息。但是代码一旦运行到开启mmu,在汇编阶段,mmu只做了物理内存的映射,并没有映射io,所以就无法访问串口了。此时应该通过串口输出的数据都保存在串口缓冲池里,直到在c语言阶段,建立io映射并初始化控制台后才进行输出。但是,如果我想实时跟

2016-02-24 09:31:54 2637

原创 printk 优点

printk可以设置log等级,系统启动之后可以通过 echo 1 > /proc/sys/kernel/printk 调节log的输出,方便调试!

2016-01-15 14:13:12 385

原创 x11输入系统和驱动衔接注意

x11 系统一般有两种方式,evdev和tslib,tslib不支持多点触摸。驱动在实现上,不能只是单单支持多点协议,而且要支持单点协议,注册设备类型不可以是touch-pad,touch-pad对应的是相对坐标,触摸屏上报的这是绝对坐标,不匹配的话会导致evdev不上报触摸事件。

2016-01-14 17:04:43 803

原创 摄像头采集,framebuffer显示

#include  #include #include #include #include #include                 #include  #include  #include  #include  #include  #include  #include  #include  #include    

2015-12-09 10:14:02 1973

原创 linux模拟按键

#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <sys/fcntl.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <sys/time.h>#include <linux/input.h>int main (){ int keys_fd

2015-06-30 11:17:33 609

转载 linux下触摸屏应用编程

2008-12-01 14:54:07| 分类: 触摸屏类 |举报 |字号 订阅下载LOFTER客户端触摸屏相关的文件定义在drivers/input/touchscreen/下,输入设备相关的文件主要有drivers/input/input.c input.h另外一个参考博客:http://blog.chinaunix.net/u2/66024/showart_674042.html以下是转载部

2015-06-29 16:43:34 1018

转载 linux驱动模块

makefile文件obj-m = hello.oKERNALPATH = /home/nap/b0/yocto/build/tmp/work/xse_j6_sgm358-poky-linux-gnueabi/linux-ti-glsdk/3.8.13-xse-r8.9+r0320b2eac19ff9fbc0f06f12bcc8a887860ce45b/gitCC = /home/nap/gcc-l

2015-06-11 10:46:20 343

转载 gdb结合coredump定位崩溃进程

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2015-05-18 14:55:57 371

原创 js脚本格式化工具

http://tool.chinaz.com/Tools/JsFormat.aspx

2014-12-22 16:55:52 433

原创 can't create /.object/main.o: No such file or directory

这有可能是权限的问题,编译器不能在指定的目录创建.object文件夹所以报错。

2014-12-10 17:16:08 3514 2

原创 ../lib/crt1.o: In function `_start':

出现以上错误是因为你改变了 gcc 或者是 arm-gcc-xxx的 sysroot,gcc -v 看一下,把默认sysroot下面的库拷贝到你指定的sysroot即可。

2014-11-27 16:22:41 4557 1

原创 /bin/sed: can't read =xxxx: No such file or directo

这是由于libtool 的版本太低了,到别的源代码包里面找一个libtool复制过来jiu

2014-11-13 09:56:35 4991

原创 拷贝构造函数中访问私有成员

Complex(const Complex & c)        {                // 将对象c中的数据成员值复制过来                m_real = c.m_real;                m_img    = c.m_img;        }      偶然在网上看到

2014-11-03 12:55:06 543

转载 android4.0.1 webkit video 标签播放过程分析

HTMLDocumentParser.cpp 解析HTML源文件遇到video标签时,会调用自动生成的HTMLElementFactory中的方法createHTMLElement()这个方法根据tag name 在ConstructorFunctionMap中找到videoConstructor。并调用HTMLElementFactory::videoContructor.vid

2014-09-10 17:32:24 875

转载 Webkit学习 --- 解析HTML获取网页子资源流程

接上篇的加载主资源流程后,流程走到了DecodeDataDocument的appendBytes接口,在这个接口里,调用了传来的DocumentWrite的createDecodeIFneed接口,创建TextResourceDecode,参数为下载了的HTML文件的mimetype和setencode等进行设置,然后通过TextResourceDecode的decode接口进行HTML的解码工作

2014-09-10 12:14:05 1443

转载 Webkit学习 ----网页资源的构建加载流程

分类: C/C++      Webkit的作用在这就不多做介绍了,本篇主要还是个人在源码分析了webkit之后的心得总结!      webkit有上千个类,在这么错综复杂的结构里看流程无疑找死,好吧,用GDB调试看吧!      环境:webkit + Qt4.8.4 + gdb      调试之前,当然先要生成调试版本的程序了,关于调试环境的搭建后续文章会阐述。。。。

2014-09-10 11:25:12 452

转载 webkit加载网页

一、读取url以下内容部分引自http://blog.csdn.net/dlmu2001/article/details/5936122http的协议细节实现并不需要WebCore来关注,WebCore要关注的是,如何设置请求的相关头部信息,如何获取服务器返回回来的响应体部数据。WebKit中同http打交道的类主要是ResourceRequest,Resource

2014-09-09 23:21:51 2991

原创 交叉编译gstreamer

编译gstreamer 1.3.2 gst-plugins-base-1.3.2 gst-plugins-good-1.3.2 gst-plugins-bad-1.3.2 gst-plugins-ugly-1.3.2export PKG_CONFIG_PATH=/home/nap/xselib/sysroot-xse-j6-sgm358/usr/lib/pkgconfigexport

2014-09-04 08:29:09 6754

转载 qtwebkit插件

http://blog.chinaunix.net/uid-12845622-id-2978340.html

2014-08-27 19:02:10 518

原创 交叉编译 ffmpeg

./configure --enable-cross-compile --cc=arm-linux-gcc --enable-gpl --arch=armv4l --enable-shared --target-os=linux --disable-mmx --disable-network --enable-armv6t2 --enable-armvfp --disable-yasm

2014-08-26 22:08:33 3676

原创 交叉编译gstreamer

编译 gstreamer-1.3.2export CFLAGS="-I/home/mywork/mylib/include -L/home/zhaowei/mywork/mylib/lib"export CPPFLAGS="-I/home/mywork/mylib/include -L/home/zhaowei/mywork/mylib/lib"./configure --build=

2014-08-05 23:09:45 886

原创 linux 交叉编译找不到库文件

网上大众的作法这里不做介绍我遇到

2014-07-30 10:02:43 5180

原创 lib

export CC=arm-linux-gnueabihf-gccexport PKG_CONFIG_PATH=/home/zhaowei/mywork/mylib/lib/pkgconfigexport WLD=/home/zhaowei/mywork/mylibexport COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-se

2014-07-21 07:25:08 696

原创 libtool eval: 1: libtool_args+=: not found

更换Linux shell环境为bashlibtool eval: 1: libtool_args+=: not foundlibtool eval: 1: libtool_args+=: not foundlibtool eval: 1: compile_command+=: not foundlibtool eval: 1: finalize_command+=

2014-07-20 10:06:29 1500

原创 configure之后没有生成libtool

更换高版本的源代码重新编译就好

2014-07-20 09:35:17 1536

原创 编译attr-2.4.45不能通过,换个库attr-2.4.47就好了

编译attr-2.4.45不能通过,换个库attr-2.4.47就好了

2014-07-20 09:08:28 726

转载 ssssss

软件包:udev下载地址:http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/软件包libacl1-dev下载地址:http://packages.debian.org/lenny/libacl1-dev软件包:gperf下载地址:http://ftp.gnu.org/gnu/gperf/软件包:gettext下载地址

2014-07-19 23:23:23 4517

原创 error storage size of 'pwbuf' isn't known

//#ifdef HAVE_GRP_H   #include //#endif//#ifdef HAVE_PWD_H #include //#endif

2014-07-19 23:16:21 572

转载 checking if malloc() and friends prototypes are gmem.h compatible

在交叉编译的时候总是使用configure --host=arm-linux 嘿嘿但是在CONFIGURE中有很多的测试程序是不可以在HOST上运行的就会出现: error: cannot run test program while cross compiling类似的错误,可以使用CACHEFILE解决这个问题,还要谢谢ABSURD兄的文章给我的指导。我是这样解决的第一步:记录下错误的

2014-07-19 17:54:13 976

转载 Looking for a four-byte integer type... Not found.

Looking for a four-byte integer type... Not found.由于zlib并非使用的标准autotools,没有考虑交叉编译的情况,这个错误是执行测试程序导致的,用于检测32bit整型是int还是long还是别的,该错误无关紧要,忽略即可

2014-07-19 00:28:50 1571

转载 configure.ac:261 error:must install xorg-macros 1.1.3 or later before running autoconf/autogen

编译Mono时报下面的错误:configure.ac:261 error:must install xorg-macros 1.1.3 or later before running autoconf/autogen经过调查,发现修改一下PKG_CONFIG_PATH的设置即可export PKG_CONFIG_PATH=/usr/local/xorg/lib/pkgcon

2014-07-17 15:26:06 906

转载 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误

解决安装软件时的/usr/local/lib/libz.a(compress.o)错误在安装 php 时,需要先安装 gd-2.0.33.tar.gz , 但在编译 gd-2.0.33.tar.gz 时出现了如下错误: /usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a lo

2014-07-13 21:59:39 1709

转载 zlib 交叉编译

步骤一: ./configure 步骤二: zlib库提供的configure配置不支持配置编译器,故需要手动更改Makefile。此处我们只需要编译静态库,故all: static shared all64   改为 all: static #shared #all64 (类似./configure --static) 修改编译器:静态库没有用到CPP和LDSHARED功能,

2014-07-13 17:33:04 2086

转载 linux-gcc 编译时头文件和库文件搜索路径

linux-gcc 编译时头文件和库文件搜索路径一、头文件  gcc 在编译时寻找所需要的头文件 :  ※搜寻会从-I开始  ※然后找gcc的环境变量 C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,OBJC_INCLUDE_PATH  ※再找内定目录/usr/include  /usr/local/include/usr/lib

2014-07-13 17:22:42 416

转载 Ubuntu serching for a valid kernel header

Ubuntu 13.04安装VMware Tools,解决无法找到kernel header path的问题 Ubuntu 13.04 安装 VMware Tools,运行vmware-config-tools.pl 时,总是提示The path "" is not valid.What is the location of the directory of C header fi

2014-07-13 10:28:30 354

原创 cannot execute binary file

arm-linux-gcc  换成 gcc !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2014-05-31 22:56:48 1179

linux0.11源码注释

早期的linux代码分析,代码量少,最适合入门

2013-09-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除