Ask Your Question

hubaiz's profile - activity

2017-02-27 12:20:31 -0600 received badge  Enthusiast
2017-02-15 10:39:08 -0600 received badge  Supporter (source)
2017-02-15 10:10:35 -0600 received badge  Scholar (source)
2017-02-15 10:09:06 -0600 commented answer OpenCV 3.2 build for iOS with libjpeg-turbo to be used with Qt

Thanks for the solution. Compiled OpenCV 3.2 with the Qt JPG library and now it works. :)

2017-01-04 16:43:59 -0600 asked a question OpenCV 3.2 build for iOS with libjpeg-turbo to be used with Qt

How to build OpenCV 3.2 with libjpeg-turbo for iOS so that it can be used with Qt (5.7.1 or 5.8) and avoid the JPEG version mismatch error and crash. I was using the following with 2.4

cmake -DWITH_JPEG=ON -DBUILD_JPEG=OFF -DJPEG_INCLUDE_DIR=/path/to/libjepeg-turbo/include/ -DJPEG_LIBRARY=/path/to/libjpeg-turbo/lib/libjpeg.a /path/to/OpenCV

and this worked, but fails with 3.2. If I use the 'OpenCV for iOS' with Qt and try to load a jpeg file with imdecode the application will crash with a jpeg version mismatch error.

Eventually is there other workaround for this?

Qt 5.7.1

#define JVERSION    "8c  16-Jan-2011"

OpenCV 3.2

#define JVERSION    "9  13-Jan-2013"