Community
cancel
Showing results for 
Search instead for 
Did you mean: 
88 Views

Succeeded building OpenVino inference-engine on debian with CMakeLists.txt modification

We succeeded building OpenVino inference-engine on debian with some modification.

We had a trouble in building OpenVino inference-engine from the source files on debian.

Finally we succeeded after simple modification to CMakeLists.txt

---

diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt
index 0d449c94..35a4288e 100644
--- a/inference-engine/CMakeLists.txt
+++ b/inference-engine/CMakeLists.txt
@@ -13,6 +13,8 @@ project(InferenceEngine)
 
 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
 set(IE_MAIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+set(CMAKE_CXX_VISIBILITY_PRESET hidden)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=attributes")
 
 include(CTest)
 include(features)

 

---


If ` -Wno-error=attributes` was not given,
C++ compiler stop compiling the source code.


Katsunori

0 Kudos
1 Reply
Shubha_R_Intel
Employee
88 Views

Dear Waragai, Katsunori,

This is great news. Thanks for sharing with the OpenVino community ! There was a dldt github issue about the same topic. Maybe it was you ? In any case, thanks a lot for sharing your findings with the OpenVino community. It helps a lot !

Shubha