Execution of "sudo ./sample_hello_world" fails

Software Version
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.1.10844
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

I’ve been trying executing the samples available in DriveWorks. And for example when running sample_hello_world, this is the output log:

$ sudo ./sample_hello_world.so

[sudo] password for orin-1:
./sample_hello_world.so: 1: �D�[��[�p[��/D�p�SM_�SM�T_libdw_base.so.5.8_ITM_deregisterTMCloneTable__gmon_start___ITM_registerTMCloneTabledwContext_getGPUCountdwReleasedwLogger_releasedwContext_getGPUPropertiesdwContext_getCUDAPropertiesdwInitializedwGetVersiondwContext_selectGPUDevicedwLogger_initializedwLogger_setLogLevellibnvmedia_core.sodwDynamicMemory_mallocdwDynamicMemory_freelibdwdynamicmemory.so.5.8libstdc++.so.6_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc_ZNSt6localeD1Ev_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4__ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev_ZTVNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate_ZNSt8ios_baseD2Ev_ZNSo9_M_insertIlEERSoT__ZdlPvm_ZNSolsEi_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ZNSo9_M_insertImEERSoT__ZNSo9_M_insertIdEERSoT__ZnwmRKSt9nothrow_t_ZNKSt5ctypeIcE8do_widenEc_ZdlPvRKSt9nothrow_t_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ZNSt8ios_base4InitD1Ev_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE_ZNSt6localeC1Ev_ZSt4cerr_ZdlPv_ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED0Ev_ZSt16__throw_bad_castv_ZNSt8ios_baseC2Ev__gxx_personality_v0_ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED2Ev_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l_ZNSo3putEc_ZNKSt5ctypeIcE13_M_widen_initEv_ZNSo5flushEv_Znwm_ZTVSt9basic_iosIcSt11char_traitsIcEE_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E_ZNSt8ios_base4InitC1Ev_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev_ZSt4coutlibgcc_s.so.1_Unwind_Resumelibc.so.6fflushgmtime_r__vsprintf_chk__stack_chk_failisattystrlen__cxa_atexitstdoutfputsmemcpygetenvstderrfilenofwriteclock_gettimefprintf__cxa_finalizesetbuf__libc_start_mainGCC_3.0GLIBC_2.3.4GLIBC_2.4GLIBC_2.17GLIBC_2.14GLIBC_2.2.5CXXABI_1.3GLIBCXX_3.4.11GLIBCXX_3.4.9GLIBCXX_3.4.21GLIBCXX_3.4/…/lib::/…/…/lib:/…/…/_solib_k8:/…/…/…/av/_solib_k8:/…/…/…/…/_solib_k8:/…/…/…/3rdparty_linux_x86_abiC_nvsci_r450/lib:/…/…/…/3rdparty_linux_x86_abiC_nvsci_r460/lib:/…/…/…/3rdparty_linux_x86_abiC_nvsci_r470/lib:/usr/local/driveworks/li: not found
./sample_hello_world.so: 2: y
k: not found
./sample_hello_world.so: 2:
N: not found
./sample_hello_world.so: 1: jj�{�������{����P888: not found
./sample_hello_world.so: 1: cannot open E: No such file
./sample_hello_world.so: 1: ELF: not found
./sample_hello_world.so: 4: Syntax error: “)” unexpected

Actually, I only found the samples on the host and tried transfering them to the Orin device, since I cannot find them at the usr/local/driveworks/bin location. Should I have seen it on the device?

Kind regards,
Leonardo

The binary is built for host systems. For information on how to run it on target systems installed using SDK Manager or docker, please refer to the corresponding cross-compilation sections mentioned below.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.