Caffe build fail: Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















Hello I' ve got issue on caffe installation. I did everything in accordance to the instruction https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-Installation-Guide (for CPU version)
On command make all I've got the following output:



CXX src/caffe/util/io.cpp
In file included from /usr/local/include/opencv2/core.hpp:52:0,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/cvdef.h:421:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"
# error "OpenCV 4.x+ requires enabled C++11 support"
^
In file included from /usr/include/c++/5/array:35:0,
from /usr/local/include/opencv2/core/cvdef.h:426,
from /usr/local/include/opencv2/core.hpp:52,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^
In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/cvstd.hpp:389:12: error: expected ‘,’ or ‘...’ before ‘&&’ token
Ptr(Ptr&& o);
^
/usr/local/include/opencv2/core/cvstd.hpp:389:16: error: invalid constructor; you probably meant ‘cv::Ptr<T> (const cv::Ptr<T>&)’
Ptr(Ptr&& o);
^
/usr/local/include/opencv2/core/cvstd.hpp:390:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
Ptr& operator = (Ptr&& o);
^
In file included from /usr/local/include/opencv2/core/cvstd.hpp:1033:0,
from /usr/local/include/opencv2/core/base.hpp:58,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/ptr.inl.hpp:256:16: error: expected ‘,’ or ‘...’ before ‘&&’ token
Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
^
/usr/local/include/opencv2/core/ptr.inl.hpp:256:1: error: prototype for ‘cv::Ptr<T>::Ptr(cv::Ptr<T>)’ does not match any in class ‘cv::Ptr<T>’
Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
^
In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/cvstd.hpp:319:5: error: candidates are: template<class T> template<class Y> cv::Ptr<T>::Ptr(const cv::Ptr<Y>&, T*)
Ptr(const Ptr<Y>& o, T* p);


Here is also a lot of text in output but I cannot upload it because of limit on number of characters



Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed
make: *** [.build_release/src/caffe/util/io.o] Error 1


Can somebody help me with this problem?



OS: Ubuntu 16.04
cmake version 3.5.1
Cuda version: 10.0.130










share|improve this question































    0















    Hello I' ve got issue on caffe installation. I did everything in accordance to the instruction https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-Installation-Guide (for CPU version)
    On command make all I've got the following output:



    CXX src/caffe/util/io.cpp
    In file included from /usr/local/include/opencv2/core.hpp:52:0,
    from /usr/local/include/opencv2/core/core.hpp:48,
    from src/caffe/util/io.cpp:6:
    /usr/local/include/opencv2/core/cvdef.h:421:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"
    # error "OpenCV 4.x+ requires enabled C++11 support"
    ^
    In file included from /usr/include/c++/5/array:35:0,
    from /usr/local/include/opencv2/core/cvdef.h:426,
    from /usr/local/include/opencv2/core.hpp:52,
    from /usr/local/include/opencv2/core/core.hpp:48,
    from src/caffe/util/io.cpp:6:
    /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
    #error This file requires compiler and library support
    ^
    In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
    from /usr/local/include/opencv2/core.hpp:54,
    from /usr/local/include/opencv2/core/core.hpp:48,
    from src/caffe/util/io.cpp:6:
    /usr/local/include/opencv2/core/cvstd.hpp:389:12: error: expected ‘,’ or ‘...’ before ‘&&’ token
    Ptr(Ptr&& o);
    ^
    /usr/local/include/opencv2/core/cvstd.hpp:389:16: error: invalid constructor; you probably meant ‘cv::Ptr<T> (const cv::Ptr<T>&)’
    Ptr(Ptr&& o);
    ^
    /usr/local/include/opencv2/core/cvstd.hpp:390:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
    Ptr& operator = (Ptr&& o);
    ^
    In file included from /usr/local/include/opencv2/core/cvstd.hpp:1033:0,
    from /usr/local/include/opencv2/core/base.hpp:58,
    from /usr/local/include/opencv2/core.hpp:54,
    from /usr/local/include/opencv2/core/core.hpp:48,
    from src/caffe/util/io.cpp:6:
    /usr/local/include/opencv2/core/ptr.inl.hpp:256:16: error: expected ‘,’ or ‘...’ before ‘&&’ token
    Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
    ^
    /usr/local/include/opencv2/core/ptr.inl.hpp:256:1: error: prototype for ‘cv::Ptr<T>::Ptr(cv::Ptr<T>)’ does not match any in class ‘cv::Ptr<T>’
    Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
    ^
    In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
    from /usr/local/include/opencv2/core.hpp:54,
    from /usr/local/include/opencv2/core/core.hpp:48,
    from src/caffe/util/io.cpp:6:
    /usr/local/include/opencv2/core/cvstd.hpp:319:5: error: candidates are: template<class T> template<class Y> cv::Ptr<T>::Ptr(const cv::Ptr<Y>&, T*)
    Ptr(const Ptr<Y>& o, T* p);


    Here is also a lot of text in output but I cannot upload it because of limit on number of characters



    Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed
    make: *** [.build_release/src/caffe/util/io.o] Error 1


    Can somebody help me with this problem?



    OS: Ubuntu 16.04
    cmake version 3.5.1
    Cuda version: 10.0.130










    share|improve this question



























      0












      0








      0








      Hello I' ve got issue on caffe installation. I did everything in accordance to the instruction https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-Installation-Guide (for CPU version)
      On command make all I've got the following output:



      CXX src/caffe/util/io.cpp
      In file included from /usr/local/include/opencv2/core.hpp:52:0,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/cvdef.h:421:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"
      # error "OpenCV 4.x+ requires enabled C++11 support"
      ^
      In file included from /usr/include/c++/5/array:35:0,
      from /usr/local/include/opencv2/core/cvdef.h:426,
      from /usr/local/include/opencv2/core.hpp:52,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
      #error This file requires compiler and library support
      ^
      In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
      from /usr/local/include/opencv2/core.hpp:54,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/cvstd.hpp:389:12: error: expected ‘,’ or ‘...’ before ‘&&’ token
      Ptr(Ptr&& o);
      ^
      /usr/local/include/opencv2/core/cvstd.hpp:389:16: error: invalid constructor; you probably meant ‘cv::Ptr<T> (const cv::Ptr<T>&)’
      Ptr(Ptr&& o);
      ^
      /usr/local/include/opencv2/core/cvstd.hpp:390:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
      Ptr& operator = (Ptr&& o);
      ^
      In file included from /usr/local/include/opencv2/core/cvstd.hpp:1033:0,
      from /usr/local/include/opencv2/core/base.hpp:58,
      from /usr/local/include/opencv2/core.hpp:54,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/ptr.inl.hpp:256:16: error: expected ‘,’ or ‘...’ before ‘&&’ token
      Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
      ^
      /usr/local/include/opencv2/core/ptr.inl.hpp:256:1: error: prototype for ‘cv::Ptr<T>::Ptr(cv::Ptr<T>)’ does not match any in class ‘cv::Ptr<T>’
      Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
      ^
      In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
      from /usr/local/include/opencv2/core.hpp:54,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/cvstd.hpp:319:5: error: candidates are: template<class T> template<class Y> cv::Ptr<T>::Ptr(const cv::Ptr<Y>&, T*)
      Ptr(const Ptr<Y>& o, T* p);


      Here is also a lot of text in output but I cannot upload it because of limit on number of characters



      Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed
      make: *** [.build_release/src/caffe/util/io.o] Error 1


      Can somebody help me with this problem?



      OS: Ubuntu 16.04
      cmake version 3.5.1
      Cuda version: 10.0.130










      share|improve this question
















      Hello I' ve got issue on caffe installation. I did everything in accordance to the instruction https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-Installation-Guide (for CPU version)
      On command make all I've got the following output:



      CXX src/caffe/util/io.cpp
      In file included from /usr/local/include/opencv2/core.hpp:52:0,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/cvdef.h:421:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"
      # error "OpenCV 4.x+ requires enabled C++11 support"
      ^
      In file included from /usr/include/c++/5/array:35:0,
      from /usr/local/include/opencv2/core/cvdef.h:426,
      from /usr/local/include/opencv2/core.hpp:52,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
      #error This file requires compiler and library support
      ^
      In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
      from /usr/local/include/opencv2/core.hpp:54,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/cvstd.hpp:389:12: error: expected ‘,’ or ‘...’ before ‘&&’ token
      Ptr(Ptr&& o);
      ^
      /usr/local/include/opencv2/core/cvstd.hpp:389:16: error: invalid constructor; you probably meant ‘cv::Ptr<T> (const cv::Ptr<T>&)’
      Ptr(Ptr&& o);
      ^
      /usr/local/include/opencv2/core/cvstd.hpp:390:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
      Ptr& operator = (Ptr&& o);
      ^
      In file included from /usr/local/include/opencv2/core/cvstd.hpp:1033:0,
      from /usr/local/include/opencv2/core/base.hpp:58,
      from /usr/local/include/opencv2/core.hpp:54,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/ptr.inl.hpp:256:16: error: expected ‘,’ or ‘...’ before ‘&&’ token
      Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
      ^
      /usr/local/include/opencv2/core/ptr.inl.hpp:256:1: error: prototype for ‘cv::Ptr<T>::Ptr(cv::Ptr<T>)’ does not match any in class ‘cv::Ptr<T>’
      Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
      ^
      In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
      from /usr/local/include/opencv2/core.hpp:54,
      from /usr/local/include/opencv2/core/core.hpp:48,
      from src/caffe/util/io.cpp:6:
      /usr/local/include/opencv2/core/cvstd.hpp:319:5: error: candidates are: template<class T> template<class Y> cv::Ptr<T>::Ptr(const cv::Ptr<Y>&, T*)
      Ptr(const Ptr<Y>& o, T* p);


      Here is also a lot of text in output but I cannot upload it because of limit on number of characters



      Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed
      make: *** [.build_release/src/caffe/util/io.o] Error 1


      Can somebody help me with this problem?



      OS: Ubuntu 16.04
      cmake version 3.5.1
      Cuda version: 10.0.130







      machine-learning caffe build-error






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '18 at 13:23







      Evgenij Maksimychev

















      asked Nov 16 '18 at 12:27









      Evgenij MaksimychevEvgenij Maksimychev

      63




      63
























          1 Answer
          1






          active

          oldest

          votes


















          0














          The problem was in 4th version of OpenCV. Caffe dosen't work with it. When I installed 3rd version everything was ok.






          share|improve this answer
























            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%2f53337927%2fcaffe-build-fail-makefile591-recipe-for-target-build-release-src-caffe-util%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














            The problem was in 4th version of OpenCV. Caffe dosen't work with it. When I installed 3rd version everything was ok.






            share|improve this answer




























              0














              The problem was in 4th version of OpenCV. Caffe dosen't work with it. When I installed 3rd version everything was ok.






              share|improve this answer


























                0












                0








                0







                The problem was in 4th version of OpenCV. Caffe dosen't work with it. When I installed 3rd version everything was ok.






                share|improve this answer













                The problem was in 4th version of OpenCV. Caffe dosen't work with it. When I installed 3rd version everything was ok.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 13 '18 at 11:16









                Evgenij MaksimychevEvgenij Maksimychev

                63




                63
































                    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%2f53337927%2fcaffe-build-fail-makefile591-recipe-for-target-build-release-src-caffe-util%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

                    Xamarin.iOS Cant Deploy on Iphone

                    Glorious Revolution

                    Dulmage-Mendelsohn matrix decomposition in Python