Skip to content

QtonPi

QtonPi
405 Topics 2.3k Posts
QtWS25 Last Chance
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    18 Views
    No one has replied
  • Boot to Qt for dual monitors on RPi4

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    C
    @lrtjosh I hit the same issue a few days ago with my new RPi4 but found a solution :) The initial symptom also was the rainbow boot splash on the second monitor. My setup: RPi4 with two HDMI monitors connector Yocto: Dunfell meta-qt: 5.15.2 The magic lines to activate the second monitor are the following ones in /boot/config.txt: dtoverlay=vc4-fkms-v3d max_framebuffers=2 Using these, directly after boot I see a tty also on the second screen. On this, I could simply run a multi-head QtWayland compositor via the eglfs QPA and render clients via wayland-egl (note that you have to activate the linux-dmabuf-v1 protocol). However, it should also work to just start Weston; but I did not test this.
  • Qt5.15 compilation for Raspberry Pi 4

    Solved
    13
    0 Votes
    13 Posts
    3k Views
    T
    Ok guys, thank you for your help, it works. I've downloaded Qt via github from https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code and it is ok.
  • Cross compile on rpi 4

    Unsolved
    4
    0 Votes
    4 Posts
    732 Views
    raven-worxR
    @bhanupro mostly its about installing missing packages, bro
  • QtRpi - Fatal error: features.h

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    A
    I use qmake to check sysroot, looks like right > qmake -query "QT_SYSROOT" > /home/xxxx/crossbuild Have you fixed this?
  • QSerialPort::bytesAvailable() always return 0

    Unsolved
    3
    0 Votes
    3 Posts
    852 Views
    Kent-DorfmanK
    See this bug report https://bugreports.qt.io/browse/QTBUG-78086
  • Qt application does not run on Display with DPI

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    JKSHJ
    @J-Hilk said in Qt application does not run on Display with DPI: By forcing Qt to use the native graphic apis instead of OpenGL, my QML application is now rendered correctly on all monitors set the environment variable QSG_RHI=1 and you should be fine Special thanks to @JKSH for pointing me in the right direction! You're welcome! Notes from https://www.qt.io/blog/qt-quick-on-vulkan-metal-direct3d : QSG_RHI=1 only works in Qt 5.14 and above. QSG_RHI=1 switches the Qt Quick scene graph to Direct3D 11 on Windows and Metal on macOS. However OpenGL is still used by default on other targets. I notice that @Krulle is using Qt 5.13 on Ubuntu and Raspbian. So to try the same fix as @J-Hilk, I think we also need to upgrade Qt, install Vulkan drivers, and set QSG_RHI_BACKEND=vulkan (Disclaimer: I haven't tried this myself)
  • Cross compiling for Raspberry Pi - Which module for Qt Quick

    Solved
    3
    0 Votes
    3 Posts
    623 Views
    A
    @sierdzio thanks for getting me on the right track. I had already tried qtdeclarative but for some reason for 5.13.1 it seems to be empty (no src, etc) so I thought I was barking up the wrong tree. I dropped back to 5.12.10 and all is working fine now (so far at least)! Thanks again
  • Fingerprint scanner for qt

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    mrdebugM
    It is a very general question. Some finger readers can store in them memory thousand of fingers. When someone put the finger on it they send the code related to the finger. Some others send the bmp image related to the finger. In this scenario you have to use a library that recognize the finger. Depends about the device that you have shoosed.
  • Pi 4 - QT 5 with Open CV 4.1 App - No GUI Display - Problem with GTK

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    S
    @Mighty-M Unfortunately your solution did not work for me. Instead, I'have found another solution on the internet. Maybe it will help some other poor soul like me :) edit qt5ct.conf file sudo nano /etc/xdg/qt5ct/qt5ct.conf replace style=gtk2 with style=gtk3 ctrl+x y ENTER
  • boot2qt for raspi 3

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    Pablo J. RoginaP
    @Kachoraza said in boot2qt for raspi 3: I now guess that I can use boot2qt ... ... under commercial license, which I cannot afford Please be aware that from Boot to Qt page, it seems to require a commercial license as well, see license information. So I gues that if going for free options, I'd say to use open source Qt for the RPi device, and some other graphic library (as the ones already suggested) for the MCUs
  • Investigating startup delay in Qt app

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    vikramgV
    @SGaist that’s a great blog post, thanks! @JonB: thank you for your suggestions. There’s not very much different from a Qt-app point of view about Linux running on an embedded device vs on the Desktop so your experience is certainly relevant. You are correct, the environment is much more deterministic: startup is via sysvinit rather than full-fledged systemd, and the user space is stripped-down and does not use X (the Qt app runs fullscreen at boot using the EGLFS platform plugin). There are very few processes running on the system; idle mem usage (without my app running) is under 20 MB. This is why the inordinate startup delay was rather unexpected. To answer your questions: has whatever "UI initialization" been done? There are no “UI-things” that need to be performed. System boots, kernel starts the init process (PID 1) that executes startup shell scripts in /etc/init.d which start logging daemons, network, sshd. The last thing to get started is my Qt app. If the app were left out, the system would just boot and do nothing, with only the framebuffer boot logo displayed on the screen. Can you write a non-UI Qt app and compare that for its first/second time run timings? What happens if you do the first/second runs of your app not at boot-time? I did indeed write a Hello World Qt console app to test. It did reveal an interesting (but definitely-not-pertinent-to-Qt) detail that I left out in my initial message: there is an unknown interaction with app startup and the kernel random number generator device. The HelloW app runs in basically no time at all normally. But when launched via an init script, it takes 5 seconds to run! Turns out that is when the random number init is not yet complete. Once that is complete (the random-device driver prints “crng init done” in dmesg), all times are repeatable. It is these times that I have reported in my original message -- not exactly at boot, but after the rng init is complete (so that the as-yet undetermined effect of the rng is taken out of reckoning). In this case I launch the app from the console, not from the init script. Does your Pi-Linux have strace? Hope so! Use that This is useful, thanks. The link that @SGaist provided uses LTTng which appears to be strace-on-steroids. Unfortunately it doesn’t seem like it will be a quick resolution, so I will update this thread once I get to the bottom of it. Thank you both for your time!
  • qt application for windows which connects Raspberry pi

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    SGaistS
    So you want a RPi with a sftp server and a browser on your main machine.
  • Problem with QTimeZone

    Unsolved
    3
    0 Votes
    3 Posts
    854 Views
    M
    Not sure what you mean. I think I read it but did not see anything relevant. So the RPi for sure supports the Iana Timezones, as you can set them in raspi-config or directly with datetimectl.
  • Qt and OpenCV help

    Unsolved
    4
    0 Votes
    4 Posts
    965 Views
    mrdebugM
    How much time have you spent on try to cross compile? I have OpenCV working with Qt in Mac, Linux (amd64 and Raspberry Pi) and Windows. After have compile the project I can test it in each real machine. Raspberry Pi is not so slow to compile and if you want you can mount a remote file system so you can have the armhf binaries in a folder of you pc. Have a look at a .pro file of a multiplatform project that uses OpenCV and FFMpeg. #------------------------------------------------- # # Project created by QtCreator 2012-12-28T15:17:02 # #------------------------------------------------- QT += core gui xml network serialport greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = ComputerVisionStudio TEMPLATE = app unix:!mac { LIBS += -Wl,-rpath=\\\$$ORIGIN/libs } unix { INCLUDEPATH += ../../opencv-3.3.1/build INCLUDEPATH += ../../opencv-3.3.1/include INCLUDEPATH += ../../opencv-3.3.1/modules/calib3d/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/opencv_contrib-master/modules/face/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/core/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/features2d/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/flann/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/hal/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/highgui/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/imgcodecs/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/imgproc/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/ml/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/objdetect/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/opencv_contrib-master/modules/xfeatures2d/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/photo/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/shape/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/stitching/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/superres/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/video/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/videoio/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/videostab/include/ } windows { INCLUDEPATH += ../../opencv-3.3.1/build INCLUDEPATH += ../../opencv-3.3.1/include INCLUDEPATH += ../../opencv-3.3.1/modules/calib3d/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/opencv_contrib-master/modules/face/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/core/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/features2d/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/flann/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/hal/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/highgui/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/imgcodecs/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/imgproc/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/ml/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/objdetect/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/opencv_contrib-master/modules/xfeatures2d/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/photo/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/shape/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/stitching/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/superres/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/video/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/videoio/include/ INCLUDEPATH += ../../opencv-3.3.1/modules/videostab/include/ } unix { INCLUDEPATH += ../../openalpr-master/src/openalpr/ } windows { INCLUDEPATH += ../../openalpr_32/include } unix { INCLUDEPATH += ../../ffmpeg-4.2.2/ unix:!mac { #LIBS += ../../opencv-3.3.1/build/lib/libopencv_adas.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_bgsegm.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_bioinspired.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_calib3d.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_ccalib.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_core.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_datasets.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_face.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_features2d.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_flann.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_highgui.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_imgcodecs.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_imgproc.so #LIBS += ../../opencv-3.3.1/build/lib/libopencv_latentsvm.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_line_descriptor.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_ml.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_objdetect.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_optflow.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_photo.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_reg.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_rgbd.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_saliency.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_shape.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_stereo.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_stitching.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_superres.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_surface_matching.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_text.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_tracking.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_video.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_videoio.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_videostab.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_xfeatures2d.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_ximgproc.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_xobjdetect.so LIBS += ../../opencv-3.3.1/build/lib/libopencv_xphoto.so LIBS += ../../ffmpeg-4.2.2/libavcodec/libavcodec.so LIBS += ../../ffmpeg-4.2.2/libavdevice/libavdevice.so LIBS += ../../ffmpeg-4.2.2/libswresample/libswresample.so LIBS += ../../ffmpeg-4.2.2/libavfilter/libavfilter.so LIBS += ../../ffmpeg-4.2.2/libavformat/libavformat.so LIBS += ../../ffmpeg-4.2.2/libavutil/libavutil.so LIBS += ../../ffmpeg-4.2.2/libpostproc/libpostproc.so LIBS += ../../ffmpeg-4.2.2/libswscale/libswscale.so #LIBS += ../../x264-snapshot-20161201-2245/libx264.so.148 LIBS += ../../openalpr-master/src/build/openalpr/libopenalpr.so LIBS += ../../QtFFmpegPlayer/QtFFmpegPlayer-build-desktop/qthffmpegplayer.o LIBS += ../../QtHTTPClient/QtHTTPClient-build-desktop/qchttpclient.o LIBS += ../../QtHTTPClient/QtHTTPClient-build-desktop/httpcommons.o } unix:mac { #LIBS += -framework AVFoundation #LIBS += -framework CoreFoundation #LIBS += -framework CoreVideo #LIBS += -framework Foundation #LIBS += -framework IOKit #LIBS += ../../opencv-3.3.1/build/lib/libopencv_adas.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_bgsegm.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_bioinspired.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_calib3d.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_ccalib.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_core.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_datasets.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_face.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_features2d.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_flann.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_highgui.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_imgcodecs.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_imgproc.3.3.1.dylib #LIBS += ../../opencv-3.3.1/build/lib/libopencv_latentsvm.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_line_descriptor.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_ml.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_objdetect.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_optflow.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_photo.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_reg.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_rgbd.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_saliency.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_shape.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_stereo.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_stitching.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_superres.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_surface_matching.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_text.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_tracking.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_video.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_videoio.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_videostab.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_xfeatures2d.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_ximgproc.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_xobjdetect.3.3.1.dylib LIBS += ../../opencv-3.3.1/build/lib/libopencv_xphoto.3.3.1.dylib LIBS += ../../ffmpeg-4.2.2/libavcodec/libavcodec.dylib LIBS += ../../ffmpeg-4.2.2/libavdevice/libavdevice.dylib LIBS += ../../ffmpeg-4.2.2/libswresample/libswresample.dylib LIBS += ../../ffmpeg-4.2.2/libavfilter/libavfilter.dylib LIBS += ../../ffmpeg-4.2.2/libavformat/libavformat.dylib LIBS += ../../ffmpeg-4.2.2/libavutil/libavutil.dylib LIBS += ../../ffmpeg-4.2.2/libpostproc/libpostproc.dylib LIBS += ../../ffmpeg-4.2.2/libswscale/libswscale.dylib LIBS += ../../openalpr-master/src/build/openalpr/libopenalpr.dylib LIBS += ../../QtFFmpegPlayer/QtFFmpegPlayer-build-desktop/qthffmpegplayer.o LIBS += ../../QtHTTPClient/QtHTTPClient-build-desktop/qchttpclient.o LIBS += ../../QtHTTPClient/QtHTTPClient-build-desktop/httpcommons.o } } windows { LIBS += ../../opencv-3.3.1/build/3rdparty/lib/Release/libjpeg.lib LIBS += ../../opencv-3.3.1/build/3rdparty/lib/Release/libpng.lib LIBS += ../../opencv-3.3.1/build/3rdparty/lib/Release/libtiff.lib LIBS += ../../opencv-3.3.1/build/3rdparty/lib/Release/libwebp.lib LIBS += ../../opencv-3.3.1/build/3rdparty/lib/Release/zlib.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_core331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_core331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_face331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_features2d331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_highgui331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_imgcodecs331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_imgproc331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_objdetect331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_photo331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_video331.lib LIBS += ../../opencv-3.3.1/build/lib/Release/opencv_videoio331.lib INCLUDEPATH += ../../ffmpeg-4.2.2/include LIBS += ../../ffmpeg-4.2.2/lib/avcodec.lib LIBS += ../../ffmpeg-4.2.2/lib/avdevice.lib LIBS += ../../ffmpeg-4.2.2/lib/swresample.lib LIBS += ../../ffmpeg-4.2.2/lib/avfilter.lib LIBS += ../../ffmpeg-4.2.2/lib/avformat.lib LIBS += ../../ffmpeg-4.2.2/lib/avutil.lib LIBS += ../../ffmpeg-4.2.2/lib/postproc.lib LIBS += ../../ffmpeg-4.2.2/lib/swscale.lib LIBS += ../../openalpr_32/openalpr.lib LIBS += ../../QtFFmpegPlayer/QtFFmpegPlayer-build-desktop/release/qthffmpegplayer.obj LIBS += ../../QtHTTPClient/QtHTTPClient-build-desktop/release/qchttpclient.obj LIBS += ../../QtHTTPClient/QtHTTPClient-build-desktop/release/httpcommons.obj } # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ exif.cpp \ main.cpp \ ... HEADERS += \ exif.h \ ... FORMS += \ qfmainwindow.ui \ ... RESOURCES += \ Resourcefile.qrc TRANSLATIONS = ComputerVisionStudio_it.ts RC_FILE = ComputerVisionStudio.rc ICON = ComputerVisionStudio.icns DISTFILES += \ ComputerVisionStudio_it.ts
  • Get sound from jack with QMediaPlayer or omxplayer system calls?

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    D
    Found the solution for I2S, maybe it can work for jack output here: https://forum.qt.io/topic/117721/getting-sound-from-jack-with-alsa-instead-of-pulseaudio/2
  • Getting sound from jack with ALSA instead of PulseAudio

    Solved
    3
    1 Votes
    3 Posts
    2k Views
    D
    Hello @MangoCat , thank you for your message. Actually it's different installing directly to the Raspberry than using Yocto, but for sure it can be useful. At the end I sorted out, installing the following including pulseaudio (maybe several of all are unnecessary but I installed whatever I found on the net): PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer alsa" PACKAGECONFIG_append_pn-gstreamer1.0-plugins-ugly = "a52dec lame mpeg2dec x264" #PACKAGECONFIG_remove_pn-qtmultimedia = " pulseaudio" #DISTRO_FEATURES_remove = " pulseaudio" IMAGE_INSTALL += "alsa-lib alsa-plugins alsa-utils-speakertest alsa-utils alsa-state alsa-tools" IMAGE_INSTALL += "\ gstreamer1.0 \ gstreamer1.0-plugins-base-meta \ gstreamer1.0-plugins-good-meta \ gstreamer1.0-plugins-bad-meta \ gstreamer1.0-plugins-bad \ gstreamer1.0-plugins-base-playback \ gstreamer1.0-plugins-ugly-meta \ gst-meta-video \ gst-plugins-base-app \ gst-plugins-base \ gst-plugins-good \ gst-plugins-good-rtsp \ gst-plugins-good-udp \ gst-plugins-good-rtpmanager \ gst-plugins-good-rtp \ gst-plugins-good-video4linux2 \ gstreamer1.0-plugins-good \ gstreamer1.0-plugins-base \ gstreamer1.0-plugins-ugly \ gstreamer1.0-libav \ gst-fluendo-mp3 \ " DISTRO_FEATURES_append = " pulseaudio dbus" IMAGE_INSTALL_append = " pulseaudio pulseaudio-server \ qtmultimedia qtmultimedia-plugins qtmultimedia-qmlplugins dbus pulseaudio-misc" PACKAGECONFIG_append_pn-qtmultimedia = " pulseaudio" #PACKAGECONFIG_pn-pulseaudio_append Besides pulseaudio is called together with the main application, with the following bash script: #!/bin/bash sleep 10 # Maybe we can do a separate service # forum.qt.io/topic/108039/unable-to-play-audio-on-embedded-device-using-pulseaudio-audi$ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then echo "Starting dbus" export $(dbus-launch) fi /usr/bin/pulseaudio -D --start #/usr/bin/psplash #Main application /usr/bin/gallery-mobile Hope it helps whoever is facing the same issue as mine. Regards, Davidino
  • QT 5.15.0 cross-compile from source fails

    Unsolved
    5
    0 Votes
    5 Posts
    5k Views
    S
    After some research, I learned its much better to build Qt on Windows through a native Windows command prompt. After switching to PowerShell, I can progress much further into the build. I'm now having issues specifically with the QtLocation module. I'm currently getting the following error when trying to build QtLocation: cd location\ && ( if not exist Makefile C:\SysGCC\qt-build\qtbase\bin\qmake.exe -o Makefile C:\SysGCC\qt5\qtlocation\src\location\location.pro ) && C:/SysGCC/mingw32/bin/mingw32-make -f Makefile Project ERROR: Could not find feature location-labs-plugin. mingw32-make: *** [Makefile:181: sub-location-make_first] Error 3 It appears that the source tree \qtlocation\src\imports folder contains a locationlabs folder but it isn't getting built as the shadow build folder \qtlocation\src has no imports subfolder and the Makefile makes no mention of it. Anyone able to help with this error?
  • Make application in qt on Raspberrypi

    Solved
    4
    0 Votes
    4 Posts
    865 Views
    jsulmJ
    @Alphy said in Make application in qt on Raspberrypi: What are the procedure for deploying qt in raspberry pi. https://doc.qt.io/qt-5/linux-deployment.html - "Creating the Application Package" chapter
  • QT cross-compile to Rpi4

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    Pablo J. RoginaP
    @Jonas-Messerli said in QT cross-compile to Rpi4: Now everything is working. Great!, please don't forget to mark your post as solved then.