Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.2k Topics 62.7k Posts
  • Qt Android OpenSSL issues

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    B
    Current test device is Android 9. LG V50 ThinQ
  • How to make touch screen work on cross-compiled EGLFS application (on RPi3)?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    A
    Hi @rrd0, How did you solve this problem? I am having exactly the same problem and none of the proposed solutions that I have found online are working for me
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • How to save files under Android/data?

    Unsolved
    4
    1 Votes
    4 Posts
    1k Views
    B
    With these piece of code I have checked all the available locations: qDebug() << "Config path set to:" << configPath; for (int i = 0; i <= static_cast<int>(QStandardPaths::AppConfigLocation); i++) { const QString tmp = QStandardPaths::writableLocation(static_cast<QStandardPaths::StandardLocation>(i)); qDebug() << "Path" << i << tmp; } Seems like Qt cannot save the file where I need to: Path 0 "/data/user/0/org.qtproject.example.mri/files" Path 1 "/storage/emulated/0/Documents" Path 2 "" Path 3 "" Path 4 "/storage/emulated/0/Music" Path 5 "/storage/emulated/0/Movies" Path 6 "/storage/emulated/0/Pictures" Path 7 "/data/user/0/org.qtproject.example.mri/cache" Path 8 "/data/user/0/org.qtproject.example.mri/files" Path 9 "/data/user/0/org.qtproject.example.mri/files" Path 10 "/data/user/0/org.qtproject.example.mri/cache" Path 11 "/storage/emulated/0" Path 12 "/data/user/0/org.qtproject.example.mri/cache" Path 13 "/data/user/0/org.qtproject.example.mri/files/settings" Path 14 "/storage/emulated/0/Download" Path 15 "/data/user/0/org.qtproject.example.mri/cache" Path 16 "/data/user/0/org.qtproject.example.mri/files/settings" Path 17 "/data/user/0/org.qtproject.example.mri/files" Path 18 "/data/user/0/org.qtproject.example.mri/files/settings" Any ideas?
  • Error on cross compiling for RaspberryPi

    Unsolved
    3
    0 Votes
    3 Posts
    464 Views
    M
    by "half an hour", I mean half an hour of compiling. It starts compiling qt. QtCore, QtNetwork etc. are built. Mmm, it looks too much somehow. Could you describe (processor, RAM, OS) your host PC? g++: error: /home/majid/raspi/qt5/lib/libQt5Core.so: No such file or directory In addition, could you please check entries before this one to see if you don't have any previous error, or inversely, to check that indeed such shared object file was created before reaching the point where it stops the compilation process. Yes. Shared objects are created, but not in above directory. they are created in qt source directory (e.g. QtCore is created in /home/majid/raspi/qt-everywhere-src-5.12.3/qtbase/lib/). I tested make install and I got some errors too. But some of the files get copied to qt5 and qt5pi directories as stated in configure options.
  • QT 5.12.4 armv7 application not working if arm64 libs are present

    Solved
    11
    0 Votes
    11 Posts
    5k Views
    T
    @climax You do not need separate ANDROID_PACKAGE_SOURCE_DIRs for each architecture unless you are doing something custom on the java side. The error here was in using abiFilters in the gradle file. Remove that and it works fine. You can verify by picking any android example in Qt Creator and building for both architectures.
  • QT5 : no member named 'setCodecForTr' in QTextCodec

    Solved
    2
    0 Votes
    2 Posts
    4k Views
    SGaistS
    Hi, Indeed it's explained here. As for your issue, the best thing to do is to save your sources directly in UTF-8. You can see why here.
  • gradle errors :not found property

    Unsolved
    2
    0 Votes
    2 Posts
    678 Views
    A
    @ali1377 when I delete plugin line it makes error to android line : What went wrong: A problem occurred evaluating root project 'android-build'. Could not find method android() for arguments [build_5kt6vfvn89yoapx6fdkq5cp9n$_run_closure2@42ef042a] on root project 'android-build' of type org.gradle.api.Project. why? I read some solution that say aboout top level gradle and module gradle (in android studio) but in qt do we have these file ? I have just build.gradle and gradle-wrapper . are they like perevios pair(top level gradle and module gradle) ?
  • 0 Votes
    5 Posts
    1k Views
    J.HilkJ
    @iman4k I don't know, I'm not a cross compile expert by any means. I'm just telling you want I can see from the configure you posted. Anyway, should be easy enough to add according to this https://doc.qt.io/qt-5/qtvirtualkeyboard-build.html you can simply open the qtvirtualkeyboard source project with QtCreator and compile it, using your cross compile kit
  • Build crashed on Qt 5.13 Android arm64-v8a only. Why?

    Solved
    4
    0 Votes
    4 Posts
    669 Views
    B
    This trouble appearing sometimes for android-21 SDK building. [image: b6ccc8f7-8851-42c6-add9-d358fb6a0372.png] When I restart Qt Creator and start building on android-29 and after it rebuild on android-21 - everything is OK. And there are always the same error in processing AndroidManifest.xml. Sometimes it makes me crazy ... and looking like bug in Qt Creator and it's appearing only on Qt 5.13. Awaiting 5.13.1 ... The short sequence of solving looks like: Clear All Run qmake Switch on Android-29 and only build (the hummer icon) Switch on Android-21 and only build (the hummer icon) Run and deploy it on device (green triangle icon) [Updated] The same trouble appeared on Qt 5.12.4 if you setting up project from scratch and defining Android 21 API from begin. If you build at first on Android 29, and then rebuild it over on Android 21 - everything OK.
  • How to open an Android app in a QML app?

    Solved
    3
    0 Votes
    3 Posts
    792 Views
    a.burksA
    @j-hilk Thanks. I know the Qt Android Extras. Unfortunately I don't know how to make the C++ class available. I used the quoted approach of the example project, but this causes a conflict with the root QML type ApplicationWindow in my main.qml file. Edit: I have now implemented a different approach than the official example of Qt Android Extras: The default integration approach, that is described herer: https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html. This seem to work, but I have to make further tests. 2nd Edit: Now it works
  • How to access Android services in a Qt and QML app?

    Unsolved
    4
    0 Votes
    4 Posts
    511 Views
    a.burksA
    @lelev Thanks again for the hint. Unfortunately Felgo is very limited and doesn't offer an API to access the calendar or messages content provider. Do I have to implement a JNI solution? Or are there any other options, e. g. available libraries with QML pluginsP
  • Perform SSH connection to server in iOS and Android. How?

    Solved
    3
    0 Votes
    3 Posts
    455 Views
    B
    Solution found - libssh.org. Need to build it for iOS and Android and wrap it out into Qt class for any purpose.
  • Server ping in iOS and Android. How?

    Unsolved
    2
    0 Votes
    2 Posts
    290 Views
    SGaistS
    Hi, You use QTcpSocket to connect to your server.
  • iOS & TestFlight & bitcode

    Unsolved
    3
    0 Votes
    3 Posts
    512 Views
    M
    @danilabagroff Probably you're opening an xcodproj file that is generated for a Debug build. It works fine when selecting a Release build (in QtCreator)
  • Platform SDK not installed when trying to set up Qt for Android

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    P
    Thanks. This worked for me. Install Java 8 and select the location for Java (tools->options->devices) Ex. /usr/lib/jvm/java-8-openjdk-amd64. restart QC and check tools->options->devices Note: Keep the latest version of java as the default JDK
  • linker command failed, error: cannot find -lc++

    Solved
    3
    0 Votes
    3 Posts
    561 Views
    K
    Hello, hello Quang Phu, as mentioned by trousev in the post of Quang Phu's provided link, this made it work: "You also can write this into your own qmake file, not into system one. To be precise, just add into your project's .pro the following: QMAKE_LINK += -nostdlib++" Thanks everybody.
  • Embedded System Development

    Unsolved
    4
    0 Votes
    4 Posts
    483 Views
    ODБOïO
    @geschema said in Embedded System Development: WebGL for the moment it is limited to 1 only client
  • QML Camera method stop() error 127 pages are still in use! Driver ISL79987

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    V
    is it after you call stop()? Can the camera be usable after the error?
  • Raspberry Pi Transparent QWidget Problem

    Unsolved
    2
    0 Votes
    2 Posts
    640 Views
    V
    Not sure, but maybe need to set alpha buffer size? QSurfaceFormat format; format.setAlphaBufferSize(8); window.setFormat(format);