Задать вопрос
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: понятно, спасибо! попробую разобраться)
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: запустила с этим скриптом, теперь в консоли правильно отображаются символы, но походу больше ничего не изменилось
    pro файл сделала как у вас, но ничего особо не поменялось от этого
    Вывод приложения

    Запуск внешнего процесса.I art : Not late-enabling -Xcheck:jni (already on)
    W art : Unexpected CPU variant for X86 using defaults: x86
    W System : ClassLoader referenced unknown path:
    W linker : /data/app/org.qtproject.example.qt_test-2/lib/x86/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/app/org.qtproject.example.qt_test-2/lib/x86/libQt5Widgets.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example.qt_test/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x81
    I Qt : qt start
    W System.err: java.lang.reflect.InvocationTargetException
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W System.err: at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W System.err: at android.app.Activity.performCreate(Activity.java:6679)
    W System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
    W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
    W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
    W System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java)
    W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
    W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    W System.err: at android.os.Looper.loop(Looper.java:154)
    W System.err: at android.app.ActivityThread.main(ActivityThread.java:6119)
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
    W System.err: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt15basic_streambufIwSt11char_traitsIwEE9pbackfailEi" referenced by "/data/app/org.qtproject.example.qt_test-2/lib/x86/libboost_regex.so"...
    W System.err: at java.lang.Runtime.load0(Runtime.java:908)
    W System.err: at java.lang.System.load(System.java:1505)
    W System.err: at org.qtproject.qt5.android.QtNative.loadBundledLibraries(QtNative.java:191)
    W System.err: at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:587)
    W System.err: ... 18 more
    D : HostConnection::get() New Host Connection established 0x9ad40400, tid 5398
    W : Process pipe failed
    D : HostConnection::get() New Host Connection established 0x9ad40900, tid 5414
    I OpenGLRenderer: Initialized EGL, version 1.4
    D OpenGLRenderer: Swap behavior 1
    E EGL_emulation: tid 5414: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
    W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x9b63b320, error=EGL_BAD_MATCH
    E EGL_emulation: tid 5414: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
    W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x9b63b500, error=EGL_BAD_MATCH
    I Choreographer: Skipped 40 frames! The application may be doing too much work on its main thread.
    Консоль сборки

    11:52:25: Выполняются этапы для проекта qt_test...
    11:52:25: Настройки не изменились, этап qmake пропускается.
    11:52:25: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    mingw32-make: Nothing to be done for 'first'.
    11:52:38: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    11:52:38: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/assets
    11:52:38: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/libs
    11:52:38: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» "INSTALL_ROOT=C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build" install
    copy /y libqt_test.so C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build\libs\x86\libqt_test.so
    Скопировано файлов: 1.
    11:52:45: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    11:52:45: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_73" --gradle
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: No
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk NO-SOURCE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug UP-TO-DATE
    :assembleDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 46.958 secs
    Android package built successfully in 50.507 ms.
    -- File: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk
    11:53:38: Процесс «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» завершился успешно.
    11:53:38: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --verbose --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --no-build --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --deployment bundled --gradle --reinstall --device emulator-5554
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: emulator-5554
    Detecting dependencies of application.
    Reading dependencies from C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    lib/libQt5Widgets.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Widgets.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Core.so
    Appending dependency: lib/libQt5Core.so
    Reading Android dependencies for Qt5Core
    Appending dependency: lib/libQt5Gui.so
    Reading Android dependencies for Qt5Gui
    Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
    Appending dependency from xml: plugins/iconengines/libqsvgicon.so
    Appending dependency from xml: plugins/imageformats/libqgif.so
    Appending dependency from xml: plugins/imageformats/libqicns.so
    Appending dependency from xml: plugins/imageformats/libqico.so
    Appending dependency from xml: plugins/imageformats/libqjpeg.so
    Appending dependency from xml: plugins/imageformats/libqsvg.so
    Appending dependency from xml: plugins/imageformats/libqtga.so
    Appending dependency from xml: plugins/imageformats/libqtiff.so
    Appending dependency from xml: plugins/imageformats/libqwbmp.so
    Appending dependency from xml: plugins/imageformats/libqwebp.so
    Appending dependency: lib/libQt5Widgets.so
    Reading Android dependencies for Qt5Widgets
    Reading dependencies from C:/Qtt/5.9/android_x86/plugins/platforms/android/libqtforandroid.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/plugins/platforms/android/libqtforandroid.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Scanning for QML imports.
    Copying GNU STL library
    -- Skipping file C:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_shared.so. Same or newer file already in place.
    Copying 15 dependencies from Qt into package.
    Installing Android package to device.
    Running command "C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 install -r C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk"
    Android package built successfully in 5.521 ms.
    -- It can now be run from the selected device/emulator.
    -- File: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk
    Success
    11:53:45: Процесс «C:/Qtt/5.9/android_x86/bin/androiddeployqt.exe» завершился успешно.
    11:53:45: Загрузка файлов, необходимых для отладки.
    11:53:45: Установка пакета: Выполнение команды «C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 pull /system/bin/app_process32 C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/app_process».
    11:53:45: Установка пакета: Выполнение команды «C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 pull /system/lib/libc.so C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libc.so».
    11:53:47: Прошло времени: 01:22.
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41:
    видимо не судьба мне подключить буст :(
    подключение статически не помогло
    .pro файл
    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = qt_test
    TEMPLATE = app
    
    DEFINES += QT_DEPRECATED_WARNINGS
    
    CONFIG += c++14
    
    SOURCES += main.cpp\
            mainwindow.cpp \
        graph.cpp \
        textrank.cpp
    
    HEADERS  += mainwindow.h \
        graph.hpp \
        textrank.hpp
    
    FORMS    += mainwindow.ui
    
    contains(ANDROID_TARGET_ARCH,x86) {
        ANDROID_EXTRA_LIBS = \
            $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.so
    }
    
    
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regexd
    else:unix: LIBS += -L$$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
    
    INCLUDEPATH += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9
    DEPENDPATH += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9
    
    win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
    else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regexd.a
    else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/boost_regex.lib
    else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/boost_regexd.lib
    else:unix: PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a

    Вывод приложения

    Запуск внешнего процесса.I art : Not late-enabling -Xcheck:jni (already on)
    W art : Unexpected CPU variant for X86 using defaults: x86
    W System : ClassLoader referenced unknown path:
    W linker : /data/app/org.qtproject.example.qt_test-1/lib/x86/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/app/org.qtproject.example.qt_test-1/lib/x86/libQt5Widgets.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example.qt_test/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x81
    I Qt : qt start
    W System.err: java.lang.reflect.InvocationTargetException
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W System.err: at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W System.err: at android.app.Activity.performCreate(Activity.java:6679)
    W System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
    W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
    W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
    W System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java)
    W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
    W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    W System.err: at android.os.Looper.loop(Looper.java:154)
    W System.err: at android.app.ActivityThread.main(ActivityThread.java:6119)
    W System.err: at java.lang.reflect.Method.invoke(Native Method)
    W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
    W System.err: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev" referenced by "/data/app/org.qtproject.example.qt_test-1/lib/x86/libboost_regex.so"...
    W System.err: at java.lang.Runtime.load0(Runtime.java:908)
    W System.err: at java.lang.System.load(System.java:1505)
    W System.err: at org.qtproject.qt5.android.QtNative.loadBundledLibraries(QtNative.java:191)
    W System.err: at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:587)
    W System.err: ... 18 more
    D : HostConnection::get() New Host Connection established 0x96a72280, tid 12272
    W : Process pipe failed
    D : HostConnection::get() New Host Connection established 0x96a72780, tid 12290
    I OpenGLRenderer: Initialized EGL, version 1.4
    D OpenGLRenderer: Swap behavior 1
    E EGL_emulation: tid 12290: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
    W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x9d6bd5a0, error=EGL_BAD_MATCH
    E EGL_emulation: tid 12290: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
    W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x9d6bd620, error=EGL_BAD_MATCH
    I Choreographer: Skipped 74 frames! The application may be doing too much work on its main thread.
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: не помогает
    вот что у меня добавлено в .pro файл
    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = qt_test
    TEMPLATE = app
    
    INCLUDEPATH += C:/qt_projects/-----X-----/boost/1.59.0/include
    
    LIBS += -L"C:/qt_projects/-----X-----boost/1.59.0/libs/x86/gnu-4.9/" -lboost_regex -lboost_system
    
    
    DEFINES += QT_DEPRECATED_WARNINGS
    
    CONFIG += c++14
    
    SOURCES += main.cpp\
            mainwindow.cpp \
        graph.cpp \
        textrank.cpp
    
    HEADERS  += mainwindow.h \
        graph.hpp \
        textrank.hpp
    
    FORMS    += mainwindow.ui
    
    contains(ANDROID_TARGET_ARCH,x86) {
        ANDROID_EXTRA_LIBS = \
            $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.so
    }
    
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regexd
    else:unix: LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
    
    INCLUDEPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
    DEPENDPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
    
    ANDROID_EXTRA_LIBS = \
            C:/crystax-ndk-10.3.2/sources/crystax/libs/x86/libcrystax.so \
            C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_regex.so \
            C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_system.so
    
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regexd
    else:unix: LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
    
    INCLUDEPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
    DEPENDPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
    
    win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
    else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regexd.a
    else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/boost_regex.lib
    else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/boost_regexd.lib
    else:unix: PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
    
    QMAKE_LIBS_PRIVATE += -L"C:/crystax-ndk-10.3.2/sources/crystax/libs/x86/libcrystax.so" -lcrystax
    
    APP_PLATFORM += android-21
    APP_CPPFLAGS += -frtti
    APP_CPPFLAGS += -fexceptions

    консоль сборки

    19:18:43: Выполняются этапы для проекта qt_test...
    19:18:43: Настройки не изменились, этап qmake пропускается.
    19:18:43: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    mingw32-make: Nothing to be done for 'first'.
    19:18:51: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    19:18:51: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/assets
    19:18:51: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/libs
    19:18:51: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» "INSTALL_ROOT=C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build" install
    copy /y libqt_test.so C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build\libs\x86\libqt_test.so
    ‘Є®ЇЁа®ў ­® д ©«®ў: 1.
    19:18:59: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    19:18:59: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_73" --gradle
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: No
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk NO-SOURCE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug UP-TO-DATE
    :assembleDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 14.057 secs
    Android package built successfully in 16.231 ms.
    -- File: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk
    19:19:15: Процесс «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» завершился успешно.
    19:19:16: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --verbose --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --no-build --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --deployment bundled --gradle --reinstall --device emulator-5554
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: emulator-5554
    Detecting dependencies of application.
    Reading dependencies from C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    lib/libQt5Widgets.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Widgets.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Core.so
    Appending dependency: lib/libQt5Core.so
    Reading Android dependencies for Qt5Core
    Appending dependency: lib/libQt5Gui.so
    Reading Android dependencies for Qt5Gui
    Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
    Appending dependency from xml: plugins/iconengines/libqsvgicon.so
    Appending dependency from xml: plugins/imageformats/libqgif.so
    Appending dependency from xml: plugins/imageformats/libqicns.so
    Appending dependency from xml: plugins/imageformats/libqico.so
    Appending dependency from xml: plugins/imageformats/libqjpeg.so
    Appending dependency from xml: plugins/imageformats/libqsvg.so
    Appending dependency from xml: plugins/imageformats/libqtga.so
    Appending dependency from xml: plugins/imageformats/libqtiff.so
    Appending dependency from xml: plugins/imageformats/libqwbmp.so
    Appending dependency from xml: plugins/imageformats/libqwebp.so
    Appending dependency: lib/libQt5Widgets.so
    Reading Android dependencies for Qt5Widgets
    Reading dependencies from C:/Qtt/5.9/android_x86/plugins/platforms/android/libqtforandroid.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/plugins/platforms/android/libqtforandroid.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Scanning for QML imports.
    Copying GNU STL library
    -- Skipping file C:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_shared.so. Same or newer file already in place.
    Copying 15 dependencies from Qt into package.
    Installing Android package to device.
    Running command "C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 install -r C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk"
    [ 0%] /data/local/tmp/android-build-debug.apk
    [ 1%] /data/local/tmp/android-build-debug.apk
    [ 1%] /data/local/tmp/android-build-debug.apk
    [ 2%] /data/local/tmp/android-build-debug.apk
    [ 2%] /data/local/tmp/android-build-debug.apk
    [ 3%] /data/local/tmp/android-build-debug.apk
    [ 3%] /data/local/tmp/android-build-debug.apk
    [ 4%] /data/local/tmp/android-build-debug.apk
    [ 4%] /data/local/tmp/android-build-debug.apk
    [ 5%] /data/local/tmp/android-build-debug.apk
    [ 5%] /data/local/tmp/android-build-debug.apk
    [ 6%] /data/local/tmp/android-build-debug.apk
    [ 6%] /data/local/tmp/android-build-debug.apk
    [ 7%] /data/local/tmp/android-build-debug.apk
    [ 7%] /data/local/tmp/android-build-debug.apk
    [ 8%] /data/local/tmp/android-build-debug.apk
    [ 8%] /data/local/tmp/android-build-debug.apk
    [ 9%] /data/local/tmp/android-build-debug.apk
    [ 9%] /data/local/tmp/android-build-debug.apk
    [ 10%] /data/local/tmp/android-build-debug.apk
    [ 10%] /data/local/tmp/android-build-debug.apk
    [ 11%] /data/local/tmp/android-build-debug.apk
    [ 11%] /data/local/tmp/android-build-debug.apk
    [ 12%] /data/local/tmp/android-build-debug.apk
    [ 13%] /data/local/tmp/android-build-debug.apk
    [ 13%] /data/local/tmp/android-build-debug.apk
    [ 14%] /data/local/tmp/android-build-debug.apk
    [ 14%] /data/local/tmp/android-build-debug.apk
    [ 15%] /data/local/tmp/android-build-debug.apk
    [ 15%] /data/local/tmp/android-build-debug.apk
    [ 16%] /data/local/tmp/android-build-debug.apk
    [ 16%] /data/local/tmp/android-build-debug.apk
    [ 17%] /data/local/tmp/android-build-debug.apk
    [ 17%] /data/local/tmp/android-build-debug.apk
    [ 18%] /data/local/tmp/android-build-debug.apk
    [ 18%] /data/local/tmp/android-build-debug.apk
    [ 19%] /data/local/tmp/android-build-debug.apk
    [ 19%] /data/local/tmp/android-build-debug.apk
    [ 20%] /data/local/tmp/android-build-debug.apk
    [ 20%] /data/local/tmp/android-build-debug.apk
    [ 21%] /data/local/tmp/android-build-debug.apk
    [ 21%] /data/local/tmp/android-build-debug.apk
    [ 22%] /data/local/tmp/android-build-debug.apk
    [ 22%] /data/local/tmp/android-build-debug.apk
    [ 23%] /data/local/tmp/android-build-debug.apk
    [ 23%] /data/local/tmp/android-build-debug.apk
    [ 24%] /data/local/tmp/android-build-debug.apk
    [ 25%] /data/local/tmp/android-build-debug.apk
    [ 25%] /data/local/tmp/android-build-debug.apk
    [ 26%] /data/local/tmp/android-build-debug.apk
    [ 26%] /data/local/tmp/android-build-debug.apk
    [ 27%] /data/local/tmp/android-build-debug.apk
    [ 27%] /data/local/tmp/android-build-debug.apk
    [ 28%] /data/local/tmp/android-build-debug.apk
    [ 28%] /data/local/tmp/android-build-debug.apk
    [ 29%] /data/local/tmp/android-build-debug.apk
    [ 29%] /data/local/tmp/android-build-debug.apk
    [ 30%] /data/local/tmp/android-build-debug.apk
    [ 30%] /data/local/tmp/android-build-debug.apk
    [ 31%] /data/local/tmp/android-build-debug.apk
    [ 31%] /data/local/tmp/android-build-debug.apk
    [ 32%] /data/local/tmp/android-build-debug.apk
    [ 32%] /data/local/tmp/android-build-debug.apk
    [ 33%] /data/local/tmp/android-build-debug.apk
    [ 33%] /data/local/tmp/android-build-debug.apk
    [ 34%] /data/local/tmp/android-build-debug.apk
    [ 34%] /data/local/tmp/android-build-debug.apk
    [ 35%] /data/local/tmp/android-build-debug.apk
    [ 35%] /data/local/tmp/android-build-debug.apk
    [ 36%] /data/local/tmp/android-build-debug.apk
    [ 37%] /data/local/tmp/android-build-debug.apk
    [ 37%] /data/local/tmp/android-build-debug.apk
    [ 38%] /data/local/tmp/android-build-debug.apk
    [ 38%] /data/local/tmp/android-build-debug.apk
    [ 39%] /data/local/tmp/android-build-debug.apk
    [ 39%] /data/local/tmp/android-build-debug.apk
    [ 40%] /data/local/tmp/android-build-debug.apk
    [ 40%] /data/local/tmp/android-build-debug.apk
    [ 41%] /data/local/tmp/android-build-debug.apk
    [ 41%] /data/local/tmp/android-build-debug.apk
    [ 42%] /data/local/tmp/android-build-debug.apk
    [ 42%] /data/local/tmp/android-build-debug.apk
    [ 43%] /data/local/tmp/android-build-debug.apk
    [ 43%] /data/local/tmp/android-build-debug.apk
    [ 44%] /data/local/tmp/android-build-debug.apk
    [ 44%] /data/local/tmp/android-build-debug.apk
    [ 45%] /data/local/tmp/android-build-debug.apk
    [ 45%] /data/local/tmp/android-build-debug.apk
    [ 46%] /data/local/tmp/android-build-debug.apk
    [ 46%] /data/local/tmp/android-build-debug.apk
    [ 47%] /data/local/tmp/android-build-debug.apk
    [ 47%] /data/local/tmp/android-build-debug.apk
    [ 48%] /data/local/tmp/android-build-debug.apk
    [ 49%] /data/local/tmp/android-build-debug.apk
    [ 49%] /data/local/tmp/android-build-debug.apk
    [ 50%] /data/local/tmp/android-build-debug.apk
    [ 50%] /data/local/tmp/android-build-debug.apk
    [ 51%] /data/local/tmp/android-build-debug.apk
    [ 51%] /data/local/tmp/android-build-debug.apk
    [ 52%] /data/local/tmp/android-build-debug.apk
    [ 52%] /data/local/tmp/android-build-debug.apk
    [ 53%] /data/local/tmp/android-build-debug.apk
    [ 53%] /data/local/tmp/android-build-debug.apk
    [ 54%] /data/local/tmp/android-build-debug.apk
    [ 54%] /data/local/tmp/android-build-debug.apk
    [ 55%] /data/local/tmp/android-build-debug.apk
    [ 55%] /data/local/tmp/android-build-debug.apk
    [ 56%] /data/local/tmp/android-build-debug.apk
    [ 56%] /data/local/tmp/android-build-debug.apk
    [ 57%] /data/local/tmp/android-build-debug.apk
    [ 57%] /data/local/tmp/android-build-debug.apk
    [ 58%] /data/local/tmp/android-build-debug.apk
    [ 58%] /data/local/tmp/android-build-debug.apk
    [ 59%] /data/local/tmp/android-build-debug.apk
    [ 59%] /data/local/tmp/android-build-debug.apk
    [ 60%] /data/local/tmp/android-build-debug.apk
    [ 61%] /data/local/tmp/android-build-debug.apk
    [ 61%] /data/local/tmp/android-build-debug.apk
    [ 62%] /data/local/tmp/android-build-debug.apk
    [ 62%] /data/local/tmp/android-build-debug.apk
    [ 63%] /data/local/tmp/android-build-debug.apk
    [ 63%] /data/local/tmp/android-build-debug.apk
    [ 64%] /data/local/tmp/android-build-debug.apk
    [ 64%] /data/local/tmp/android-build-debug.apk
    [ 65%] /data/local/tmp/android-build-debug.apk
    [ 65%] /data/local/tmp/android-build-debug.apk
    [ 66%] /data/local/tmp/android-build-debug.apk
    [ 66%] /data/local/tmp/android-build-debug.apk
    [ 67%] /data/local/tmp/android-build-debug.apk
    [ 67%] /data/local/tmp/android-build-debug.apk
    [ 68%] /data/local/tmp/android-build-debug.apk
    [ 68%] /data/local/tmp/android-build-debug.apk
    [ 69%] /data/local/tmp/android-build-debug.apk
    [ 69%] /data/local/tmp/android-build-debug.apk
    [ 70%] /data/local/tmp/android-build-debug.apk
    [ 70%] /data/local/tmp/android-build-debug.apk
    [ 71%] /data/local/tmp/android-build-debug.apk
    [ 71%] /data/local/tmp/android-build-debug.apk
    [ 72%] /data/local/tmp/android-build-debug.apk
    [ 73%] /data/local/tmp/android-build-debug.apk
    [ 73%] /data/local/tmp/android-build-debug.apk
    [ 74%] /data/local/tmp/android-build-debug.apk
    [ 74%] /data/local/tmp/android-build-debug.apk
    [ 75%] /data/local/tmp/android-build-debug.apk
    [ 75%] /data/local/tmp/android-build-debug.apk
    [ 76%] /data/local/tmp/android-build-debug.apk
    [ 76%] /data/local/tmp/android-build-debug.apk
    [ 77%] /data/local/tmp/android-build-debug.apk
    [ 77%] /data/local/tmp/android-build-debug.apk
    [ 78%] /data/local/tmp/android-build-debug.apk
    [ 78%] /data/local/tmp/android-build-debug.apk
    [ 79%] /data/local/tmp/android-build-debug.apk
    [ 79%] /data/local/tmp/android-build-debug.apk
    [ 80%] /data/local/tmp/android-build-debug.apk
    [ 80%] /data/local/tmp/android-build-debug.apk
    [ 81%] /data/local/tmp/android-build-debug.apk
    [ 81%] /data/local/tmp/android-build-debug.apk
    [ 82%] /data/local/tmp/android-build-debug.apk
    [ 82%] /data/local/tmp/android-build-debug.apk
    [ 83%] /data/local/tmp/android-build-debug.apk
    [ 83%] /data/local/tmp/android-build-debug.apk
    [ 84%] /data/local/tmp/android-build-debug.apk
    [ 85%] /data/local/tmp/android-build-debug.apk
    [ 85%] /data/local/tmp/android-build-debug.apk
    [ 86%] /data/local/tmp/android-build-debug.apk
    [ 86%] /data/local/tmp/android-build-debug.apk
    [ 87%] /data/local/tmp/android-build-debug.apk
    [ 87%] /data/local/tmp/android-build-debug.apk
    [ 88%] /data/local/tmp/android-build-debug.apk
    [ 88%] /data/local/tmp/android-build-debug.apk
    [ 89%] /data/local/tmp/android-build-debug.apk
    [ 89%] /data/local/tmp/android-build-debug.apk
    [ 90%] /data/local/tmp/android-build-debug.apk
    [ 90%] /data/local/tmp/android-build-debug.apk
    [ 91%] /data/local/tmp/android-build-debug.apk
    [ 91%] /data/local/tmp/android-build-debug.apk
    [ 92%] /data/local/tmp/android-build-debug.apk
    [ 92%] /data/local/tmp/android-build-debug.apk
    [ 93%] /data/local/tmp/android-build-debug.apk
    [ 93%] /data/local/tmp/android-build-debug.apk
    [ 94%] /data/local/tmp/android-build-debug.apk
    [ 94%] /data/local/tmp/android-build-debug.apk
    [ 95%] /data/local/tmp/android-build-debug.apk
    [ 95%] /data/local/tmp/android-build-debug.apk
    [ 96%] /data/local/tmp/android-build-debug.apk
    [ 97%] /data/local/tmp/android-build-debug.apk
    [ 97%] /data/local/tmp/android-build-debug.apk
    [ 98%] /data/local/tmp/android-build-debug.apk
    [ 98%] /data/local/tmp/android-build-debug.apk
    [ 99%] /data/local/tmp/android-build-debug.apk
    [ 99%] /data/local/tmp/android-build-debug.apk
    [100%] /data/local/tmp/android-build-debug.apk
    C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk: 1 file pushed. 8.0 MB/s (12566263 bytes in 1.498s)
    pkg: /data/local/tmp/android-build-debug.apk

    Success

    Android package built successfully in 11.689 ms.
    -- It can now be run from the selected device/emulator.
    -- File: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk
    19:19:28: Процесс «C:/Qtt/5.9/android_x86/bin/androiddeployqt.exe» завершился успешно.
    19:19:28: Загрузка файлов, необходимых для отладки.
    19:19:28: Установка пакета: Выполнение команды «C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 pull /system/bin/app_process32 C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/app_process».
    19:19:28: Установка пакета: Выполнение команды «C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 pull /system/lib/libc.so C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libc.so».
    19:19:28: Прошло времени: 00:45.
    вывод приложения

    Запуск внешнего процесса.E/libprocessgroup( 3432): failed to make and chown /acct/uid_10058: Read-only file system
    W/Zygote ( 3432): createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
    I/art ( 3432): Not late-enabling -Xcheck:jni (already on)
    I/ActivityManager( 1693): Start proc org.qtproject.example.qt_test for activity org.qtproject.example.qt_test/org.qtproject.qt5.android.bindings.QtActivity: pid=3432 uid=10058 gids={50058, 9997, 3003, 1028, 1015} abi=x86
    I/Qt ( 3432): qt start
    E/art ( 3432): dlopen("/data/app/org.qtproject.example.qt_test-1/lib/x86/libboost_regex.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEjc" referenced by "libboost_regex.so"...
    W/System.err( 3432): java.lang.reflect.InvocationTargetException
    W/System.err( 3432): at java.lang.reflect.Method.invoke(Native Method)
    W/System.err( 3432): at java.lang.reflect.Method.invoke(Method.java:372)
    W/System.err( 3432): at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err( 3432): at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W/System.err( 3432): at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W/System.err( 3432): at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W/System.err( 3432): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W/System.err( 3432): at android.app.Activity.performCreate(Activity.java:5937)
    W/System.err( 3432): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    W/System.err( 3432): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
    W/System.err( 3432): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
    W/System.err( 3432): at android.app.ActivityThread.access$800(ActivityThread.java:144)
    W/System.err( 3432): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
    W/System.err( 3432): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err( 3432): at android.os.Looper.loop(Looper.java:135)
    W/System.err( 3432): at android.app.ActivityThread.main(ActivityThread.java:5221)
    W/System.err( 3432): at java.lang.reflect.Method.invoke(Native Method)
    W/System.err( 3432): at java.lang.reflect.Method.invoke(Method.java:372)
    W/System.err( 3432): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    W/System.err( 3432): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    W/System.err( 3432): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEjc" referenced by "libboost_regex.so"...
    W/System.err( 3432): at java.lang.Runtime.load(Runtime.java:331)
    W/System.err( 3432): at java.lang.System.load(System.java:982)
    W/System.err( 3432): at org.qtproject.qt5.android.QtNative.loadBundledLibraries(QtNative.java:191)
    W/System.err( 3432): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:587)
    W/System.err( 3432): ... 20 more
    D/OpenGLRenderer( 3432): Render dirty regions requested: true
    I/Choreographer( 3432): Skipped 49 frames! The application may be doing too much work on its main thread.
    I/OpenGLRenderer( 3432): Initialized EGL, version 1.4
    D/OpenGLRenderer( 3432): Enabling debug mode 0
    I/Choreographer( 3432): Skipped 122 frames! The application may be doing too much work on its main thread.
    D/gralloc_ranchu( 3432): Emulator without host-side GPU emulation detected.
    I/Choreographer( 3432): Skipped 54 frames! The application may be doing too much work on its main thread.
    I/Choreographer( 3432): Skipped 40 frames! The application may be doing too much work on its main thread.
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: я исправила пути, теперь нет ошибок, и
    компилится тоже без ошибок
    18:40:45: Выполняются этапы для проекта qt_test...
    18:40:45: Настройки не изменились, этап qmake пропускается.
    18:40:45: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    mingw32-make: Nothing to be done for 'first'.
    18:40:55: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    18:40:55: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/assets
    18:40:55: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/libs
    18:40:55: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» "INSTALL_ROOT=C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build" install
    copy /y libqt_test.so C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build\libs\x86\libqt_test.so
    ‘Є®ЇЁа®ў ­® д ©«®ў: 1.
    18:41:05: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    18:41:05: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_73" --gradle
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: No
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk NO-SOURCE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug UP-TO-DATE
    :assembleDebug UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 18.833 secs
    Android package built successfully in 21.819 ms.
    -- File: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk
    18:41:27: Процесс «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» завершился успешно.
    18:41:28: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --verbose --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --no-build --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --deployment bundled --gradle --reinstall --device emulator-5554
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: emulator-5554
    Detecting dependencies of application.
    Reading dependencies from C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    lib/libQt5Widgets.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Widgets.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/lib/libQt5Core.so
    Appending dependency: lib/libQt5Core.so
    Reading Android dependencies for Qt5Core
    Appending dependency: lib/libQt5Gui.so
    Reading Android dependencies for Qt5Gui
    Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
    Appending dependency from xml: plugins/iconengines/libqsvgicon.so
    Appending dependency from xml: plugins/imageformats/libqgif.so
    Appending dependency from xml: plugins/imageformats/libqicns.so
    Appending dependency from xml: plugins/imageformats/libqico.so
    Appending dependency from xml: plugins/imageformats/libqjpeg.so
    Appending dependency from xml: plugins/imageformats/libqsvg.so
    Appending dependency from xml: plugins/imageformats/libqtga.so
    Appending dependency from xml: plugins/imageformats/libqtiff.so
    Appending dependency from xml: plugins/imageformats/libqwbmp.so
    Appending dependency from xml: plugins/imageformats/libqwebp.so
    Appending dependency: lib/libQt5Widgets.so
    Reading Android dependencies for Qt5Widgets
    Reading dependencies from C:/Qtt/5.9/android_x86/plugins/platforms/android/libqtforandroid.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Reading dependencies from C:/Qtt/5.9/android_x86/plugins/platforms/android/libqtforandroid.so
    lib/libQt5Gui.so
    lib/libQt5Core.so
    Scanning for QML imports.
    Copying GNU STL library
    -- Skipping file C:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_shared.so. Same or newer file already in place.
    Copying 15 dependencies from Qt into package.
    Success
    Installing Android package to device.
    Running command "C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 install -r C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk"
    Android package built successfully in 18.131 ms.
    -- It can now be run from the selected device/emulator.
    -- File: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build//build/outputs/apk/android-build-debug.apk
    18:41:46: Процесс «C:/Qtt/5.9/android_x86/bin/androiddeployqt.exe» завершился успешно.
    18:41:46: Загрузка файлов, необходимых для отладки.
    18:41:46: Установка пакета: Выполнение команды «C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 pull /system/bin/app_process32 C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/app_process».
    18:41:46: Установка пакета: Выполнение команды «C:/Android/Android/sdk/platform-tools/adb.exe -s emulator-5554 pull /system/lib/libc.so C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libc.so».
    18:41:46: Прошло времени: 01:01.
    , но когда запускаю приложение появляется такое
    83092608445a4b6dac98238ca2fd48d1.png

    это всё-таки значит, что проблема с версией ndk?
    CrystaX NDK я недавно скачивала, у меня новая версия
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: ошибок нет, но теперь оно кажется вообще не распознает библиотеку

    External library LC:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-4.9/ does not exist!


    консоль сборки

    18:03:47: Выполняются этапы для проекта qt_test...
    18:03:47: Настройки не изменились, этап qmake пропускается.
    18:03:47: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    mingw32-make: Nothing to be done for 'first'.
    18:03:53: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    18:03:53: Удаление каталога C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build/libs
    18:03:53: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» "INSTALL_ROOT=C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build" install
    copy /y libqt_test.so C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\android-build\libs\x86\libqt_test.so
    ‘Є®ЇЁа®ў ­® д ©«®ў: 1.
    18:03:59: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    18:03:59: Запускается: «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» --input C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json --output C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_73" --gradle
    Generating Android Package
    Input file: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-libqt_test.so-deployment-settings.json
    Output directory: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/android-build/
    Application binary: C:/qt_projects/-----X-----/IsTextRankKo-master/build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug/libqt_test.so
    Android build platform: android-25
    Install to device: No
    External library LC:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-4.9/ does not exist!
    18:04:00: Процесс «C:\Qtt\5.9\android_x86\bin\androiddeployqt.exe» завершился с кодом 10.
    Ошибка при сборке/установке проекта qt_test (комплект: Android для x86 (GCC 4.9, Qt 5.9.0) )
    Во время выполнения этапа «Сборка Android APK»
    18:04:00: Прошло времени: 00:13.
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41:
    что значит с флагом -std=c++14? и почему собрать boost с поддержкой c++14 не просто?

    но зачем мне эта инструкция? там же просто про qt для android. обычные то проекты у меня запускаются под android, мне лишь надо с boost разобраться
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: ой, ещё раз подключила как вы сказали через
    Еще вариант, в QtCreator можно кликнуть на проекте (или подпроекте) правой кнопкой, выбрать "добавить библиотеку" -> внешняя -> динамическая, там указать путь.

    и ошибки ушли))) спасибо!!
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41:

    все равно, поменяла на 4.9
    f03838004d2a4dba99ff2741670abdd1.png
    консоль сборки

    15:44:11: Выполняются этапы для проекта qt_test...
    15:44:11: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» clean
    C:\Qtt\5.9\android_x86\bin\qmake.exe -o Makefile ..\src\qt_test.pro -spec android-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    del moc_predefs.h
    del moc_mainwindow.cpp
    del ui_mainwindow.h
    del main.obj mainwindow.obj graph.obj textrank.obj moc_mainwindow.obj
    del *~ core *.core
    ЌҐ г¤ Ґвбп ­ ©вЁ C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\*~
    15:44:15: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    15:44:15: Настройки не изменились, этап qmake пропускается.
    15:44:15: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    C:\Qtt\5.9\android_x86\bin\uic.exe ..\src\mainwindow.ui -o ui_mainwindow.h
    ..\src\mainwindow.ui: Warning: Z-order assignment: 'groupBox_3' is not a valid widget.
    ..\src\mainwindow.ui: Warning: Z-order assignment: 'gridLayoutWidget' is not a valid widget.
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++14 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o main.obj ..\src\main.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++14 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o mainwindow.obj ..\src\mainwindow.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++14 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o graph.obj ..\src\graph.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++14 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o textrank.obj ..\src\textrank.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++14 -Wall -W -dM -E -o moc_predefs.h ..\..\..\..\Qtt\5.9\android_x86\mkspecs\features\data\dummy.cpp
    C:\Qtt\5.9\android_x86\bin\moc.exe -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include ./moc_predefs.h -IC:/Qtt/5.9/android_x86/mkspecs/android-g++ -IC:/qt_projects/-----X-----/IsTextRankKo-master/src -IC:/qt_projects/-----X-----/boost/1.59.0/include -IC:/Qtt/5.9/android_x86/include -IC:/Qtt/5.9/android_x86/include/QtWidgets -IC:/Qtt/5.9/android_x86/include/QtGui -IC:/Qtt/5.9/android_x86/include/QtCore -I. -IC:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include -IC:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86//usr/include -Ic:/android/android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/include -Ic:/android/android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/include-fixed -IC:/Android/Android/sdk/ndk-bundle/platforms/android-16/arch-x86/usr/include ..\src\mainwindow.h -o moc_mainwindow.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++14 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o moc_mainwindow.obj moc_mainwindow.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -Wl,-soname,libqt_test.so -Wl,-rpath=C:/Qtt/5.9/android_x86/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libqt_test.so main.obj mainwindow.obj graph.obj textrank.obj moc_mainwindow.obj -LC:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -LC:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86//usr/lib -Lc:/android/android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x -LC:/Qtt/5.9/android_x86/lib -lQt5Widgets -Lc:\utils\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -Lc:\utils\android-ndk-r10e/platforms/android-16/arch-x86//usr/lib -Lc:/utils/android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows/bin/../lib/gcc/i686-linux-android/4.9 -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
    ..\..\boost\1.59.0\include/boost/regex/v4/basic_regex.hpp:380: error: undefined reference to 'boost::basic_regex > >::do_assign(char const*, char const*, unsigned int)'
    ..\..\boost\1.59.0\include/boost/regex/v4/regex_search.hpp:56: error: undefined reference to 'boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, boost::regex_traits > >::find()'
    ..\..\boost\1.59.0\include/boost/regex/v4/perl_matcher.hpp:365: error: undefined reference to 'boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)'
    ..\..\boost\1.59.0\include/boost/regex/v4/regex_format.hpp:168: error: undefined reference to 'boost::cpp_regex_traits::toi(char const*&, char const*, int) const'
    collect2.exe: error: ld returned 1 exit status
    Makefile:75: recipe for target 'libqt_test.so' failed
    mingw32-make: *** [libqt_test.so] Error 1
    15:44:33: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился с кодом 2.
    Ошибка при сборке/установке проекта qt_test (комплект: Android для x86 (GCC 4.9, Qt 5.9.0) )
    Комплект Android для x86 (GCC 4.9, Qt 5.9.0) имеет недостатки в конфигурации, которые могут быть источниками данной проблемы.
    Во время выполнения этапа «Сборка»
    15:44:33: Прошло времени: 00:22.


    но когда меняю CONFIG += c++14 на CONFIG += c++11
    то выводятся такие ошибки
    cfae1fdb173942e8aa7fd270b89dd221.png
    консоль сборки

    16:34:49: Выполняются этапы для проекта qt_test...
    16:34:49: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» clean
    C:\Qtt\5.9\android_x86\bin\qmake.exe -o Makefile ..\src\qt_test.pro -spec android-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    del moc_predefs.h
    del moc_mainwindow.cpp
    del ui_mainwindow.h
    del main.obj mainwindow.obj graph.obj textrank.obj moc_mainwindow.obj
    del *~ core *.core
    ЌҐ г¤ Ґвбп ­ ©вЁ C:\qt_projects\-----X-----\IsTextRankKo-master\build-qt_test-Android_x86_GCC_4_9_Qt_5_9_0_029778-Debug\*~
    16:35:12: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился успешно.
    16:35:12: Настройки не изменились, этап qmake пропускается.
    16:35:12: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    C:\Qtt\5.9\android_x86\bin\uic.exe ..\src\mainwindow.ui -o ui_mainwindow.h
    ..\src\mainwindow.ui: Warning: Z-order assignment: 'groupBox_3' is not a valid widget.
    ..\src\mainwindow.ui: Warning: Z-order assignment: 'gridLayoutWidget' is not a valid widget.
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o main.obj ..\src\main.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o mainwindow.obj ..\src\mainwindow.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o graph.obj ..\src\graph.cpp
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -g -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\src -I. -I..\..\boost\1.59.0\include -I..\..\..\..\Qtt\5.9\android_x86\include -I..\..\..\..\Qtt\5.9\android_x86\include\QtWidgets -I..\..\..\..\Qtt\5.9\android_x86\include\QtGui -I..\..\..\..\Qtt\5.9\android_x86\include\QtCore -I. -I. -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\x86\include -I..\..\..\..\Android\Android\sdk\ndk-bundle\platforms\android-16\arch-x86\usr\include -I..\..\..\..\Qtt\5.9\android_x86\mkspecs\android-g++ -o textrank.obj ..\src\textrank.cpp
    ..\src\textrank.cpp: In function 'std::string TextRank::getKeyphrases(const string&, float, float)':
    ..\src\textrank.cpp:124:47: warning: use of 'auto' in lambda parameter declaration only available with -std=c++1y or -std=gnu++1y
    std::sort(scores.begin(), scores.end(), [](auto& left, auto& right){
    ^
    ..\src\textrank.cpp:124:58: warning: use of 'auto' in lambda parameter declaration only available with -std=c++1y or -std=gnu++1y
    std::sort(scores.begin(), scores.end(), [](auto& left, auto& right){
    ^
    In file included from ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/stl_algobase.h:71:0,
    from ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/vector:60,
    from ..\src\textrank.hpp:20,
    from ..\src\textrank.cpp:18:
    ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator*, std::vector > >; _Iterator2 = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = TextRank::getKeyphrases(const string&, float, float)::]':
    ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/stl_algo.h:1880:27: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]'
    ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/stl_algo.h:1918:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]'
    ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/stl_algo.h:2004:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]'
    ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/stl_algo.h:4751:96: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = TextRank::getKeyphrases(const string&, float, float)::]'
    ..\src\textrank.cpp:126:6: required from here
    ..\..\..\..\Android\Android\sdk\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/predefined_ops.h:121:46: error: invalid use of 'auto'
    { return bool(_M_comp(*__it1, *__it2)); }
    ^
    Makefile:3128: recipe for target 'textrank.obj' failed
    mingw32-make: *** [textrank.obj] Error 1
    16:35:32: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился с кодом 2.
    Ошибка при сборке/установке проекта qt_test (комплект: Android для x86 (GCC 4.9, Qt 5.9.0) )
    Комплект Android для x86 (GCC 4.9, Qt 5.9.0) имеет недостатки в конфигурации, которые могут быть источниками данной проблемы.
    Во время выполнения этапа «Сборка»
    16:35:32: Прошло времени: 00:43.
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: как узнать какая версия компилятора должна быть?
    тут помимо gnu-5 есть ещё такие
    be86b1a382044e12a1e0f29139575079.png
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41:
    вот

    14:10:04: Выполняются этапы для проекта qt_test...
    14:10:04: Настройки не изменились, этап qmake пропускается.
    14:10:04: Запускается: «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe»
    C:\Android\Android\sdk\ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++ --sysroot=C:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86/ -Wl,-soname,libqt_test.so -Wl,-rpath=C:/Qtt/5.9/android_x86/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libqt_test.so main.obj mainwindow.obj graph.obj textrank.obj moc_mainwindow.obj -LC:\Android\Android\sdk\ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -LC:\Android\Android\sdk\ndk-bundle/platforms/android-16/arch-x86//usr/lib -Lc:/android/android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x -LC:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5 -lboost_system -lboost_atomic -LC:/qt_projects/-----X-----/IsTextRankKo-master/src/../../boost/1.59.0/libs/x86/gnu-5/ -lboost_regex -LC:/Qtt/5.9/android_x86/lib -lQt5Widgets -Lc:\utils\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -Lc:\utils\android-ndk-r10e/platforms/android-16/arch-x86//usr/lib -Lc:/utils/android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows/bin/../lib/gcc/i686-linux-android/4.9 -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc

    ..\..\boost\1.59.0\include/boost/regex/v4/regex_search.hpp:56: error: undefined reference to 'boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, boost::regex_traits > >::find()'
    ..\..\boost\1.59.0\include/boost/regex/v4/perl_matcher.hpp:365: error: undefined reference to 'boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)'
    collect2.exe: error: ld returned 1 exit status
    Makefile:75: recipe for target 'libqt_test.so' failed
    mingw32-make: *** [libqt_test.so] Error 1
    14:10:27: Процесс «C:\Qtt\Tools\mingw530_32\bin\mingw32-make.exe» завершился с кодом 2.
    Ошибка при сборке/установке проекта qt_test (комплект: Android для x86 (GCC 4.9, Qt 5.9.0) )
    Во время выполнения этапа «Сборка»
    14:10:27: Прошло времени: 00:23.
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41: этот вариант тоже не помог
    Еще вариант, в QtCreator можно кликнуть на проекте (или подпроекте) правой кнопкой, выбрать "добавить библиотеку" -> внешняя -> динамическая, там указать путь.


    4f768aa064d24b25b335fed67a3be04e.png
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Ariox41:
    почему-то не видит оно эти файлы

    2906c46ac64141418e4cbe1ffe1b41c8.png

    хотя вроде как путь верный указываю

    8778e25083644b16ab97db8cd04e2684.png
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    о, круто, спасибо! это помогло избавиться от ошибки с доступом))
    не подскажете заодно как от остальных ошибок избавиться?..
    c31aaf1e83644ea385a1c4e0585bce8d.jpg
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    Яков Е: ну мне все равно хотелось бы подключить буст, он мне в других проектах тоже потребуется. можете подсказать как его подключить правильно?
  • Как подключить библиотеку boost для Android в Qt?

    asyaevloeva
    @asyaevloeva Автор вопроса
    я пытаюсь сделать приложение на андроид, мне там нужно для одной штуки обрабатывать текст (например находить ключевые слова в тексте), поэтому я поискала готовые решения и они почти все используют boost, я пытаюсь пока запустить этот проект, но он не запускается
  • Библиотеки C++ для обработки текста?

    asyaevloeva
    @asyaevloeva Автор вопроса
    sim3x: хах спасибо
  • Библиотеки C++ для обработки текста?

    asyaevloeva
    @asyaevloeva Автор вопроса
    sim3x: окай, если не найду ничего годного на c++, то попробую встроить r (только пока плохо представляю как это сделать)