fix test build issue on a clean system
authorAustin Yuan <shengquan.yuan@intel.com>
Tue, 1 Dec 2009 03:45:51 +0000 (11:45 +0800)
committerAustin Yuan <shengquan.yuan@intel.com>
Tue, 1 Dec 2009 03:45:51 +0000 (11:45 +0800)
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
test/basic/Makefile.am
test/decode/mpeg2vldemo.c

index 78eabcb..24de161 100644 (file)
@@ -23,6 +23,8 @@
 bin_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
                test_07 test_08 test_09 test_10 test_11
 
+AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
+
 TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)
 
 test_01_LDADD = $(TEST_LIBS)
index 945b69d..d62f1c2 100644 (file)
@@ -28,7 +28,7 @@
  * "mpeg2-I.m2v" and VA parameters are hardcoded into mpeg2vldemo.c,
  * See mpeg2-I.jif to know how those VA parameters come from
  *
- * gcc -o  mpeg2vldemo  mpeg2vldemo.c -lva -lva-x11
+ * gcc -o  mpeg2vldemo  mpeg2vldemo.c -lva -lva-x11 -I/usr/include/va
  * ./mpeg2vldemo  : only do decode
  * ./mpeg2vldemo <any parameter >: decode+display
  *
@@ -47,8 +47,8 @@
 
 #include <assert.h>
 
-#include <va/va.h>
-#include <va/va_x11.h>
+#include "va.h"
+#include "va_x11.h"
 
 #define CHECK_VASTATUS(va_status,func)                                  \
 if (va_status != VA_STATUS_SUCCESS) {                                   \