-
Notifications
You must be signed in to change notification settings - Fork 29
/
preview.pro
29 lines (22 loc) · 1.14 KB
/
preview.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
TEMPLATE = app
QT += qml quick multimedia
SOURCES += src/main.cpp
RESOURCES += qml.qrc
android {
target.path = /libs/armeabi-v7a
export(target.path)
INSTALLS += target
export(INSTALLS)
ANDROID_EXTRA_LIBS = \
$$(ANDROID_STANDALONE_TOOLCHAIN)/sysroot/usr/share/opencv/sdk/native/libs/armeabi-v7a/libopencv_core.so \
$$(ANDROID_STANDALONE_TOOLCHAIN)/sysroot/usr/share/opencv/sdk/native/libs/armeabi-v7a/libopencv_imgproc.so \
$$(ANDROID_STANDALONE_TOOLCHAIN)/sysroot/usr/share/opencv/sdk/native/libs/armeabi-v7a/libopencv_imgcodecs.so \
$$(ANDROID_STANDALONE_TOOLCHAIN)/sysroot/usr/share/opencv/sdk/native/libs/armeabi-v7a/libopencv_videoio.so \
$$(ANDROID_STANDALONE_TOOLCHAIN)/sysroot/usr/share/opencv/sdk/native/libs/armeabi-v7a/libopencv_highgui.so \
$$(ANDROID_STANDALONE_TOOLCHAIN)/sysroot/usr/share/opencv/sdk/native/libs/armeabi-v7a/libnative_camera_r4.4.0.so \ #Adapt this line to your device's Android version
$$[QT_INSTALL_QML]/CVCamera/libcvcameraplugin.so
ANDROID_PERMISSIONS += \
android.permission.CAMERA
ANDROID_FEATURES += \
android.hardware.camera
}