OpenCV 2.4.4 and Tesseract 3.02.02 Don't mess

I am using iOS 6.1 and Xcode 4.6

I have a problem, OpenCV needs to be compiled using libC ++ (LLVM C ++ 11), and Tesseract 3.02.03 needs to be compiled using the default compiler.

How can I solve this problem. at this point, I can only compile and link if I comment on the OpenCV code or comment out the OCR code. can't make them work together.

Any ideas?

+5
source share
1 answer

I am by no means an expert in C ++, but I had the same problem, and for some trial errors and a lot of Internet searches, I think I was able to solve this.

, , opencv tesseract . opencv lib++, tesseract stdlib++

, , . tesseract , here, build script, .

script ( , , , ) clang++ (CXX="/usr/bin/clang++") lib++ (CXXFLAGS="$CFLAGS -stdlib=libc++"), (albiet with ). , script, , .

iOS ( lib++ ), .

.

+2

All Articles