Couldn't build example on Mac

Hi all,

I’m trying to build example for 0.4.0 SDK following by README. But I got the error message like the following snapshot. Any one has hits to fix this?

Thanks!
Harry

/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples
➜ samples mkdir build && cs build
mkdir: build: File exists
➜ samples cmake -DCMAKE_BUILD_TYPE=Release
– Found Astra includes in /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include
– Found Astra lib dir: /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib
– Found Astra libraries: /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/libAstra.dylib;/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/libAstraAPI.dylib;/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/libAstraUL.dylib
– Found Astra TOML: /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/astra.toml
– Found Astra plugins: /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/Plugins/libopenni_sensor.dylib;/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/Plugins/liborbbec_hand.dylib;/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/Plugins/liborbbec_xs.dylib
– Found Astra plugin TOML: /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/Plugins/orbbec_hand.toml
– Found SFML … in /usr/local/include
– Found SFML … in /usr/local/include
– Found SFML … in /usr/local/include
– Found SFML … in /usr/local/include
– Found SFML … in /usr/local/include
– Configuring done
– Generating done
– Build files have been written to: /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples
➜ samples make -j8
[ 8%] Built target DepthReaderEventCPP
[ 25%] Built target ColorReaderEvent
[ 25%] Built target ColorReaderEventCPP
[ 33%] Built target HandReader
[ 41%] Built target ColorReaderPoll
[ 50%] Building CXX object sfml/SimpleDepthViewer-SFML/CMakeFiles/SimpleDepthViewer-SFML.dir/main.cpp.o
[ 54%] Built target DepthReaderEvent
[ 62%] Built target DepthReaderPoll
[ 66%] Building CXX object sfml/SimpleHandViewer-SFML/CMakeFiles/SimpleHandViewer-SFML.dir/main.cpp.o
[ 70%] Building CXX object sfml/SimpleStreamViewer-SFML/CMakeFiles/SimpleStreamViewer-SFML.dir/main.cpp.o
[ 79%] Built target SimpleColorViewer-SFML
[ 87%] Built target DebugHandViewer
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:156:32: error:
no member named ‘make_unique’ in namespace ‘std’
m_normalMap = std::make_unique<Vector3f>(numPixels);
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:156:44: error:
‘Vector3f’ does not refer to a value
m_normalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include/AstraUL/Vector3f.h:9:12: note:
declared here
struct Vector3f : public astra_vector3f_t
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:156:53: error:
expected expression
m_normalMap = std::make_unique<Vector3f>(numPixels);
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:156:32: error:
no member named ‘make_unique’ in namespace ‘std’
m_normalMap = std::make_unique<Vector3f>(numPixels);
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:156:44: error:
‘Vector3f’ does not refer to a value
m_normalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include/AstraUL/Vector3f.h:9:12: note:
declared here
struct Vector3f : public astra_vector3f_t
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:156:53: error:
expected expression
m_normalMap = std::make_unique<Vector3f>(numPixels);
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:156:32: error:
no member named ‘make_unique’ in namespace ‘std’
m_normalMap = std::make_unique<Vector3f>(numPixels);
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:156:44: error:
‘Vector3f’ does not refer to a value
m_normalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include/AstraUL/Vector3f.h:9:12: note:
declared here
struct Vector3f : public astra_vector3f_t
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:156:53: error:
expected expression
m_normalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:157:36: error:
no member named ‘make_unique’ in namespace ‘std’
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:157:48: error:
‘Vector3f’ does not refer to a value
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include/AstraUL/Vector3f.h:9:12: note:
declared here
struct Vector3f : public astra_vector3f_t
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:157:57: error:
expected expression
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:157:36: error:
no member named ‘make_unique’ in namespace ‘std’
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:157:48: error:
‘Vector3f’ does not refer to a value
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include/AstraUL/Vector3f.h:9:12: note:
declared here
struct Vector3f : public astra_vector3f_t
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:157:57: error:
expected expression
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:157:36: error:
no member named ‘make_unique’ in namespace ‘std’
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:157:48: error:
‘Vector3f’ does not refer to a value
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/include/AstraUL/Vector3f.h:9:12: note:
declared here
struct Vector3f : public astra_vector3f_t
^
In file included from /Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/main.cpp:4:
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:157:57: error:
expected expression
m_blurNormalMap = std::make_unique<Vector3f>(numPixels);
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:253:35: error:
no member named ‘make_unique’ in namespace ‘std’
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:253:47: error:
unexpected type name ‘astra_rgb_pixel_t’: expected expression
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleDepthViewer-SFML/…/…/common/LitDepthVisualizer.h:253:65: error:
expected expression
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:253:35: error:
no member named ‘make_unique’ in namespace ‘std’
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:253:47: error:
unexpected type name ‘astra_rgb_pixel_t’: expected expression
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleHandViewer-SFML/…/…/common/LitDepthVisualizer.h:253:65: error:
expected expression
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:253:35: error:
no member named ‘make_unique’ in namespace ‘std’
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
~~~~~^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:253:47: error:
unexpected type name ‘astra_rgb_pixel_t’: expected expression
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
^
/Users/prakhar_PERCH/Documents/Software/AstraSDK-0.4.0-20151014T193346Z-osx-x64/samples/sfml/SimpleStreamViewer-SFML/…/…/common/LitDepthVisualizer.h:253:65: error:
expected expression
m_outputBuffer = std::make_unique<astra_rgb_pixel_t>(m_out…
^
9 errors generated.
9 errors generated.
make[2]: *** [sfml/SimpleDepthViewer-SFML/CMakeFiles/SimpleDepthViewer-SFML.dir/main.cpp.o] Error 1
make[1]: *** [sfml/SimpleDepthViewer-SFML/CMakeFiles/SimpleDepthViewer-SFML.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
make[2]: *** [sfml/SimpleStreamViewer-SFML/CMakeFiles/SimpleStreamViewer-SFML.dir/main.cpp.o] Error 1
make[1]: *** [sfml/SimpleStreamViewer-SFML/CMakeFiles/SimpleStreamViewer-SFML.dir/all] Error 2
9 errors generated.
make[2]: *** [sfml/SimpleHandViewer-SFML/CMakeFiles/SimpleHandViewer-SFML.dir/main.cpp.o] Error 1
make[1]: *** [sfml/SimpleHandViewer-SFML/CMakeFiles/SimpleHandViewer-SFML.dir/all] Error 2
make: *** [all] Error 2
builderror.txtOpen
Displaying builderror.txt.

Hey @harryhow, I don’t know too much about what’s going on here, but this line makes me think there’s something up with C++14 on your machine? (I believe std::make_unique() was added in C++14)

no member named 'make_unique' in namespace 'std'
m_normalMap = std::make_unique(numPixels);

What version of Xcode & OS X are you using (the SDK requires 6.2+ and 10.8+)? If you have those requirements met, I’m not sure why it’s failing…