Post Go back to editing

Depth, Perception & Ranging Technologies > LiDAR Solutions

Category: Software

Hello,

 

I have followed the build instructions in order to compile aditof_sdk on jetson nano platform but compilation fails :

 

output compilation attached below:  

 

can you help me ?

In file included from /home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:32:0:
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.h:51:17: error: ‘recursive_mutex’ in namespace ‘std’ does not name a type
static std::recursive_mutex m_mutex;
^~~~~~~~~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:72:1: error: ‘recursive_mutex’ does not name a type
recursive_mutex Network::m_mutex;
^~~~~~~~~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp: In member function ‘int Network::ServerConnect(const string&)’:
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:168:27: error: ‘recursive_mutex’ is not a member of ‘std’
std::unique_lock<std::recursive_mutex> mlock(m_mutex);
^~~~~~~~~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:168:27: error: ‘recursive_mutex’ is not a member of ‘std’
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:168:42: error: template argument 1 is invalid
std::unique_lock<std::recursive_mutex> mlock(m_mutex);
^
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:168:50: error: ‘m_mutex’ was not declared in this scope
std::unique_lock<std::recursive_mutex> mlock(m_mutex);
^~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp: In member function ‘int Network::SendCommand()’:
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:214:34: warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
int siz = send_buff.ByteSize();
^
In file included from /usr/local/include/google/protobuf/any.h:38:0,
from /usr/local/include/google/protobuf/generated_message_util.h:53,
from /home/sebmenet/Sebastien_Menet/aditof_sdk/build/sdk/buffer.pb.h:27,
from /home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.h:32,
from /home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:32:
/usr/local/include/google/protobuf/message_lite.h:421:7: note: declared here
int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
^~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:222:31: error: ‘recursive_mutex’ is not a member of ‘std’
std::unique_lock<std::recursive_mutex> mlock(m_mutex);
^~~~~~~~~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:222:31: error: ‘recursive_mutex’ is not a member of ‘std’
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:222:46: error: template argument 1 is invalid
std::unique_lock<std::recursive_mutex> mlock(m_mutex);
^
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:222:54: error: ‘m_mutex’ was not declared in this scope
std::unique_lock<std::recursive_mutex> mlock(m_mutex);
^~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp: In static member function ‘static int Network::callback_function(lws*, lws_callback_reasons, void*, void*, size_t)’:
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:360:30: error: ‘recursive_mutex’ is not a member of ‘std’
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^~~~~~~~~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:360:30: error: ‘recursive_mutex’ is not a member of ‘std’
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:360:45: error: template argument 1 is invalid
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:360:53: error: ‘m_mutex’ was not declared in this scope
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:360:47: warning: unused variable ‘guard’ [-Wunused-variable]
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:420:30: error: ‘recursive_mutex’ is not a member of ‘std’
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^~~~~~~~~~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:420:30: error: ‘recursive_mutex’ is not a member of ‘std’
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:420:45: error: template argument 1 is invalid
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:420:53: error: ‘m_mutex’ was not declared in this scope
std::lock_guard<std::recursive_mutex> guard(m_mutex);
^~~~~~~
/home/sebmenet/Sebastien_Menet/aditof_sdk/sdk/src/connections/network/network.cpp:426:38: warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
int siz = send_buff.ByteSize();

[ 2%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o
sdk/CMakeFiles/aditof.dir/build.make:349: recipe for target 'sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o' failed
CMakeFiles/Makefile2:226: recipe for target 'sdk/CMakeFiles/aditof.dir/all' failed
Makefile:135: recipe for target 'all' failed

 

Parents Reply Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.