Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.2k Topics 62.8k Posts
  • Android Qt 5.15 Camera: QCameraImageCapture error: "Camera not ready"

    Unsolved
    5
    0 Votes
    5 Posts
    334 Views
    NihilishN
    @mvuori said in Android Qt 5.15 Camera: QCameraImageCapture error: "Camera not ready": @Nihilish I don't know what is missing, but QCamera does work in Android Here's an attempt I made using QCamera by creating a CameraManager class that implements QAbstractVideoSurface. I would expect present and start to be called but they aren't. #include "CameraManager.h" #include <QQuickWindow> #include <QWindow> #include <QCameraViewfinder> #include <QCameraInfo> CameraManager::CameraManager(QObject *parent) : QAbstractVideoSurface{parent}, mCamera(nullptr) { QList<QCameraInfo> cameras = QCameraInfo::availableCameras(QCamera::Position::FrontFace); if (!cameras.isEmpty()) { qDebug() << "HACK - CREATE CAMERA!!!"; mCamera = new QCamera(cameras.first(), this); mCamera->setViewfinder(this); mCamera->setCaptureMode(QCamera::CaptureVideo); mCamera->start(); qDebug() << "HACK - CAMERA STATE: " << mCamera->state(); qDebug() << "HACK - CAMERA SUPPORTED FORMATS: " << mCamera->supportedViewfinderPixelFormats(); } } bool CameraManager::start(const QVideoSurfaceFormat &format) { qDebug() << "HACK - START!!!"; if (!supportedPixelFormats(QAbstractVideoBuffer::NoHandle).contains(format.pixelFormat())) { return false; } return QAbstractVideoSurface::start(format); } bool CameraManager::present(const QVideoFrame &frame) { qDebug() << "HACK - PRESENT FRAME"; if (!frame.isValid()) return false; emit frameAvailable(frame); return true; }
  • how to fix this bug, although I install all nessesary package

    Solved
    8
    0 Votes
    8 Posts
    480 Views
    JKSHJ
    @TN_robot said in how to fix this bug, although I install all nessesary package: my project build with jdk11 As @Axel-Spoerl said earlier, you need JDK 17
  • how to hix essential packages install

    Locked Unsolved
    2
    0 Votes
    2 Posts
    122 Views
    Axel SpoerlA
    Dupliceate: Answer given in this post.
  • Android 16kb page size and plugins

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    L
    OpenSSL is build with proper alignment already in https://github.com/KDAB/android_openssl/ so you can use it as usual without issues.
  • Xcode26 any experiences / problems ?

    Unsolved ios xcode
    7
    1 Votes
    7 Posts
    763 Views
    J
    Has anyone tried building Qt from source with Xcode 26? We build Qt including QtWebEngine from source, and we're always very careful about updating Xcode because we've had so many issues in the past. Currently we're using Qt 6.8.3 and Xcode 16.2. I believe Qt 6.8.4 is supposed to be compatible with Xcode 26, but it's not clear to me whether it's possible to build Qt from source with Xcode 26 (particularly with webengine, which tends to be brittle).
  • i.MX8M CMA memory leak with Qt5/QML

    Unsolved multimedia qtmultimedia mediaplayer imx8 gstreamer1.0
    2
    0 Votes
    2 Posts
    139 Views
    K
    Kernel error during changing play video: Oct 20 07:33:58 PXDEVICE kernel: ------------[ cut here ]------------ Oct 20 07:33:58 PXDEVICE kernel: 3038 pages are still in use! Oct 20 07:33:58 PXDEVICE kernel: WARNING: CPU: 2 PID: 559 at mm/page_alloc.c:9275 free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: Modules linked in: snd_soc_imx_spdif snd_soc_imx_hdmi snd_soc_wm8904 fsl_jr_uio caam_jr caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine rng_core authenc libdes imx8mq_interconnect imx_interconnect crct10dif_ce imx8m_ddrc governor_userspace imx_bus rtc_ds1307 snd_soc_fsl_spdif secvio caam error snd_soc_fsl_sai imx_sdma nfsd galcore(O) fuse Oct 20 07:33:58 PXDEVICE kernel: CPU: 2 PID: 559 Comm: QSGRenderThread Tainted: G W O 5.15.60-imx8mq+geeb831e225df #1 Oct 20 07:33:58 PXDEVICE kernel: Hardware name: Variscite DART-MX8M on DT8MCustomBoard 2.x and above SD+HDMI (DT) Oct 20 07:33:58 PXDEVICE kernel: pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) Oct 20 07:33:58 PXDEVICE kernel: pc : free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: lr : free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: sp : ffff80001bae3ae0 Oct 20 07:33:58 PXDEVICE kernel: x29: ffff80001bae3ae0 x28: ffff0000c1bac740 x27: 0000000000000000 Oct 20 07:33:58 PXDEVICE kernel: x26: 0000000000000000 x25: ffff0000c2e8cc00 x24: 0000000000000000 Oct 20 07:33:58 PXDEVICE kernel: x23: ffff80000980e248 x22: fffffc0000000000 x21: 00000000000d72d8 Oct 20 07:33:58 PXDEVICE kernel: x20: 0000000000000bde x19: 00000000000d72d8 x18: ffffffffffffffff Oct 20 07:33:58 PXDEVICE kernel: x17: 0000000000000000 x16: 0000000000000000 x15: ffff800009efe96e Oct 20 07:33:58 PXDEVICE kernel: x14: ffffffffffffffff x13: ffff800009d82810 x12: 000000000000067b Oct 20 07:33:58 PXDEVICE kernel: x11: 0000000000000229 x10: ffff800009d82810 x9 : ffff800009d82810 Oct 20 07:33:58 PXDEVICE kernel: x8 : 00000000ffffefff x7 : ffff800009dda810 x6 : ffff800009dda810 Oct 20 07:33:58 PXDEVICE kernel: x5 : ffff0000ff7839d0 x4 : 0000000000000000 x3 : 0000000000000027 Oct 20 07:33:58 PXDEVICE kernel: x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000c1bac740 Oct 20 07:33:58 PXDEVICE kernel: Call trace: Oct 20 07:33:58 PXDEVICE kernel: free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: cma_release+0x78/0xbc Oct 20 07:33:58 PXDEVICE kernel: dma_free_contiguous+0xa8/0xbc Oct 20 07:33:58 PXDEVICE kernel: dma_direct_free+0xbc/0x110 Oct 20 07:33:58 PXDEVICE kernel: dma_free_attrs+0x9c/0xe0 Oct 20 07:33:58 PXDEVICE kernel: vb2_dc_put+0x88/0xc0 Oct 20 07:33:58 PXDEVICE kernel: vb2_dc_dmabuf_ops_release+0x14/0x50 Oct 20 07:33:58 PXDEVICE kernel: dma_buf_release+0x40/0xa0 Oct 20 07:33:58 PXDEVICE kernel: __dentry_kill+0x13c/0x1d0 Oct 20 07:33:58 PXDEVICE kernel: dput+0x1c4/0x300 Oct 20 07:33:58 PXDEVICE kernel: __fput+0xb0/0x234 Oct 20 07:33:58 PXDEVICE kernel: ____fput+0x10/0x20 Oct 20 07:33:58 PXDEVICE kernel: task_work_run+0x80/0x180 Oct 20 07:33:58 PXDEVICE kernel: do_notify_resume+0x208/0x12ec Oct 20 07:33:58 PXDEVICE kernel: el0_svc+0x6c/0x80 Oct 20 07:33:58 PXDEVICE kernel: el0t_64_sync_handler+0xa4/0x130 Oct 20 07:33:58 PXDEVICE kernel: el0t_64_sync+0x1a0/0x1a4 Oct 20 07:33:58 PXDEVICE kernel: ---[ end trace 65d78baf2fb2bd43 ]--- Oct 20 07:33:58 PXDEVICE kernel: ------------[ cut here ]------------ Oct 20 07:33:58 PXDEVICE kernel: 3038 pages are still in use! Oct 20 07:33:58 PXDEVICE kernel: WARNING: CPU: 2 PID: 559 at mm/page_alloc.c:9275 free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: Modules linked in: snd_soc_imx_spdif snd_soc_imx_hdmi snd_soc_wm8904 fsl_jr_uio caam_jr caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine rng_core authenc libdes imx8mq_interconnect imx_interconnect crct10dif_ce imx8m_ddrc governor_userspace imx_bus rtc_ds1307 snd_soc_fsl_spdif secvio caam error snd_soc_fsl_sai imx_sdma nfsd galcore(O) fuse Oct 20 07:33:58 PXDEVICE kernel: CPU: 2 PID: 559 Comm: QSGRenderThread Tainted: G W O 5.15.60-imx8mq+geeb831e225df #1 ... Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_ARMV8 build on Sep 20 2017 15:02:50. Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ====== AIUR: 4.7.0 build on May 20 2022 06:51:21. ====== Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Core: MPEG4PARSER_06.20.06 build on May 7 2022 07:52:31 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Track 00 [video_0] Enabled Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Duration: 0:02:07.127000000 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Language: und Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Mime: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: video/x-h265, parsed=(boolean)true, alignment=(string)au, stream-format=(string)hev1, width=(int)3840, height=(int)2160, framerate=(fraction)60000/1001, codec_data=(buffer)01222000000090000000000099f000fcfdfafa00000703a00001002040010c01ffff222000000300900000030000030099350300001f4800075300e8a10001029e420101222000000300900000030000030099a001e020021c4d8d35924f841470f1c0903b0e18361a0842f081210088401006e1a306c341085ca0a021044170b02a0ac28035407080e007d02b4180a8200b858150561401aa038407003e8158a10d35e9e860d7430341b1b8c0d0703a1b1b181a0e432130c8602418101f1f1c1e307426120e0c04304038108200940ff0869af21720482659024120984f09048381d0984e1209072190985c2c120c080f8f8e0f183a130907060218201c0841004a07f286894d082c838e52181702f2c80b80dc06b05f82e03503a06606b06306006a0640e00b20730660c80e405803900ab07707402a81c7ffc12434498e6182620c7290c0b81796405c06e03582fc1701a81d03303583183003503207005903983306407202c01c805583b83a01540e3ffe090a10e9af4f4306ba181a0d8dc6068381d0d8d8c0d072190986430120c080f8f8e0f183a130907060218201c0841004a07f843a6bc85c81209964090482613c24120e0742613848241c86426170b04830203e3e383c60e84c241c1808608070210401281fca1a929a1059071ca4302e05e5901701b80d60bf05c06a0740cc0d60c60c00d40c81c01640e60cc1901c80b007201560ee0e8055038fff82486a498e6182620c7290c0b81796405c06e03582fc1701a81d03303583183003503207005903983306407202c01c805583b83a01540e3ffe090a10e9af4f4306ba181a0d8dc6068381d0d8d8c0d072190986430120c080f8f8e0f183a130907060218201c0841004a07f86a498e6182620c7290c0b81796405c06e03582fc1701a81d03303583183003503207005903983306407202c01c805583b83a01540e3ffe091115c96a5de02d4244026d9400007d20001d4c03e46818dc0002625a0001312d00004c4b40002625a8b840208a2000100084401c172438d6224 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Track 01 [audio_0] Enabled Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Duration: 0:02:07.168000000 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Language: eng Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Mime: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)192000, stream-format=(string)raw, codec_data=(buffer)1190 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ====== BEEP: 4.7.0 build on May 20 2022 06:51:21. ====== Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Core: AAC decoder Wrapper build on Jul 28 2020 10:45:34 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm_elinux.so.3 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_ARMV8 build on Sep 20 2017 15:02:50. Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ====== V4L2DEC: 1.20.0 build on Apr 24 2022 09:19:42. ======
  • Is it possible to run a gRPC server on Android?

    Unsolved
    2
    0 Votes
    2 Posts
    150 Views
    SGaistS
    Hi and welcome to devnet, I don't have a direct answer to that question but a suggestion: several of Qt Grpc examples avec client and server components. You can test them.
  • import QtQml.StateMachine not working

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    M
    I had the same issue. Adding the following cache variable or setting it in command line with -DQT_DEBUG_FIND_PACKAGE=ON, hinted the issue for me: "QT_DEBUG_FIND_PACKAGE": "TRUE", StateMachine depends on GUI and it depends on WrapOpenGL and that depends on glx library: ... [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find WrapOpenGL (missing: WrapOpenGL_FOUND) [cmake] CMake Warning at /home/mohammad/vcpkg/scripts/buildsystems/vcpkg.cmake:904 (_find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/mohammad/Qt/6.10.0/gcc_arm64/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake [cmake] [cmake] but it set Qt6Gui_FOUND to FALSE so package "Qt6Gui" is considered to be [cmake] NOT FOUND. Reason given by package: [cmake] [cmake] Qt6Gui could not be found because dependency WrapOpenGL could not be found. ... [cmake] Found package configuration file: [cmake] [cmake] /home/mohammad/Qt/6.10.0/gcc_arm64/lib/cmake/Qt6StateMachine/Qt6StateMachineConfig.cmake [cmake] [cmake] but it set Qt6StateMachine_FOUND to FALSE so package "Qt6StateMachine" is [cmake] considered to be NOT FOUND. Reason given by package: [cmake] [cmake] Qt6StateMachine could not be found because dependency Qt6Gui could not be [cmake] found. Installing one package fixed my issue: sudo apt-get install libgl1-mesa-dev
  • ScreenSaver Qt 5.15 using linuxfb plugin

    Unsolved
    6
    0 Votes
    6 Posts
    308 Views
    W
    Thsi is the result of my test... Kernel 5.10 and Qt 4.8.7 --> sys/class/graphics/fb0/blank works properly!!!!! Kernel 5.10 and Qt 5.15.14 --> sys/class/graphics/fb0/blank FAIL!!!! And more curious with the second case. if I before turn off the screen from terminal and then execute tje Qt app, Qt return a segmentation fault due linuxfb plugin !!!!! What??? in short, QT 5.15 take the control in exclusive mode totally.
  • Boot to QT on STM32MP157x-DK2

    Unsolved
    2
    0 Votes
    2 Posts
    132 Views
    jsulmJ
    @RameshSg said in Boot to QT on STM32MP157x-DK2: i am not getting the options to select Embedded Linux Don't you have to load a QBSP file file first as described there? To my knowledge Boot2Qt is a commercial offer, you should ask QtCompany directly for support.
  • Android API - 35 issues in Qt 5.15.2

    Unsolved
    15
    0 Votes
    15 Posts
    2k Views
    JoeCFDJ
    https://developer.android.com/build/jdks //scroll down. I think you need 34 and Java 17 https://docs.gradle.org/current/userguide/compatibility.html
  • [Interest] How to add *.appex (Extension App) to QT-ios Project.

    Unsolved
    4
    0 Votes
    4 Posts
    652 Views
    O
    Is there a way to remove these flags by cmake without needing to interact with xcode?
  • Qt IOS Application Extension - Packet Tunnel for Custom VPN Functionality

    Unsolved
    3
    0 Votes
    3 Posts
    241 Views
    O
    Thank you, let me try, but I did all of them already :D Does QT have an exampe of app extension?
  • 0 Votes
    2 Posts
    91 Views
    No one has replied
  • Text not visible in some QML components in the Android emulator

    Unsolved
    7
    0 Votes
    7 Posts
    922 Views
    GrecKoG
    It looks like something that should be reported on https://bugreports.qt.io . Maybe related to the internal clipping TextField does if the issue isn't reproduced by TextInput.
  • QML problem on Android

    Unsolved
    1
    0 Votes
    1 Posts
    87 Views
    No one has replied
  • QtCreator can't find compiler for android

    Unsolved
    3
    0 Votes
    3 Posts
    171 Views
    msauer751M
    It is possible that this problem was caused by a wrong NDK version? After I reinstalled the NDK with Anroid Studio, the problems are solved.
  • Qtwebengine 6.3 fails with lima driver

    Solved
    2
    0 Votes
    2 Posts
    311 Views
    S
    In my case, for a stable WebEngine application using the Lima driver, Linux kernel version 6.1 or later and Mesa version 23.3.4 or later are required. After upgrading the Linux kernel from 5.4.47 to 6.1, the issue was resolved.
  • Wrong qmake ABI in qt6 for buildroot

    Unsolved
    2
    0 Votes
    2 Posts
    167 Views
    D
    I have the same problem. Buildroot 2025.08.1 and Qt 6.8.2. Did you manage to find a solution?
  • Using Java from static library with Qt 6 CMake project. How?

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