Comments (3)
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:
- https://github.com/ruslo/polly/blob/master/gcc-5.cmake SEE CXX11 FLAGS
- https://github.com/ruslo/polly/blob/master/gcc-4-8-c11.cmake SEE CXX11 FLAG
from acf.
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'/.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV/Build'
make[2]: Leaving directory ~/.hunter/_Base/e7fe3f0/596fe5f/a0274a8/Build/OpenCV/Build' make[1]: Leaving directory
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/_Base/Download/Hunter/0.22.8/e7fe3f0/Unpacked/cmake/projects/OpenCV]
[hunter ** FATAL ERROR **] [Directory:
(Home directory is mannually edited as ~)
When I use g++-5 compiler, it success without any compile issue.
Thanks a lot!
from acf.
👍
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)
- Execute issues in cross platform board HOT 13
- build issues for X86 Linux HOT 4
- acf shared library link ogles_gpgpu errors HOT 2
- Xcode 10.2 build failure
- Ubuntu 18.04 w/ gcc-5-pic-hid-sections-lto HOT 5
- Ubuntu 18.04 w/ linux-gcc-armhf-neon HOT 5
- Support OpenGL ES 2.0/3.0 on Desktop systems HOT 1
- 's|HUNTER_PROJECT_NAME|ELUCIDEYE_PROJECT_NAME|g' or similar
- Confusing installation
- convTri is not correctly called when calculating the pyramid HOT 2
- add pixel level acf pyramid tests : c++ vs matlab
- gradient hist channels are swapped HOT 6
- doxygen api docs
- https://github.com/jmbuena/toolbox.badacost.faces.public
- ACF_BUILD_OGLES_GPGPU=OFF broken HOT 1
- `GIT_SELF` package test HOT 1
- api tests vs unit tests HOT 5
- promote GPUDetectionPipeline to public API
- acf model parsing edge cases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf.