Unsolved QT using OpenCV and camera with mobile phone
-
I builded the framework like it was said here.
-
Which version of Xcode are you using ?
-
I am using Xcode version 8.2.1 and cmake version 3.6.2
-
cmake or qmake ?
-
cmake! for building the framework. The QT version I am using is QT5.8.0
-
Ok
As for the bitcode problem, I'd modify their python script to ensure that it's building with bitcode enabled.
-
I looked in the '.../opencv/platforms/ios/build_framework.py' file. But which line should I change to enable Bitcode.
In line 47 is the class Builder, if I change 'self.bitcodedisabled = bitcodedisabled' to 'self.bitcodedisabled = 0' should that work?
-
@Domididongo said in QT using OpenCV and camera with mobile phone:
self.bitcodedisabled = 0
self.bitcodedisabled = False
-
So I changed now in line 276:
parser.add_argument('--disable-bitcode', default=False, dest='bitcodedisabled', action='store_false', help='disable bitcode (enabled by default)')the action='store_true' to action='store_false',
and in line 58:
self.bitcodedisabled = bitcodedisabled to self.bitcodedisabled = Falsebut still getting the same error:
does not contain bitcode...is there somewhere else something i have to change?
-
Try adding
set(CMAKE_XCODE_ATTRIBUTE_BITCODE_GENERATION_MODE "bitcode")
to the iOS.cmake file.