librealsense: Missing release .deb for librealsense 1.9.7
I am using Manjaro Linux XFCE x86_64 Latest Release.
And when I try to compile from source I get this error:
make
g++ src/hw-monitor.cpp -std=c++11 -fPIC -pedantic -Ofast -Wno-missing-field-initializers -Wno-switch -Wno-multichar -DRS_USE_V4L2_BACKEND pkg-config --cflags --libs libusb-1.0
-mssse3 -c -o obj/hw-monitor.o
In file included from src/uvc.h:8,
from src/hw-monitor.h:8,
from src/hw-monitor.cpp:5:
src/types.h:572:14: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<void()> continuation;
^~~~~~~~
src/types.h:572:9: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
src/types.h:25:1:
+#include <functional>
src/types.h:572:9: std::function<void()> continuation; ^~~ src/types.h:580:50: error: expected ‘)’ before ‘<’ token explicit frame_continuation(std::function<void()> continuation, const void* protected_data) : continuation(continuation), protected_data(protected_data) {} ~ ^ ) src/types.h: In constructor ‘rsimpl::frame_continuation::frame_continuation()’: src/types.h:578:32: error: class ‘rsimpl::frame_continuation’ does not have any field named ‘continuation’ frame_continuation() : continuation( {}) {} ^~~~~~~~~~~~ src/types.h: In constructor ‘rsimpl::frame_continuation::frame_continuation(rsimpl::frame_continuation&&)’: src/types.h:583:59: error: class ‘rsimpl::frame_continuation’ does not have any field named ‘continuation’ frame_continuation(frame_continuation && other) : continuation(std::move(other.continuation)), protected_data(other.protected_data) ^~~~~~~~~~~~ src/types.h:583:88: error: ‘class rsimpl::frame_continuation’ has no member named ‘continuation’; did you mean ‘frame_continuation’? nuation(frame_continuation && other) : continuation(std::move(other.continuation)), protected_data(other.protected_data) ^~~~~~~~~~~~ frame_continuation src/types.h:585:19: error: ‘class rsimpl::frame_continuation’ has no member named ‘continuation’; did you mean ‘frame_continuation’? other.continuation = {}; ^~~~~~~~~~~~ frame_continuation src/types.h: In member function ‘void rsimpl::frame_continuation::operator()()’: src/types.h:591:13: error: ‘continuation’ was not declared in this scope continuation(); ^~~~~~~~~~~~ src/types.h:591:13: note: suggested alternative: ‘frame_continuation’ continuation(); ^~~~~~~~~~~~ frame_continuation src/types.h: In member function ‘void rsimpl::frame_continuation::reset()’: src/types.h:599:13: error: ‘continuation’ was not declared in this scope continuation = {}; ^~~~~~~~~~~~ src/types.h:599:13: note: suggested alternative: ‘frame_continuation’ continuation = {}; ^~~~~~~~~~~~ frame_continuation src/types.h: In member function ‘rsimpl::frame_continuation& rsimpl::frame_continuation::operator=(rsimpl::frame_continuation&&)’: src/types.h:606:13: error: ‘continuation’ was not declared in this scope continuation(); ^~~~~~~~~~~~ src/types.h:606:13: note: suggested alternative: ‘frame_continuation’ continuation(); ^~~~~~~~~~~~ frame_continuation src/types.h:608:34: error: ‘class rsimpl::frame_continuation’ has no member named ‘continuation’; did you mean ‘frame_continuation’? continuation = other.continuation; ^~~~~~~~~~~~ frame_continuation src/types.h:609:19: error: ‘class rsimpl::frame_continuation’ has no member named ‘continuation’; did you mean ‘frame_continuation’? other.continuation = {}; ^~~~~~~~~~~~ frame_continuation src/types.h: In destructor ‘rsimpl::frame_continuation::~frame_continuation()’: src/types.h:616:13: error: ‘continuation’ was not declared in this scope continuation(); ^~~~~~~~~~~~ src/types.h:616:13: note: suggested alternative: ‘frame_continuation’ continuation(); ^~~~~~~~~~~~ frame_continuation src/types.h: At global scope: src/types.h:625:44: error: expected ‘)’ before ‘<’ token calibration_validator(std::function<bool(rs_stream, rs_stream)> extrinsic_validator, ~ ^ ) src/types.h:633:14: error: ‘function’ in namespace ‘std’ does not name a template type std::function<bool(rs_stream from_stream, rs_stream to_stream)> extrinsic_validator; ^~~~~~~~ src/types.h:633:9: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’? std::function<bool(rs_stream from_stream, rs_stream to_stream)> extrinsic_validator; ^~~ src/types.h:634:14: error: ‘function’ in namespace ‘std’ does not name a template type std::function<bool(rs_stream stream)> intrinsic_validator; ^~~~~~~~ src/types.h:634:9: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’? std::function<bool(rs_stream stream)> intrinsic_validator; ^~~ make: *** [Makefile:106: obj/hw-monitor.o] Error 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (3 by maintainers)
We provide the following script to build and install glfw from source: scripts/install_glfw3.sh
[Realsense Customer Engineering Team Comment] Ok, if any update, let us know.
[Realsense Customer Engineering Team Comment] @Kuchiriel Can you try to add the #include <functional> to the include section of “types.h”? you can refer to the latest version types.h, the functional include is there.
If this is the only error, I’d try adding
#include <functional>
tohw-monitor.cpp
before any other line. Not sure why it would compile with Ubuntu but not Arch…