IntelRealSense / hand_tracking_samples

:wave: :ok_hand: research codebase for depth-based hand pose estimation using dynamics based tracking and CNNs
https://realsense.intel.com/
Apache License 2.0
217 stars 74 forks source link

hand_tracking_samples on linux? #5

Closed RoboEvangelist closed 6 years ago

RoboEvangelist commented 7 years ago

Folks,

I noticed the samples are for Visual Studio only, and not for Linux. Any current work to solve this problem?

ddiakopoulos commented 7 years ago

Hi @RoboEvangelist - you might have simply missed the Makefile in the root directory. Support and instructions are limited, but this codebase and its dependencies were recently tested on Ubuntu 16.10

RoboEvangelist commented 7 years ago

I get this error when I do "make" on my terminal on Ubuntu 16.04:

mkdir -p bin
mkdir -p obj
clang++ dataset-exporter/dataexporter.cpp -std=c++14 -Wno-narrowing -Iinclude -fdelayed-template-parsing -Ofast -march=native -c -o obj/dataexporter.o
make: clang++: Command not found
Makefile:66: recipe for target 'obj/dataexporter.o' failed
make: *** [obj/dataexporter.o] Error 127
lucieb commented 7 years ago

Hello @RoboEvangelist - it looks like the clang compiler is not installed on your machine. Open a terminal and install the clang package using the command:

sudo apt-get install clang

It will prompt you for your password and for the authorization to install the packages, simply follow the instructions.

Before running the Makefile again, make sure to checkout the latest version of the code, I just made a fix in the Makefile.

Once the clang installation is done and you have the latest code, clean your directory and run the makefile again.

make clean
make

I just tested it on Ubuntu 16.04.