Luvcview camera program to cortex A8 installation transplant

Source: Internet
Author: User

Luvcview Camera program to cortex A8 installation transplant

 

1.
Overview

1.1. purpose of writing

In order to facilitate everyone to understand Luvcview installation use, special writing this document to provide you with reference learning. 2. Summary of Experience 2.1. SDL Multimedia Library

2.1.1. Luvcview run relies on the SDL multimedia library, download the SDL source package, and cross-compile 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 mkdir sdl-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

Xxxxxxxxxxxxxxxxxxx

Notes

Error

./src/audio/dma/sdl_dmaaudio.c:in function ' Dma_waitaudio ':

./src/audio/dma/sdl_dmaaudio.c:166:error:impossible constraint in ' ASM '

Make: * * * [Build/sdl_dmaaudio.lo] Error 1

--DISABLE-VIDEO-X11 (This entry can be compiled and compiled without this error)

2.1.2. Installing the SDL Library

#cp ~/luvcview-20070512-arm/luvcview (PC)/home/boot/(Development Board) 2.2. USB Camera Program Luvcview

2.2.1. Download Luvcview standard source package, cross-compile Luvcview

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

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

#cd Luvcview-2007-0512-arm

#vim Makefile

Makefile should be modified as follows

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

# 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 + =

#X11_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.o utils.o v4l2uvc.o GUI.O

All:luvcview

Notes

A section beginning with "+" for each line, representing the part that needs to be modified or added

#make (The Luvcview program can be compiled successfully)

2.2.2. Install Luvcview

#cp/usr/local/sdl-arm-linux-gcc4.3.3/(PC)/USR/LOCAL/SDL-ARM-LINUX-GCC4.3.3/(Development Board)

"Remark": Can be copied by U disk 2.3. Set TV (LCD) display parameters

Disconnect the USB connection from the virtual machine, remove the SD card into the Development Board, start the Development Board on the electricity, press the space key when starting, enter the BIOS, set the CRT display parameter:

2.3.1. TV Display

#setenv Dvimode 800x600mr-16@60

#setenv Defaultdisplay TV

#saverenv

#boot

2.3.2. LCD display

#setenv Dvimode 1024x768mr-16@60

#setenv Defaultdisplay DVI

#saverenv

#boot

2.4 Setting Linux environment Variables

2.4.1 contains the environment variables for QT installation

#vim Etc/profile

Export Ld_library_path=/usr/local/sdl-arm-linux-gcc4.3.3/lib: $LD _library_path

Export ld_library_path=/usr/local/qt-emembeded-4.7.3-arm-linux/lib:/usr/local/qt-mobility-1.2.0-lib/lib:/usr/ Local/tslib/lib: $LD _library_path

Export Path=/usr/local/qt-emembeded-4.7.3-arm-linux/bin: $PATH

Export qt_qws_fontdir=/usr/local/qt-emembeded-4.7.3-arm-linux/lib/fonts/$QT _qws_fontdir

Export sdl_nomouse=1

2.4.2. Install the SDL library separately, setting environment variables:

#vim E

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.