Hi, I was running a basic tutorial like the following
#include <astra/astra.hpp>
#include <cstdio>
#include <iostream>
int main(int argc, char** argv)
{
astra::initialize();
// what will go here? you'll find out soon!
astra::terminate();
std::cout << "hit enter to exit program" << std::endl;
std::cin.get();
return 0;
}
It failed to run, and said Said Segmentation fault(core dumped)
Anybody can help?
CMakeLists attached
cmake_minimum_required(VERSION 3.13)
project(HelloWorld)
set(CMAKE_CXX_STANDARD 11)
set(ASTRA /home/gyh/AstraSDK-v2.0.14-Linux/lib/libastra.so)
set(ASTRA_CORE /home/gyh/AstraSDK-v2.0.14-Linux/lib/libastra_core.so)
set(ASTRA_CORE_API /home/gyh/AstraSDK-v2.0.14-Linux/lib/libastra_core_api.so)
include_directories(
/home/gyh/AstraSDK-v2.0.14-Linux/include
/home/gyh/OpenNI-Linux-x64-2.3.0.55/include
)
add_executable(HelloWorld main.cpp)
target_link_libraries(
HelloWorld ${ASTRA} ${ASTRA_CORE} ${ASTRA_CORE_API}