Skip to content

QtonPi

QtonPi
405 Topics 2.3k Posts
QtWS25 Last Chance
  • Running two applications with EGLFS

    Unsolved
    1
    0 Votes
    1 Posts
    707 Views
    No one has replied
  • Failed to load EGL device integration "eglfs_kms"

    Unsolved
    2
    0 Votes
    2 Posts
    843 Views
    U
    Does this happen while running the compiled application?
  • Raspberry PI 4 Tachometer doesn't display data

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    R
    QTimer is working. The problem is that I didn't call the function.
  • Unabel to build qtwebglplugin

    Unsolved
    4
    0 Votes
    4 Posts
    817 Views
    S
    @SGaist its ok thankyou
  • QT crosscompiling and running qopenglwidget on Pi Zero

    Unsolved
    1
    0 Votes
    1 Posts
    562 Views
    No one has replied
  • Reading input frequency and drawing using pyqtgraph

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @Maanas Of adding layouts and then widgets to a QWidget? No, you must know perfectly well how to do that. There's nothing to say.
  • Qt crosscompile for buildroot Raspberry Pi

    Unsolved
    3
    0 Votes
    3 Posts
    994 Views
    T
    HI Ok. I fixed the broken sym links and made rsync to whole sysroot. No I got: Running configuration tests... /home/tomaz/RaspberryPiEGLFS/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -dumpmachine arm-linux-gnueabihf Checking for valid makespec... cd /home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/config.tests/verifyspec && /home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/tomaz/RaspberryPiEGLFS/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/tomaz/RaspberryPiEGLFS/sysroot" "QMAKE_LFLAGS += --sysroot=/home/tomaz/RaspberryPiEGLFS/sysroot" -early "CONFIG += cross_compile" /home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/qtbase/config.tests/verifyspec cd /home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make rm -f verifyspec.o rm -f *~ core *.core /home/tomaz/RaspberryPiEGLFS/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/tomaz/RaspberryPiEGLFS/sysroot -O2 -std=gnu++11 -w -fPIC -I/home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/qtbase/config.tests/verifyspec -I. -I/home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/qtbase/mkspecs/devices/linux-rasp-pi-g++ -o verifyspec.o /home/tomaz/RaspberryPiEGLFS/qt-everywhere-src-5.12.5/qtbase/config.tests/verifyspec/verifyspec.cpp /home/tomaz/RaspberryPiEGLFS/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/tomaz/RaspberryPiEGLFS/sysroot -Wl,-O1 -Wl,-rpath-link,/home/tomaz/RaspberryPiEGLFS/sysroot/opt/vc/lib -Wl,-rpath-link,/home/tomaz/RaspberryPiEGLFS/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/tomaz/RaspberryPiEGLFS/sysroot/lib/arm-linux-gnueabihf -o verifyspec verifyspec.o /home/tomaz/RaspberryPiEGLFS/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status make: *** [Makefile:68: verifyspec] Error 1 Note: Also available for Linux: linux-clang linux-icc ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. Thomas
  • 0 Votes
    10 Posts
    3k Views
    JonBJ
    @CaptainHatteras I'm afraid it means nothing to me, but Googling libqeglfs failed to add service already in use do these help: https://stackoverflow.com/questions/40490113/eglfs-on-raspberry2-failed-to-add-service-already-in-use https://forum.qt.io/topic/108778/running-qt-in-raspberry-pi-3-rpi3-vs-raspberry-pi-4-rpi4
  • QMediaPlayer not showing Video on Raspberry Pi, works fine on Windows

    Unsolved
    2
    0 Votes
    2 Posts
    627 Views
    SGaistS
    Hi and welcome to devnet, Can you play that file with GStreamer on your Pi ? Which version of Qt are you using ? Are you cross-compiling ?
  • Cross-compile to RPi WITHOUT (RE)COMPILE QT from source

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    M
    Hello Tibor, I have the same exact problem here... Have you resolved somehow and you can share the solution with me? Thanks + regards, /Moris
  • QModbusServer on Raspberry Pi: Connection Refused by Server

    Solved
    2
    0 Votes
    2 Posts
    642 Views
    aniketRoxyA
    I changed code as following, now working fine. //const QUrl url = QUrl::fromUserInput("127.0.0.1:1502"); modbusDevice->setConnectionParameter(QModbusDevice::NetworkAddressParameter, "localhost"); modbusDevice->setConnectionParameter(QModbusDevice::NetworkPortParameter, 1502); modbusDevice->setServerAddress(1); "127.0.0.1" is loopback address, which refuses remote connection.
  • QModbusServer on Raspberry Pi: Address is Protected

    Solved raspberry pi 3 modbus server
    4
    0 Votes
    4 Posts
    2k Views
    aniketRoxyA
    Thank you @jsulm & @KroMignon !! :) Ports 0-1024 are "protected" for "known" services and By "protected", they must be used by system daemons. Thus, a regular user cannot start them. Solution 1: Run application using terminal: sudo \path\to\app Solution 2: Use a port above 1024 So i changed port from 502 to 1502: const QUrl url = QUrl::fromUserInput("127.0.0.1:1502"); Working now!! <3 Qt
  • qtmqtt from git failure within make

    Unsolved
    2
    0 Votes
    2 Posts
    522 Views
    SGaistS
    Hi and welcome to devnet, If you try to build that module with your distribution provided Qt, you need to install the additional packages that provide Qt's private headers. You should also take into account that when you clone one of the modules, you get the dev branch by default which targets Qt 6.
  • 0 Votes
    2 Posts
    1k Views
    J
    hi vpettersson, i got the same errors and got it working with 3 symlinks: in sysroot/opt/vc/include/EGL mv egl.h egl.h-old mv eglext.h eglext.h-old mv eglplatform.h eglplatform.h-old ln -s /home/jw78/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/khronos/EGL/eglext.h eglext.h ln -s /home/jw78/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/khronos/EGL/egl.h egl.h ln -s /home/jw78/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/khronos/EGL/eglplatform.h eglplatform.h of course you must adjust your paths (/home/jw78/raspi/qt-everywhere-src-5.15.2) there are many egl.h/eglext.h/eglplatform.h to include and because of the include order the comiler fetches first the files in sysroot/opt/vc/include/EGL probably the better solution is to reorder the "-I" flags for the compiler, but i have no idea how to do this i did not dpkg --purge libraspberrypi-dev
  • 0 Votes
    5 Posts
    1k Views
    L
    @Pablo-J-Rogina At the moment, I am cross referencing these two guides to get the configure to work: https://www.youtube.com/watch?v=TmtN3Rmx9Rk&t=1231s https://wapel.de/?p=842
  • Debug application as sudo ?

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    A
    Finally cracked it! Not sure if it's the best/easiest way but it works. SSH into remote pi and issue this command : sudo gdbserver localhost:10000 appname In Creator select Debug | Start Debugging | Attach to Running Debug Server. Enter Server = 10000 and select Local Executable file. Hit OK and debugging runs as normal but with sudo privileges.
  • SQL Server driver missing (Pi4, Qt 5.11.3)

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    W
    I did some searches and I was missing some configuration steps that I never had the need to do when using Lazarus. Ok...so I've installed everything related to "freetds" and "unixodbc". Configured "/etc/freetds.conf" as follows: [SQLSRV] host=192.168.1.205 port=1433 tds version=7.4 instance=CASA then checked the connection from the commandline with: tsql -S SQLSRV -U sa it asked the password, typed the password but the connection failed telling: Error 20012 (severity 2): Server name not found in configuration files. locale is "it_IT.UTF-8" locale charset is "UTF-8" using default charset "UTF-8" Error 20013 (severity 2): Unknown host machine name. Error 20009 (severity 9): Unable to connect: Adaptive Server is unavailable or does not exist There was a problem connecting to the server I found a post where an user suggested to "cp /etc/freetds.conf ~/.freetds.conf" (<-- this last operation is needed only to make "tsql ....." connecting without errors, it's not needed for Qt to work as I discovered later) Ok...I tried to go on and configured "/etc/odbcinst.ini" as follows: [FreeTDS] Description=FreeTDS unixODBC Driver Driver = /usr/lib/arm-linux-gnueabihf/odbc/libtdsodbc.so and "/etc/odbc.ini": [P860] Description= SQL Server Driver= /usr/lib/arm-linux-gnueabihf/odbc/libtdsodbc.so Trace= No Server= 192.168.1.205\CASA Port= 1433 TDS_Version= 7.4 then I checked the connection with: isql P860 sa 12345 and this time it connected and I was able to execute queries. I went back to the code and modified this way: QString cnStr = QStringLiteral("P860"); QSqlDatabase db = QSqlDatabase::addDatabase("QODBC"); db.setDatabaseName(cnStr); bool ok = db.open("sa", "12345"); ...and now it can connect to SQL Server ! Thanks for the support ! Roberto
  • HOWTO set the HOME environment variable when debugging on target

    Unsolved
    1
    0 Votes
    1 Posts
    805 Views
    No one has replied
  • Boot2Qt for RPI3B+

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    S
    @megger Thanks for this answer....been searching and playing with all sorts of options for 2 days now. I have used RPi3's a few times before, including with the official RPi screen with no problem. This time round I was using Qt5.15.2 for the first time and the display wouldn't display. Until I found this! Thank you.
  • Modern open GL With QT on Raspberry pi

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    I
    @jsulm said in Modern open GL With QT on Raspberry pi: @ishi said in Modern open GL With QT on Raspberry pi: any suggestions for detailed installation , Please Check https://wiki.qt.io/Raspberry_Pi_Beginners_Guide Thank you