Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.6k Posts
  • Error in "install_target" when cross compiling Qt 5.15.14 for Android on Windows 11

    Unsolved
    1
    0 Votes
    1 Posts
    152 Views
    No one has replied
  • FireBase and Qt6

    Unsolved
    27
    0 Votes
    27 Posts
    3k Views
    J
    After doing some research, I was able to integrate QtFirebase into my Qt Android application, but I am encountering the RunTime issue below. I have tried various solutions, but the issue still persists. I am encountering a runtime issue with my Android project using Qt and Firebase. Upon attempting to launch the app, it crashes with the following error: `W Zygote : Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found. E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.croyance.messenger/com.croyance.messenger.Main}: java.lang.ClassNotFoundException: Didn't find class "com.croyance.messenger.Main" on path: DexPathList... The full logs can be found below. It seems that both the libbeluga.so native library and the Main activity are missing from the APK, which causes the application to fail at runtime. Additionally, there are several warnings related to Firebase initialization and some ANR (Application Not Responding) logs, which may be relevant. `W Zygote : Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found. I libc : SetHeapTaggingLevel: tag level set to 0 I yance.messenge: Late-enabling -Xcheck:jni I yance.messenge: Unquickening 21 vdex files! E yance.messenge: Unknown bits set in runtime_flags: 0x40000000 E RefClass: java.lang.reflect.InvocationTargetException I OneTrace: Mark active for pid=25278? true E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.croyance.messenger.Main" on path: DexPathList[[zip file "/data/app/~~AaqN-4a0auFr8HV_MJwQ3g==/com.croyance.messenger-itiNKy_Da7NGfGLvDCWqRw==/base.apk"],nativeLibraryDirectories=[/data/app/~~AaqN-4a0auFr8HV_MJwQ3g==/com.croyance.messenger-itiNKy_Da7NGfGLvDCWqRw==/lib/arm64... I have correctly configured the AndroidManifest.xml file with the following activity declaration for Main: <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:name=".Main" android:label="FireBaseQTVersion1" android:screenOrientation="unspecified" android:launchMode="singleTop"> </activity> I have followed the setup guidelines for Android in the QtFirebase documentation, specifically as outlined in the Setup. Environment: Qt Version: 5.15.2 Firebase C++ SDK Version: 6.7.0 Android NDK Version: 21.3.6528147 Gradle Version: 5.6.4 Operating System: Linux
  • Boot2qt - how to exclude Qt packages / features

    Unsolved
    3
    0 Votes
    3 Posts
    297 Views
    J
    firstly thanks Axel for noticing. I'm very new to boot2qt & yocto and laying at beginning of the learning curve. I've followed not so complete documentation of Boot2Qt and created my own layer trying to set my own build. The truth is I don't know which variables nor arguments to use. I'm familiar with Windows desktop builds and so far i've tried the same approach passing a "-skip qtdecalarative" to EXTRA_QMAKEVARS_PRE variable, which is incorrect. Any help welcome and highly appreciated.
  • Exception while running QtQuick Controls Gallery example for android development

    Unsolved
    2
    0 Votes
    2 Posts
    161 Views
    Axel SpoerlA
    Which Android SDK/NDK Version is installed on the desktop?
  • Qt Quick for Android, font customisation

    Unsolved
    2
    0 Votes
    2 Posts
    193 Views
    B
    embedded this code into main.cpp to see, would it change behavior or not int fontId = QFontDatabase::addApplicationFont("qrc:/assets/fonts/Expansiva.otf"); QStringList availableFonts = QFontDatabase::families(); if (fontId == -1) { qDebug() << "Error: Failed to load custom font from resource."; } else { QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId); if (fontFamilies.isEmpty()) { qDebug() << "Error: No font families loaded."; } else { qDebug() << "Font family loaded successfully: " << fontFamilies.first(); // Step 2: Set the font style (font family, size, and optional weight or style) QFont customFont; customFont.setFamily(fontFamilies.first()); // Use the loaded font's family name customFont.setPointSize(12); // Set desired font size customFont.setBold(true); // Make the font bold (optional) customFont.setItalic(false); // Set italic (optional) // Step 3: Apply the custom font globally app.setFont(customFont); } } this address does not provide access to font file: "qrc:/assets/fonts/Expansiva.otf" this, yes: ``` "calc_salary/fonts/Expansiva.otf" resource.qrc looks like <RCC> <qresource prefix="/assets"> <file>fonts/Expansiva.otf</file> <file>fonts/ExpansivaBold.otf</file> <file>fonts/ExpansivaBoldItalic.otf</file> <file>fonts/ExpansivaItalic.otf</file> <file>fonts/ArtsyNight.otf</file> <file>fonts/ROSEMERO.ttf</file> </qresource> </RCC> is it right or not, smart people has to estimate it
  • Cross Compilation

    Unsolved
    2
    0 Votes
    2 Posts
    274 Views
    jsulmJ
    @rohan136 Start here: https://doc.qt.io/qt-6/android.html
  • How to Send Rotary Encoder Signals Only to Visible QML Components?

    Unsolved
    4
    0 Votes
    4 Posts
    401 Views
    GrecKoG
    @Yaldiz said in How to Send Rotary Encoder Signals Only to Visible QML Components?: The problem is that components inside a StackView do not have their visible property set to false even when they are not displayed on the screen. They do.
  • 0 Votes
    2 Posts
    145 Views
    Z
    @zhulinhai Can't the Bluetooth module of Qt6.5.3 search for Bluetooth 5.0 protocol? I saw that you can search for native Android
  • regarding the Bluetooth permission issue in iOS 18

    Unsolved
    1
    0 Votes
    1 Posts
    316 Views
    No one has replied
  • Cross-compile Qt5 for aarch64 CMakelists.txt

    Unsolved
    1
    0 Votes
    1 Posts
    189 Views
    No one has replied
  • Android: Build failed with exception. Could not determine Java version from '11.0.10'

    Unsolved
    15
    0 Votes
    15 Posts
    5k Views
    L
    @morte This solution helped me. I downgraded to 8 and everything compiled.
  • Linux boot to Application and Touchscreen Issue

    Unsolved
    1
    0 Votes
    1 Posts
    127 Views
    No one has replied
  • Qt6 private headers not found

    Unsolved
    1
    0 Votes
    1 Posts
    312 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    27 Views
    No one has replied
  • QT6.6.1 Opengl Cross-Compilation

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    jsulmJ
    @Massinissa_idiri said in QT6.6.1 Opengl Cross-Compilation: wrong architecture detected Then you're mixing binaries for different architectures. You will have to provide more information: Post the actual error message Explain how you're creating the sysroot Show how you build
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Version Compatibility

    Solved
    6
    0 Votes
    6 Posts
    875 Views
    alexander.sageA
    app is now compiled in debug mode and deployed to tablet. compiling in release mode isn't working.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    28 Views
    No one has replied
  • Transparent top statusbar on IOS

    Unsolved
    1
    0 Votes
    1 Posts
    159 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    23 Views
    No one has replied