标签:gnu san pre 触摸屏 运行 indent win ast clean
#!/bin/sh
./configure CC=arm-arago-linux-gnueabi-gcc --target=arm-linux --host=arm-linux --prefix=/usr/local/SDL-ARM --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
./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(加入此项可以编译通过,按照上面编译不会出现此错误)
##############################
# spcaview Makefile
##############################
INSTALLROOT=$(PWD)
+CC=arm-arago-linux-gnueabi-gcc -pthread
+CPP=arm-arago-linux-gnueabi-g++ -pthread
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/lib -lSDL
+SDLFLAGS = /usr/local/SDL-ARM/include
+TSLLIBS = -L/usr/local/tslib/lib -lts
+TSLFLAGS = /usr/local/tslib/include
#LIBX11FLAGS= -I/usr/X11R6/include -L/usr/X11R6/lib
VERSION = 0.2.4
#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 += -DUSE_SDL -O2 -DLINUX -DVERSION=\"$(VERSION)\" -I$(SDLFLAGS) $(WARNINGS)
CPPFLAGS = $(CFLAGS)
OBJECTS= luvcview.o color.o utils.o v4l2uvc.o gui.o avilib.o
all: luvcview
clean:
@echo "Cleaning up directory."
rm -f *.a *.o $(APP_BINARY) core *~ log errlog *.avi
# Applications:
luvcview: $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) $(X11_LIB) $(XPM_LIB) $(MATH_LIB) $(SDLLIBS) +$(TSLLIBS) -o $(APP_BINARY)
chmod 755 $(APP_BINARY)
install: luvcview
$(INSTALL) -s -m 755 -g root -o root $(APP_BINARY) $(BIN)
rm -f $(BIN)/uvcview
标签:gnu san pre 触摸屏 运行 indent win ast clean
原文地址:http://www.cnblogs.com/xiansong1005/p/7401448.html