From 9689a3b4e251c798c0a349d9590aeda7ebccbdc3 Mon Sep 17 00:00:00 2001 From: Tasanakorn Phaipool Date: Wed, 17 Jul 2013 09:13:13 +0700 Subject: [PATCH] Add missing include path --- CMakeLists.txt | 3 +++ main.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b0ec30..6202553 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.8) SET(COMPILE_DEFINITIONS -Werror) include_directories(/opt/vc/include) +include_directories(/opt/vc/include/interface/vcos/pthreads) +include_directories(/opt/vc/include/interface/vmcs_host) +include_directories(/opt/vc/include/interface/vmcs_host/linux) link_directories(/opt/vc/lib) diff --git a/main.c b/main.c index 3b3c65a..08e134c 100644 --- a/main.c +++ b/main.c @@ -75,7 +75,7 @@ int process() { while (1) { ret = vc_dispmanx_snapshot(display, screen_resource, 0); vc_dispmanx_resource_read_data(screen_resource, &rect1, fbp, vinfo.xres * vinfo.bits_per_pixel / 8); - usleep(50 * 1000); + usleep(25 * 1000); } munmap(fbp, finfo.smem_len);