Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › Felgo CI/CD: qml plugin deployment for Android and iOS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24248

    Volker

    Hi,

    our project uses our internal qml plugin. If we put plugin binary nad qmldir file manually inside Felgo/Felgo/android/qml/Medrepo and build APK in QtCreator all works as expected and qml library together with Felgo project binary (as .so)  are inside /lib/x86. qmldir is inside /assets/–Added-by-androiddeployqt–/qml/…

    Now we trying to build Android and iOS packages using Felgo CI/CD server. We have qml plugin binary inside git repositotry, but how to copy it inside Felgo installation? I tried to put it this way:

    android {
        ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
        OTHER_FILES += android/AndroidManifest.xml \
                       android/build.gradle
        equals(ANDROID_TARGET_ARCH, arm64-v8a) {
            ANDROID_EXTRA_LIBS += \
                $$PWD/../../../deploy_android/arm64/libwebsockets.so \
                $$PWD/../../../deploy_android/arm64/libjasca.so \
                $$PWD/../../../deploy_android/arm64/libjasca_qml_plugin.so             
        }
    }

    where libjasca_qml_plugin.so is the required QML plugin. It gets deployed inside /lib/arm64-v8a, but app still crashes and I think it’s missing qmldir file. I cannot put it in ANDROID_EXTRA_LIBS.

    Since on Felgo CI/CD server I cannot manually copy files, the only possibility is to do all deployment with qmake (inside .pro file).

    What is the proper way to deploy QML plugin on Android and iOS?

    #24249

    Volker

    For Android it seems to work using ANDROID_EXTRA_PLUGINS. If put qml plugin together with qmldir inside eploy_android/arm64/Medrepo, then

    android {
        ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
        OTHER_FILES += android/AndroidManifest.xml \
                       android/build.gradle
        equals(ANDROID_TARGET_ARCH, arm64-v8a) {
            ANDROID_EXTRA_LIBS += \
                $$PWD/../../../deploy_android/arm64/libwebsockets.so \
                $$PWD/../../../deploy_android/arm64/libjasca.so
            ANDROID_EXTRA_PLUGINS += $$PWD/../../../deploy_android/arm64/Medrepo
        }

    After that I have qml plugin inside /lib/arm64-v8a and qmldir inside /assets/Medrepo/

    What should I do for iOS image?

    #24259

    Alex
    Felgo Team

    Hi Volker,

    sorry for the delay, I had a bit of back and forth with the development team about this. I followed up to you via mail on this.

    Best,
    Alex

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded