librealsense: T265 - Illegal Instruction - Raspberry Pi Zero
Required Info | |
---|---|
Camera Model | T265 |
Firmware Version | NA |
Operating System & Version | Linux |
Kernel Version (Linux Only) | 4.14.98+ |
Platform | Raspberry Pi Zero W |
SDK Version | 2.19.1 |
Language | C++ |
Segment | VR/AR/others |
Issue Description
Getting Illegal Instruction after trying to execute example: rs-pose.cpp on raspberry pi zero W. This example runs fine on raspberry pi 3 B+. Built librealsense based on https://github.com/IntelRealSense/librealsense/blob/development/doc/installation_raspbian.md omitted OpenCV section. Built with no errors on both pi 3 B+ and pi zero W.
GDB debugger: Program received signal SIGILL, Illegal instruction. std::vector<librealsense::float3, std::allocatorlibrealsense::float3 >::_M_default_append (__n=4001, this=0xb6f05d1c librealsense::jet+24)
Line 565 in /usr/include/c++/6/bits/vector.tcc
Can someone suggest how to solve this issue or suggest how to further debug the problem?
As a test, I created the following minimal hello world program compiled with librealsense and I still get the same illegal instruction upon execution:
-----hello.cpp-----------------------
#include <librealsense2/rs.hpp>
#include <iostream>
int main(int argc, char * argv[])
{
std::cout << "Hello World\r" ;
return EXIT_SUCCESS;
}
------CMakeLists.txt---------------
cmake_minimum_required(VERSION 3.1.0)
project(Hello)
find_package( realsense2 REQUIRED )
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(DEPENDENCIES realsense2)
add_executable( ${PROJECT_NAME} hello.cpp )
target_link_libraries(${PROJECT_NAME} ${DEPENDENCIES})
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (8 by maintainers)
At least I made a Raspberry PI Zero W run. Compilation time about 8 h. But the zero is twice over the edge: htop load shows 1.7. Nevertheless it is able to receive 200fps poses and “do something” with it.
For anyone interested, I made the Pi Zero work in a flight vehicle https://github.com/IntelRealSense/librealsense/issues/4408