How to get started with .cpp sample in Ubuntu 14.04?

Hello all,
I have downloaded Astra SDK for Ubuntu 14.04. used it with install.sh

Now I’m able to run the executables inside /bin folder.

But I’m having problem with the Samples that are inside /sample/cpp-api folder.

How can I use the files main.cpp that are inside ColorReaderEventCPP and DepthReaderEvenetCPP so as to have the c++ development environment.

here is what I’m getting when I’m trying to compile

"

CMake Error at CMakeLists.txt:21 (find_package):
By not providing “FindAstra.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Astra”, but
CMake did not find one.

Could not find a package configuration file provided by “Astra” with any of
the following names:

AstraConfig.cmake
astra-config.cmake

Add the installation prefix of “Astra” to CMAKE_PREFIX_PATH or set
“Astra_DIR” to a directory containing one of the above files. If “Astra”
provides a separate development package or SDK, be sure it has been
installed.

– Configuring incomplete, errors occurred!

"

Hope my concern is clear enough to be understandable.

Thanks,
Prasanna

1 Like

I am having the same problem I am going to try to edit the cmake to point to the cmake file included in the astra SDK

I can send a very simple example. Do you intend to use OpenCV?

BR,
Prasanna

@pkr97 Can you send me example code on getting RGB image from Astra camera by OpenCV + Astra SDK? My email: apkdownloader716@gmail.com
Many thanks sir!