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










0















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









share|improve this question






















  • Search for the error and you will get many hits.

    – user1531971
    Mar 8 at 19:54















0















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









share|improve this question






















  • Search for the error and you will get many hits.

    – user1531971
    Mar 8 at 19:54













0












0








0








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









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












1 Answer
1






active

oldest

votes


















0














Add a line of code to CmakeLists.txt as shown below.



set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")





share|improve this answer








New contributor




GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer






    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    Add a line of code to CmakeLists.txt as shown below.



    set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")





    share|improve this answer








    New contributor




    GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      Add a line of code to CmakeLists.txt as shown below.



      set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")





      share|improve this answer








      New contributor




      GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        Add a line of code to CmakeLists.txt as shown below.



        set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")





        share|improve this answer








        New contributor




        GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Add a line of code to CmakeLists.txt as shown below.



        set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS -std=c++11")






        share|improve this answer








        New contributor




        GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 2 days ago









        GuikunChenGuikunChen

        11




        11




        New contributor




        GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        GuikunChen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme