This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to build an OpenCV project using ARM compiler 6

I am trying to build a C++ OpenCV project with ARM compiler 6 in ARM development studio ide. I already, downloaded version 3.2.0 from the GitHub repository of OpenCV and built it for the  MinGW compiler using CMake GUI in windows. When I configure my project to use MinGW, I can cross-compile my code an generate the axf file without any problem. However, when I use ARM compiler 6 I'm getting the build report attached below., my questions are, what can I do to resolve the reported errors ? Do I need to re-build the OpenCV library for ARM compiler 6? If so which generator and platform should I choose in CMake GUI?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
17:22:07 **** Incremental Build of configuration Debug for project Stereo_Circular_Eclipse ****
make all
'Building file: ../depth/depth.cpp'
'Invoking: Arm C++ Compiler 6'
armclang.exe --target=aarch64-arm-none-eabi -I"C:\openCV\build_opencv\install\include" -xc++ -fno-exceptions -O0 -g -MD -MP -c -o "depth/depth.o" "../depth/depth.cpp"
armclang: warning: Your license for feature ds_suite_eval will expire in 30 days [-Wlicense-management]
armclang: warning: Your license for feature ds_compiler_eval20191 will expire in 30 days [-Wlicense-management]
In file included from ../depth/depth.cpp:12:
In file included from C:\openCV\build_opencv\install\include\opencv2/opencv.hpp:62:
In file included from C:\openCV\build_opencv\install\include\opencv2/flann.hpp:48:
In file included from C:\openCV\build_opencv\install\include\opencv2/flann/flann_base.hpp:40:
In file included from C:\openCV\build_opencv\install\include\opencv2/flann/params.h:33:
C:\openCV\build_opencv\install\include\opencv2/flann/any.h:268:42: error: cannot use 'throw' with exceptions disabled
if (policy->type() != typeid(T)) throw anyimpl::bad_any_cast();
^
C:\openCV\build_opencv\install\include\opencv2/flann/any.h:277:42: error: cannot use 'throw' with exceptions disabled
if (policy->type() != typeid(T)) throw anyimpl::bad_any_cast();
^
In file included from ../depth/depth.cpp:12:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0