summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-12-01 11:45:51 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2009-12-01 11:45:51 +0800
commitb7c8a2ec0df485ed38cde9f1675e6e152a013989 (patch)
tree97c11a2e5b1804601149e02d1a0ee692b29b9535
parentd76376f10c25a56b593d21ba4220e9f449e2063d (diff)
downloadlibva-b7c8a2ec0df485ed38cde9f1675e6e152a013989.tar.gz
fix test build issue on a clean system
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--test/basic/Makefile.am2
-rw-r--r--test/decode/mpeg2vldemo.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/test/basic/Makefile.am b/test/basic/Makefile.am
index 78eabcb..24de161 100644
--- a/test/basic/Makefile.am
+++ b/test/basic/Makefile.am
@@ -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)
diff --git a/test/decode/mpeg2vldemo.c b/test/decode/mpeg2vldemo.c
index 945b69d..d62f1c2 100644
--- a/test/decode/mpeg2vldemo.c
+++ b/test/decode/mpeg2vldemo.c
@@ -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) { \