libfreenect cmake error in wrapper cpp file The Next CEO of Stack OverflowHow to symlink a file in Linux?Error linking to Boost filesystem using cmake on cygwinHow do I find all files containing specific text on Linux?How do I resolve this linphone $ make error?Compile Static executable with CMAKEUndefined reference when building qt with cmakeCan't call public method with scope resolution from another cpp fileCMake File Errorlinking boost log using cmake errorBuildFailed Error: Cannot build C++ SDK Helloworld with qibuild
What did the word "leisure" mean in late 18th Century usage?
Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?
Was the Stack Exchange "Happy April Fools" page fitting with the 90s code?
Why does sin(x) - sin(y) equal this?
Can this transistor (2N2222) take 6 V on emitter-base? Am I reading the datasheet incorrectly?
Identify and count spells (Distinctive events within each group)
Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact
Does the Idaho Potato Commission associate potato skins with healthy eating?
Ising model simulation
Upgrading From a 9 Speed Sora Derailleur?
"Eavesdropping" vs "Listen in on"
What is the difference between 'contrib' and 'non-free' packages repositories?
Why did the Drakh emissary look so blurred in S04:E11 "Lines of Communication"?
Arrows in tikz Markov chain diagram overlap
How to find if SQL server backup is encrypted with TDE without restoring the backup
Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?
Could a dragon use hot air to help it take off?
Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?
How to pronounce fünf in 45
Finitely generated matrix groups whose eigenvalues are all algebraic
Could you use a laser beam as a modulated carrier wave for radio signal?
Is this a new Fibonacci Identity?
Is it reasonable to ask other researchers to send me their previous grant applications?
Could a dragon use its wings to swim?
libfreenect cmake error in wrapper cpp file
The Next CEO of Stack OverflowHow to symlink a file in Linux?Error linking to Boost filesystem using cmake on cygwinHow do I find all files containing specific text on Linux?How do I resolve this linphone $ make error?Compile Static executable with CMAKEUndefined reference when building qt with cmakeCan't call public method with scope resolution from another cpp fileCMake File Errorlinking boost log using cmake errorBuildFailed Error: Cannot build C++ SDK Helloworld with qibuild
im trying to install kinect 360 in my ubuntu 16.04 system and in the libfreenect library im in front of a cmake problem. What should i do to solve this?. Thank you very much guys!
In file included from /home/evdo/Kinect/libfreenect/wrappers/cpp/cppview.cpp:27:0:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:182:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<uint8_t[]> m_rgb_buffer;
^
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp: In member function ‘void Freenect::FreenectDevice::setVideoFormat(freenect_video_format, freenect_resolution)’:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:115:5: error: ‘m_rgb_buffer’ was not declared in this scope
m_rgb_buffer.reset(new uint8_t[mode.bytes]);
^
wrappers/cpp/CMakeFiles/freenect-cppview.dir/build.make:62: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o' failed make[2]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o] Error 1
CMakeFiles/Makefile2:810: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/all' failed
make[1]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
linux cmake kinect libfreenect2
add a comment |
im trying to install kinect 360 in my ubuntu 16.04 system and in the libfreenect library im in front of a cmake problem. What should i do to solve this?. Thank you very much guys!
In file included from /home/evdo/Kinect/libfreenect/wrappers/cpp/cppview.cpp:27:0:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:182:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<uint8_t[]> m_rgb_buffer;
^
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp: In member function ‘void Freenect::FreenectDevice::setVideoFormat(freenect_video_format, freenect_resolution)’:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:115:5: error: ‘m_rgb_buffer’ was not declared in this scope
m_rgb_buffer.reset(new uint8_t[mode.bytes]);
^
wrappers/cpp/CMakeFiles/freenect-cppview.dir/build.make:62: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o' failed make[2]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o] Error 1
CMakeFiles/Makefile2:810: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/all' failed
make[1]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
linux cmake kinect libfreenect2
Search for the error and you will get many hits.
– user1531971
Mar 8 at 19:54
add a comment |
im trying to install kinect 360 in my ubuntu 16.04 system and in the libfreenect library im in front of a cmake problem. What should i do to solve this?. Thank you very much guys!
In file included from /home/evdo/Kinect/libfreenect/wrappers/cpp/cppview.cpp:27:0:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:182:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<uint8_t[]> m_rgb_buffer;
^
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp: In member function ‘void Freenect::FreenectDevice::setVideoFormat(freenect_video_format, freenect_resolution)’:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:115:5: error: ‘m_rgb_buffer’ was not declared in this scope
m_rgb_buffer.reset(new uint8_t[mode.bytes]);
^
wrappers/cpp/CMakeFiles/freenect-cppview.dir/build.make:62: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o' failed make[2]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o] Error 1
CMakeFiles/Makefile2:810: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/all' failed
make[1]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
linux cmake kinect libfreenect2
im trying to install kinect 360 in my ubuntu 16.04 system and in the libfreenect library im in front of a cmake problem. What should i do to solve this?. Thank you very much guys!
In file included from /home/evdo/Kinect/libfreenect/wrappers/cpp/cppview.cpp:27:0:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:182:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<uint8_t[]> m_rgb_buffer;
^
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp: In member function ‘void Freenect::FreenectDevice::setVideoFormat(freenect_video_format, freenect_resolution)’:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:115:5: error: ‘m_rgb_buffer’ was not declared in this scope
m_rgb_buffer.reset(new uint8_t[mode.bytes]);
^
wrappers/cpp/CMakeFiles/freenect-cppview.dir/build.make:62: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o' failed make[2]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o] Error 1
CMakeFiles/Makefile2:810: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/all' failed
make[1]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
linux cmake kinect libfreenect2
linux cmake kinect libfreenect2
asked Mar 8 at 19:23
Evdokimos TheodoridisEvdokimos Theodoridis
1
1
Search for the error and you will get many hits.
– user1531971
Mar 8 at 19:54
add a comment |
Search for the error and you will get many hits.
– user1531971
Mar 8 at 19:54
Search for the error and you will get many hits.
– user1531971
Mar 8 at 19:54
Search for the error and you will get many hits.
– user1531971
Mar 8 at 19:54
add a comment |
1 Answer
1
active
oldest
votes
Add a line of code to CmakeLists.txt as shown below.
set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")
New contributor
add a comment |
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55069696%2flibfreenect-cmake-error-in-wrapper-cpp-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Add a line of code to CmakeLists.txt as shown below.
set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")
New contributor
add a comment |
Add a line of code to CmakeLists.txt as shown below.
set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")
New contributor
add a comment |
Add a line of code to CmakeLists.txt as shown below.
set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")
New contributor
Add a line of code to CmakeLists.txt as shown below.
set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")
New contributor
New contributor
answered 2 days ago
GuikunChenGuikunChen
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55069696%2flibfreenect-cmake-error-in-wrapper-cpp-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Search for the error and you will get many hits.
– user1531971
Mar 8 at 19:54