Code Monkey home page Code Monkey logo

Comments (3)

headupinclouds avatar headupinclouds commented on September 17, 2024

You need to use a C++11 compiler. I believe 4.8 implements most of C++11, but you need to specify a toolchain in order to enable that with -std=c++11

https://stackoverflow.com/a/29984837

I think that will work. In general it will be better to use g++-5, which is tested in the CI config. Here are two examples of gcc w/ C++11 toolchains that should work:

from acf.

FFFFFUNKYMUZIK avatar FFFFFUNKYMUZIK commented on September 17, 2024

Thank you for your support!!!

Actually I compiled with gcc-4-8-c11 compiler right after post this issue, but there's some build issues.
It fails at building libprotobuf, error log is like following:

[ 21%] Built target libprotobuf
make[4]: Leaving directory ~/.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV/Build/OpenCV-Release-prefix/src/OpenCV-Release-build' make[3]: *** [all] Error 2 make[3]: Leaving directory /.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV/Build/OpenCV-Release-prefix/src/OpenCV-Release-build'
make[2]: Leaving directory ~/.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV/Build' make[1]: Leaving directory
/.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV/Build'
make[2]: *** [OpenCV-Release-prefix/src/OpenCV-Release-stamp/OpenCV-Release-build] Error 2
make[1]: *** [CMakeFiles/OpenCV-Release.dir/all] Error 2
make: *** [all] Error 2

[hunter ** FATAL ERROR **] Build step failed (dir: /.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV
[hunter ** FATAL ERROR **] [Directory:
/.hunter/_Base/Download/Hunter/0.22.8/e7fe3f0/Unpacked/cmake/projects/OpenCV]

(Home directory is mannually edited as ~)
When I use g++-5 compiler, it success without any compile issue.
Thanks a lot!

from acf.

headupinclouds avatar headupinclouds commented on September 17, 2024

👍

The opencv protobuf dependency fails on several not-quite-latest compilers for some reason. It isn't required for acf and another fix would be just to exclude it from the OpenCV dependency list in the LOCAL config, although g++-5 is probably a better/easier fix.

from acf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.