diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch | 80 |
1 files changed, 37 insertions, 43 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch index 9c91ac4d..52049eb0 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5bec3199ec6fd8f784cd688159f768a732c9ad69 Mon Sep 17 00:00:00 2001 | 1 | From cb9a755218ff033c8c42e9dc46a845310a3331fa Mon Sep 17 00:00:00 2001 |
2 | From: Anuj Mittal <anuj.mittal@intel.com> | 2 | From: Anuj Mittal <anuj.mittal@intel.com> |
3 | Date: Thu, 11 Jun 2020 14:24:04 +0800 | 3 | Date: Thu, 11 Jun 2020 14:24:04 +0800 |
4 | Subject: [PATCH] cmake installation fixes | 4 | Subject: [PATCH] cmake installation fixes |
@@ -14,17 +14,17 @@ Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | |||
14 | .../samples/common/format_reader/CMakeLists.txt | 2 ++ | 14 | .../samples/common/format_reader/CMakeLists.txt | 2 ++ |
15 | .../src/inference_engine/CMakeLists.txt | 4 ++-- | 15 | .../src/inference_engine/CMakeLists.txt | 4 ++-- |
16 | .../src/vpu/myriad_plugin/CMakeLists.txt | 2 +- | 16 | .../src/vpu/myriad_plugin/CMakeLists.txt | 2 +- |
17 | inference-engine/tests/unit/cpu/CMakeLists.txt | 4 +++- | 17 | inference-engine/tests/unit/cpu/CMakeLists.txt | 2 ++ |
18 | .../tests/unit/inference_engine/CMakeLists.txt | 2 ++ | 18 | .../tests/unit/inference_engine/CMakeLists.txt | 2 ++ |
19 | inference-engine/tests/unit/vpu/CMakeLists.txt | 4 +++- | 19 | inference-engine/tests/unit/vpu/CMakeLists.txt | 2 ++ |
20 | inference-engine/tools/compile_tool/CMakeLists.txt | 2 +- | 20 | inference-engine/tools/compile_tool/CMakeLists.txt | 2 +- |
21 | 11 files changed, 25 insertions(+), 30 deletions(-) | 21 | 11 files changed, 23 insertions(+), 28 deletions(-) |
22 | 22 | ||
23 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 23 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
24 | index 18ed02ee5..18f6094f3 100644 | 24 | index 5c3585a3e9..2b8c99f862 100644 |
25 | --- a/CMakeLists.txt | 25 | --- a/CMakeLists.txt |
26 | +++ b/CMakeLists.txt | 26 | +++ b/CMakeLists.txt |
27 | @@ -143,12 +143,8 @@ add_subdirectory(docs) | 27 | @@ -176,12 +176,8 @@ ie_shellcheck_process(DIRECTORY "${OpenVINO_MAIN_SOURCE_DIR}" |
28 | 28 | ||
29 | # install setupvars | 29 | # install setupvars |
30 | 30 | ||
@@ -37,7 +37,7 @@ index 18ed02ee5..18f6094f3 100644 | |||
37 | elseif(WIN32) | 37 | elseif(WIN32) |
38 | install(PROGRAMS scripts/setupvars/setupvars.bat | 38 | install(PROGRAMS scripts/setupvars/setupvars.bat |
39 | DESTINATION bin | 39 | DESTINATION bin |
40 | @@ -158,22 +154,12 @@ endif() | 40 | @@ -191,22 +187,12 @@ endif() |
41 | # install install_dependencies | 41 | # install install_dependencies |
42 | 42 | ||
43 | if(UNIX) | 43 | if(UNIX) |
@@ -61,10 +61,10 @@ index 18ed02ee5..18f6094f3 100644 | |||
61 | install(DIRECTORY scripts/demo/ | 61 | install(DIRECTORY scripts/demo/ |
62 | DESTINATION deployment_tools/demo | 62 | DESTINATION deployment_tools/demo |
63 | diff --git a/cmake/developer_package.cmake b/cmake/developer_package.cmake | 63 | diff --git a/cmake/developer_package.cmake b/cmake/developer_package.cmake |
64 | index 86137c384..af011c361 100644 | 64 | index cda7afd294..ec51636e96 100644 |
65 | --- a/cmake/developer_package.cmake | 65 | --- a/cmake/developer_package.cmake |
66 | +++ b/cmake/developer_package.cmake | 66 | +++ b/cmake/developer_package.cmake |
67 | @@ -10,7 +10,9 @@ list(APPEND CMAKE_MODULE_PATH | 67 | @@ -29,7 +29,9 @@ list(APPEND CMAKE_MODULE_PATH |
68 | include(CPackComponent) | 68 | include(CPackComponent) |
69 | unset(IE_CPACK_COMPONENTS_ALL CACHE) | 69 | unset(IE_CPACK_COMPONENTS_ALL CACHE) |
70 | 70 | ||
@@ -75,18 +75,18 @@ index 86137c384..af011c361 100644 | |||
75 | 75 | ||
76 | # Search packages for the host system instead of packages for the target system | 76 | # Search packages for the host system instead of packages for the target system |
77 | # in case of cross compilation these macros should be defined by the toolchain file | 77 | # in case of cross compilation these macros should be defined by the toolchain file |
78 | @@ -43,8 +45,8 @@ function(ie_cpack_set_library_dir) | 78 | @@ -55,8 +57,8 @@ function(ie_cpack_set_library_dir) |
79 | set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/bin/${ARCH}/${CMAKE_BUILD_TYPE} PARENT_SCOPE) | 79 | set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/bin/${ARCH_FOLDER}/${CMAKE_BUILD_TYPE} PARENT_SCOPE) |
80 | set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH}/${CMAKE_BUILD_TYPE} PARENT_SCOPE) | 80 | set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER}/${CMAKE_BUILD_TYPE} PARENT_SCOPE) |
81 | else() | 81 | else() |
82 | - set(IE_CPACK_LIBRARY_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH} PARENT_SCOPE) | 82 | - set(IE_CPACK_LIBRARY_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER} PARENT_SCOPE) |
83 | - set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH} PARENT_SCOPE) | 83 | - set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER} PARENT_SCOPE) |
84 | + set(IE_CPACK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} PARENT_SCOPE) | 84 | + set(IE_CPACK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} PARENT_SCOPE) |
85 | + set(IE_CPACK_RUNTIME_PATH ${CMAKE_INSTALL_BINDIR} PARENT_SCOPE) | 85 | + set(IE_CPACK_RUNTIME_PATH ${CMAKE_INSTALL_BINDIR} PARENT_SCOPE) |
86 | set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH} PARENT_SCOPE) | 86 | set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH_FOLDER} PARENT_SCOPE) |
87 | endif() | 87 | endif() |
88 | endfunction() | 88 | endfunction() |
89 | @@ -147,7 +149,7 @@ endif() | 89 | @@ -151,7 +153,7 @@ endif() |
90 | 90 | ||
91 | # allow to override default OUTPUT_ROOT root | 91 | # allow to override default OUTPUT_ROOT root |
92 | if(NOT DEFINED OUTPUT_ROOT) | 92 | if(NOT DEFINED OUTPUT_ROOT) |
@@ -96,7 +96,7 @@ index 86137c384..af011c361 100644 | |||
96 | 96 | ||
97 | # Enable postfixes for Debug/Release builds | 97 | # Enable postfixes for Debug/Release builds |
98 | diff --git a/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt b/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt | 98 | diff --git a/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt b/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt |
99 | index b8d5ddf62..d086478f6 100644 | 99 | index b8d5ddf622..d086478f6d 100644 |
100 | --- a/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt | 100 | --- a/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt |
101 | +++ b/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt | 101 | +++ b/inference-engine/ie_bridges/c/samples/common/opencv_c_wraper/CMakeLists.txt |
102 | @@ -29,3 +29,5 @@ set_target_properties(${TARGET_NAME} PROPERTIES FOLDER c_samples) | 102 | @@ -29,3 +29,5 @@ set_target_properties(${TARGET_NAME} PROPERTIES FOLDER c_samples) |
@@ -106,7 +106,7 @@ index b8d5ddf62..d086478f6 100644 | |||
106 | + | 106 | + |
107 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 107 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
108 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt | 108 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt |
109 | index 4dda7eecd..04e1b9c3e 100644 | 109 | index 236c17e6af..22f410d1fd 100644 |
110 | --- a/inference-engine/samples/CMakeLists.txt | 110 | --- a/inference-engine/samples/CMakeLists.txt |
111 | +++ b/inference-engine/samples/CMakeLists.txt | 111 | +++ b/inference-engine/samples/CMakeLists.txt |
112 | @@ -34,7 +34,7 @@ endif() | 112 | @@ -34,7 +34,7 @@ endif() |
@@ -118,7 +118,7 @@ index 4dda7eecd..04e1b9c3e 100644 | |||
118 | # hint for find_package(InferenceEngine in the samples folder) | 118 | # hint for find_package(InferenceEngine in the samples folder) |
119 | set(InferenceEngine_DIR "${CMAKE_BINARY_DIR}") | 119 | set(InferenceEngine_DIR "${CMAKE_BINARY_DIR}") |
120 | # hint for find_package(ngraph in the samples folder) | 120 | # hint for find_package(ngraph in the samples folder) |
121 | @@ -122,11 +122,6 @@ set (HAVE_INTTYPES_H 1) | 121 | @@ -118,11 +118,6 @@ set (HAVE_INTTYPES_H 1) |
122 | set (INTTYPES_FORMAT C99) | 122 | set (INTTYPES_FORMAT C99) |
123 | set (BUILD_TESTING OFF) | 123 | set (BUILD_TESTING OFF) |
124 | 124 | ||
@@ -130,7 +130,7 @@ index 4dda7eecd..04e1b9c3e 100644 | |||
130 | if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | 130 | if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") |
131 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | 131 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") |
132 | endif() | 132 | endif() |
133 | @@ -250,6 +245,8 @@ macro(ie_add_sample) | 133 | @@ -245,6 +240,8 @@ macro(ie_add_sample) |
134 | add_cpplint_target(${IE_SAMPLE_NAME}_cpplint FOR_TARGETS ${IE_SAMPLE_NAME} | 134 | add_cpplint_target(${IE_SAMPLE_NAME}_cpplint FOR_TARGETS ${IE_SAMPLE_NAME} |
135 | CUSTOM_FILTERS ${custom_filters}) | 135 | CUSTOM_FILTERS ${custom_filters}) |
136 | endif() | 136 | endif() |
@@ -140,7 +140,7 @@ index 4dda7eecd..04e1b9c3e 100644 | |||
140 | 140 | ||
141 | # collect all samples subdirectories | 141 | # collect all samples subdirectories |
142 | diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt | 142 | diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt |
143 | index 48dbed9f2..76532fd04 100644 | 143 | index 48dbed9f2b..76532fd047 100644 |
144 | --- a/inference-engine/samples/common/format_reader/CMakeLists.txt | 144 | --- a/inference-engine/samples/common/format_reader/CMakeLists.txt |
145 | +++ b/inference-engine/samples/common/format_reader/CMakeLists.txt | 145 | +++ b/inference-engine/samples/common/format_reader/CMakeLists.txt |
146 | @@ -41,3 +41,5 @@ target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" | 146 | @@ -41,3 +41,5 @@ target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" |
@@ -150,10 +150,10 @@ index 48dbed9f2..76532fd04 100644 | |||
150 | + | 150 | + |
151 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 151 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
152 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | 152 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt |
153 | index 105e666a3..5c2f70575 100644 | 153 | index 3bba22215e..b6f6b7b203 100644 |
154 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | 154 | --- a/inference-engine/src/inference_engine/CMakeLists.txt |
155 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | 155 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt |
156 | @@ -244,8 +244,8 @@ install(TARGETS ${TARGET_NAME} | 156 | @@ -229,8 +229,8 @@ install(TARGETS ${TARGET_NAME} |
157 | install(FILES "${OpenVINO_BINARY_DIR}/share/ie_parallel.cmake" | 157 | install(FILES "${OpenVINO_BINARY_DIR}/share/ie_parallel.cmake" |
158 | "${OpenVINO_BINARY_DIR}/share/InferenceEngineConfig.cmake" | 158 | "${OpenVINO_BINARY_DIR}/share/InferenceEngineConfig.cmake" |
159 | "${OpenVINO_BINARY_DIR}/share/InferenceEngineConfig-version.cmake" | 159 | "${OpenVINO_BINARY_DIR}/share/InferenceEngineConfig-version.cmake" |
@@ -165,10 +165,10 @@ index 105e666a3..5c2f70575 100644 | |||
165 | + DESTINATION ${CMAKE_INSTALL_LIBDIR} | 165 | + DESTINATION ${CMAKE_INSTALL_LIBDIR} |
166 | COMPONENT core) | 166 | COMPONENT core) |
167 | diff --git a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | 167 | diff --git a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt |
168 | index aeebe4e04..310eb6231 100644 | 168 | index 889f2e6e66..67de9c3a32 100644 |
169 | --- a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | 169 | --- a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt |
170 | +++ b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | 170 | +++ b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt |
171 | @@ -48,5 +48,5 @@ target_link_libraries(${TARGET_NAME} | 171 | @@ -50,5 +50,5 @@ set_target_properties(${TARGET_NAME} PROPERTIES INTERPROCEDURAL_OPTIMIZATION_REL |
172 | # install | 172 | # install |
173 | 173 | ||
174 | install(FILES ${IE_MAIN_SOURCE_DIR}/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules | 174 | install(FILES ${IE_MAIN_SOURCE_DIR}/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules |
@@ -176,20 +176,17 @@ index aeebe4e04..310eb6231 100644 | |||
176 | + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/udev/rules.d | 176 | + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/udev/rules.d |
177 | COMPONENT myriad) | 177 | COMPONENT myriad) |
178 | diff --git a/inference-engine/tests/unit/cpu/CMakeLists.txt b/inference-engine/tests/unit/cpu/CMakeLists.txt | 178 | diff --git a/inference-engine/tests/unit/cpu/CMakeLists.txt b/inference-engine/tests/unit/cpu/CMakeLists.txt |
179 | index d7acf8908..be4ae4a76 100644 | 179 | index c9a92b4857..2b4fcc4d01 100644 |
180 | --- a/inference-engine/tests/unit/cpu/CMakeLists.txt | 180 | --- a/inference-engine/tests/unit/cpu/CMakeLists.txt |
181 | +++ b/inference-engine/tests/unit/cpu/CMakeLists.txt | 181 | +++ b/inference-engine/tests/unit/cpu/CMakeLists.txt |
182 | @@ -24,4 +24,6 @@ addIeTargetTest( | 182 | @@ -25,3 +25,5 @@ addIeTargetTest( |
183 | ADD_CPPLINT | 183 | ie_faster_build(${TARGET_NAME} |
184 | LABELS | 184 | UNITY |
185 | CPU | 185 | ) |
186 | -) | ||
187 | \ No newline at end of file | ||
188 | +) | ||
189 | + | 186 | + |
190 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | 187 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) |
191 | diff --git a/inference-engine/tests/unit/inference_engine/CMakeLists.txt b/inference-engine/tests/unit/inference_engine/CMakeLists.txt | 188 | diff --git a/inference-engine/tests/unit/inference_engine/CMakeLists.txt b/inference-engine/tests/unit/inference_engine/CMakeLists.txt |
192 | index e4613f032..5fe9e7089 100644 | 189 | index 76cc67cca1..04ff11cc05 100644 |
193 | --- a/inference-engine/tests/unit/inference_engine/CMakeLists.txt | 190 | --- a/inference-engine/tests/unit/inference_engine/CMakeLists.txt |
194 | +++ b/inference-engine/tests/unit/inference_engine/CMakeLists.txt | 191 | +++ b/inference-engine/tests/unit/inference_engine/CMakeLists.txt |
195 | @@ -26,3 +26,5 @@ addIeTargetTest( | 192 | @@ -26,3 +26,5 @@ addIeTargetTest( |
@@ -199,20 +196,17 @@ index e4613f032..5fe9e7089 100644 | |||
199 | + | 196 | + |
200 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | 197 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) |
201 | diff --git a/inference-engine/tests/unit/vpu/CMakeLists.txt b/inference-engine/tests/unit/vpu/CMakeLists.txt | 198 | diff --git a/inference-engine/tests/unit/vpu/CMakeLists.txt b/inference-engine/tests/unit/vpu/CMakeLists.txt |
202 | index a4106753d..091339e17 100644 | 199 | index 215562f2af..215ec9f4fb 100644 |
203 | --- a/inference-engine/tests/unit/vpu/CMakeLists.txt | 200 | --- a/inference-engine/tests/unit/vpu/CMakeLists.txt |
204 | +++ b/inference-engine/tests/unit/vpu/CMakeLists.txt | 201 | +++ b/inference-engine/tests/unit/vpu/CMakeLists.txt |
205 | @@ -27,4 +27,6 @@ addIeTargetTest( | 202 | @@ -35,3 +35,5 @@ addIeTargetTest( |
206 | LABELS | ||
207 | VPU | 203 | VPU |
208 | MYRIAD | 204 | MYRIAD |
209 | -) | 205 | ) |
210 | \ No newline at end of file | ||
211 | +) | ||
212 | + | 206 | + |
213 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | 207 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) |
214 | diff --git a/inference-engine/tools/compile_tool/CMakeLists.txt b/inference-engine/tools/compile_tool/CMakeLists.txt | 208 | diff --git a/inference-engine/tools/compile_tool/CMakeLists.txt b/inference-engine/tools/compile_tool/CMakeLists.txt |
215 | index 58614d3ce..9dfa068e4 100644 | 209 | index 58614d3ced..9dfa068e4d 100644 |
216 | --- a/inference-engine/tools/compile_tool/CMakeLists.txt | 210 | --- a/inference-engine/tools/compile_tool/CMakeLists.txt |
217 | +++ b/inference-engine/tools/compile_tool/CMakeLists.txt | 211 | +++ b/inference-engine/tools/compile_tool/CMakeLists.txt |
218 | @@ -49,7 +49,7 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) | 212 | @@ -49,7 +49,7 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) |
@@ -225,5 +219,5 @@ index 58614d3ce..9dfa068e4 100644 | |||
225 | 219 | ||
226 | install(FILES README.md | 220 | install(FILES README.md |
227 | -- | 221 | -- |
228 | 2.26.2 | 222 | 2.29.2 |
229 | 223 | ||