Add missing include path

This commit is contained in:
Tasanakorn Phaipool 2013-07-17 09:13:13 +07:00
parent 5bf24004c1
commit 9689a3b4e2
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.8)
SET(COMPILE_DEFINITIONS -Werror) SET(COMPILE_DEFINITIONS -Werror)
include_directories(/opt/vc/include) 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) link_directories(/opt/vc/lib)

2
main.c
View File

@ -75,7 +75,7 @@ int process() {
while (1) { while (1) {
ret = vc_dispmanx_snapshot(display, screen_resource, 0); ret = vc_dispmanx_snapshot(display, screen_resource, 0);
vc_dispmanx_resource_read_data(screen_resource, &rect1, fbp, vinfo.xres * vinfo.bits_per_pixel / 8); 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); munmap(fbp, finfo.smem_len);