luvcview摄像头程序到Cortex A8的移植

 

 

首页Linux编程

背景:

阅读新闻

luvcview摄像头程序到Cortex A8的移植

[日期:2012-07-11]   来源:Linux社区  作者:hqyhqyhq   [字体:]  

一、下载SDL源码包,交叉编译

#tar –xzvf SDL-1.2.14.tar.gz

#mv SDL-1.2.14 SDL-1.2.14-arm

#cd SDL-1.2.14-arm/

#cd /usr/local/

#sudo mkdirSDL-ARM-linux-gcc4.3.3

#./configure CC=arm-none-linux-gnueabi-gcc--target=arm-linux --host=arm-linux --prefix=/usr/local/SDL-ARM-linux-gcc4.3.3/--enable-static --disable-shared --disable-joystick --disable-cdrom--disable-esd --disable-nasm --enable-video-x11 --enable-video-fbcon --enable-video-opengl--enable-osmesa-shared --disable-arts --without-x --enable-debug -enable-loadso--disable-video-directfb

#make

#sudo make install

error:

./src/audio/dma/SDL_dmaaudio.c: Infunction 'DMA_WaitAudio':

./src/audio/dma/SDL_dmaaudio.c:166:error: impossible constraint in 'asm'

make: *** [build/SDL_dmaaudio.lo]Error 1

--disable-video-x11(去掉此项可以编译通过,按照上面编译不会出现此错误)

二、下载luvcview标准源码包,编译luvcview

#tar xzvf luvcview-2007-0512.tar.gz

#mv luvcview-2007-0512luvcview-2007-0512-arm

#cd luvcview-2007-0512-arm

#vim Makefile

##############################

# spcaview Makefile

##############################

INSTALLROOT=$(PWD)

+CC=arm-none-linux-gnueabi-gcc

+CPP=arm-none-linux-gnueabi-g++

INSTALL=install

APP_BINARY=luvcview

BIN=/usr/local/bin

SDLLIBS = $(shell sdl-config--libs)

SDLFLAGS = $(shell sdl-config--cflags

+SDLLIBS =-L/usr/local/SDL-ARM-linux-gcc4.3.3/lib -lSDL

+SDLFLAGS =/usr/local/SDL-ARM-linux-gcc4.3.3/include

#LIBX11FLAGS +=-I/home/ema/dvsdk/ti-dvsdk_dm3730-evm_4_02_00_06/omap35x_graphics_sdk_4.00.00.01/gfx_dbg_es2.x/freedesktop/kdrive/usr/X11R6_SGX/include-L/home/ema/dvsdk/ti-dvsdk_dm3730-evm_4_02_00_06/omap35x_graphics_sdk_4.00.00.01/gfx_dbg_es2.x/freedesktop/kdrive/usr/X11R6_SGX/lib

#X11_LIB += /home/ema/dvsdk/ti-dvsdk_dm3730-evm_4_02_00_06/omap35x_graphics_sdk_4.00.00.01/gfx_dbg_es2.x/freedesktop/kdrive/usr/X11R6_SGX/lib

VERSION = 0.2.1

#WARNINGS = -Wall \

#           -Wundef -Wpointer-arith-Wbad-function-cast \

#           -Wcast-align -Wwrite-strings-Wstrict-prototypes \

#           -Wmissing-prototypes-Wmissing-declarations \

#           -Wnested-externs -Winline-Wcast-qual -W \

#           -Wno-unused

#           -Wunused

+CFLAGS +=-I/home/ema/dvsdk/ti-dvsdk_dm3730-evm_4_02_00_06/omap35x_graphics_sdk_4.00.00.01/gfx_dbg_es2.x/freedesktop/kdrive/usr/X11R6_SGX/include

CFLAGS += -DUSE_SDL -O2 -DLINUX-DVERSION=\"$(VERSION)\" -I$(SDLFLAGS) $(WARNINGS)

CPPFLAGS = $(CFLAGS)

OBJECTS= luvcview.o color.outils.o v4l2uvc.o gui.o avilib.o

all:    luvcview

#carefully:"+" means that need to amend or need to add.

linux

 

如何设置TextView控件的背景透明度和字体透明度

Android 基本文件操作命令

相关资讯       luvcview  Cortex A8 

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/pxjxx.html