From: Anatoly Baksheev Date: Sun, 18 Jan 2015 19:55:26 +0000 (+0300) Subject: opencv 3.0 compilation (replace #1714) X-Git-Tag: submit/tizen/20180823.020014~572^2~20^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a12dcba8c9417c5d8f8155e06bdfd6e75fd636ce;p=platform%2Fupstream%2Fcaffeonacl.git opencv 3.0 compilation (replace #1714) --- diff --git a/cmake/lint.cmake b/cmake/lint.cmake index 04df340..585babb 100644 --- a/cmake/lint.cmake +++ b/cmake/lint.cmake @@ -1,10 +1,12 @@ -set(CMAKE_SOURCE_DIR ../) +set(CMAKE_SOURCE_DIR ..) set(LINT_COMMAND ${CMAKE_SOURCE_DIR}/scripts/cpp_lint.py) set(SRC_FILE_EXTENSIONS h hpp hu c cpp cu cc) set(EXCLUDE_FILE_EXTENSTIONS pb.h pb.cc) set(LINT_DIRS include src/caffe examples tools python matlab) +cmake_policy(SET CMP0009 NEW) # supress cmake warning + # find all files of interest foreach(ext ${SRC_FILE_EXTENSIONS}) foreach(dir ${LINT_DIRS}) diff --git a/src/caffe/layers/window_data_layer.cpp b/src/caffe/layers/window_data_layer.cpp index 23ec83d..3e9e976 100644 --- a/src/caffe/layers/window_data_layer.cpp +++ b/src/caffe/layers/window_data_layer.cpp @@ -1,3 +1,4 @@ +#include #include #include @@ -22,10 +23,6 @@ // 'source' field specifies the window_file // 'crop_size' indicates the desired warped size -#if CV_VERSION_MAJOR == 3 -const int CV_LOAD_IMAGE_COLOR = cv::IMREAD_COLOR; -#endif - namespace caffe { template