I did not find an elegant way to solve that MSYS bug,
but anyway qwt-6.1.3 gets built with qt-5.8 with Android API 22,
it just does not get installed.
Getting rid of libQt5PrintSupport.so dependency with
CONFIG += QT_NO_PRINTER
or
DEFINES += QT_NO_PRINTER
CONFIG += QT_NO_PRINTER
or
DEFINES += QT_NO_PRINTER
To copy to clipboard, switch view to plain text mode
did not help, but that is not a show stopper.
If a stand-alone app is made out of controls example, its contols.pro could look like:
QT += core gui concurrent
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = controls
TEMPLATE = app
SOURCES += main.cpp \
dialbox.cpp \
dialtab.cpp \
knobbox.cpp \
knobtab.cpp \
sliderbox.cpp \
slidertab.cpp \
wheelbox.cpp \
wheeltab.cpp
HEADERS += \
dialbox.h \
dialtab.h \
knobbox.h \
knobtab.h \
sliderbox.h \
slidertab.h \
wheelbox.h \
wheeltab.h
INCLUDEPATH += "D:\QT_LIBS\Qwt-6.1.3-svn\include"
DEPENDPATH += "D:\QT_LIBS\Qwt-6.1.3-svn\include"
android {
QWT_PATH = "D:\QtProjects\build-qwt-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_8_0_715d62-Release\lib"
LIBS += -L$$QWT_PATH -lqwt
message($$QWT_PATH)
message("android")
}
win32 {
LIBS += "D:\QtProjects\build-qwt-Desktop_Qt_5_8_0_MSVC2015_64bit-Release\lib\qwt.lib"
message("windows")
message($$LIBS)
}
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
ANDROID_EXTRA_LIBS = \
D:/QtProjects/controls/../build-qwt-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_8_0_715d62-Release/lib/libqwt.so \
$$PWD/../../Qt/Qt-5.8.0-android/5.8/android_armv7/lib/libQt5PrintSupport.so
}
QT += core gui concurrent
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = controls
TEMPLATE = app
SOURCES += main.cpp \
dialbox.cpp \
dialtab.cpp \
knobbox.cpp \
knobtab.cpp \
sliderbox.cpp \
slidertab.cpp \
wheelbox.cpp \
wheeltab.cpp
HEADERS += \
dialbox.h \
dialtab.h \
knobbox.h \
knobtab.h \
sliderbox.h \
slidertab.h \
wheelbox.h \
wheeltab.h
INCLUDEPATH += "D:\QT_LIBS\Qwt-6.1.3-svn\include"
DEPENDPATH += "D:\QT_LIBS\Qwt-6.1.3-svn\include"
android {
QWT_PATH = "D:\QtProjects\build-qwt-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_8_0_715d62-Release\lib"
LIBS += -L$$QWT_PATH -lqwt
message($$QWT_PATH)
message("android")
}
win32 {
LIBS += "D:\QtProjects\build-qwt-Desktop_Qt_5_8_0_MSVC2015_64bit-Release\lib\qwt.lib"
message("windows")
message($$LIBS)
}
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
ANDROID_EXTRA_LIBS = \
D:/QtProjects/controls/../build-qwt-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_8_0_715d62-Release/lib/libqwt.so \
$$PWD/../../Qt/Qt-5.8.0-android/5.8/android_armv7/lib/libQt5PrintSupport.so
}
To copy to clipboard, switch view to plain text mode
There are some warnings about unused DT entries at the start of the app,
well, at least the app starts and works.
Bookmarks