expand README to include compilation instructions
authordaniel watson <ozzloy@gmail.com>
Sat, 28 Apr 2012 06:00:46 +0000 (02:00 -0400)
committerdaniel watson <ozzloy@gmail.com>
Sat, 28 Apr 2012 06:00:46 +0000 (02:00 -0400)
.gitignore
Makefile
README

index c2d6ae6cda7798c4399bf7efb69fe982d3c79296..390e1b851fcaf8fa1ee66e491b84b5a413c16de5 100644 (file)
@@ -1,3 +1,2 @@
 .*.sw?
 oble
-
index 5db009e4a31a80ae398cfe0d2c00b1b321444812..006e7ea3f04c1ed6bf6b044fe55ec73ce61ab029 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ OBJS = idle_x11.o oble.o
 idle_x11.o: idle_x11.h
 oble.o: oble.h
 
-oble: $(OBJS) haarcascade_frontalface_alt.xml
+oble: $(OBJS)
        gcc $(OBJS) $(LDFLAGS) -o $@
 
 #haarcascade_frontalface_alt.xml:
@@ -18,8 +18,8 @@ oble: $(OBJS) haarcascade_frontalface_alt.xml
 test: all
        ./oble -c haarcascade_frontalface_alt.xml
 
-dependencies:
-       sudo aptitude install -y libxss-dev
+ubuntu-dependencies:
+       ./initial_oble_setup_ubuntu.bash
 
 clean:
        rm -rf oble *.o
diff --git a/README b/README
index 37340145e2d781d935e63026b7b0d5b20c735ff5..154e64dcfe0c4eafea501e360acb39020d3116db 100644 (file)
--- a/README
+++ b/README
@@ -3,3 +3,16 @@ prevent the system from sleeping when a user is looking at the screen.
 this is accomplished using a camera and opencv to detect a face.
 
 this readme is woefully short.
+
+you'll need to get a file called
+haarcascade_frontalface_alt.xml
+i was able to get it with this:
+  wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml
+
+i'm not sure what the rules are on distributing this file, so you'll
+have to get it yourself
+
+if you're on ubuntu:
+make ubuntu-dependencies
+make
+make test # assumes you have haarcascade_frontalface_alt.xml in current dir