Skip to content

QtonPi

QtonPi
406 Topics 2.3k Posts
  • Compiler setup & old style compile errors and warnings when using Pi EGLFS toolchain.

    Unsolved
    3
    0 Votes
    3 Posts
    919 Views
    aha_1980A
    @robopoulos [Cxx flags are for C++ I assume, so that is why they do not affect C ?] Correct.
  • Arch Linux Arm: eglfs on Raspberry 3 (Could not find DRM device)

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • need help compiling library...

    Solved
    15
    0 Votes
    15 Posts
    4k Views
    C
    Errors in compile..... MN_EXPORT cnErrCode MN_DECL infcGetHubPorts(std::vectorstd::string &comHubPorts) { comHubPorts.clear(); FILE pfd = popen( "ls /dev/ttyXRUSB", "r" ); if ( pfd <= 0 ) { throw std::runtime_error( "Command or process could not be executed." ); } while ( !feof(pfd) ) { char buf[ 1024 ] = {0}; if ( fgets(buf, sizeof(buf), pfd) > 0 ) { std::string str(buf); // TODO: check the VID/PID of the device using udevadm/libudev to // verify that this is a Teknic SC4-Hub (vid=2890, pid=0213) comHubPorts.push_back(str.substr(0, str.length()-1)); } } pclose( pfd ); return MN_OK; } ERRORS FIXED BY: MN_EXPORT cnErrCode MN_DECL infcGetHubPorts(std::vectorstd::string &comHubPorts) { comHubPorts.clear(); FILE pfd = popen( "ls /dev/ttyXRUSB", "r" ); if ( !pfd ) { throw std::runtime_error( "Command or process could not be executed." ); } while ( !feof(pfd) ) { char buf[ 1024 ] = {0}; if ( fgets(buf, sizeof(buf), pfd) != NULL) { std::string str(buf); // TODO: check the VID/PID of the device using udevadm/libudev to // verify that this is a Teknic SC4-Hub (vid=2890, pid=0213) comHubPorts.push_back(str.substr(0, str.length()-1)); } } pclose( pfd ); return MN_OK; } If you use this fix, I must warn that I have no idea if it is the CORRECT way to fix the compile error.
  • How to accomplish a conversion...

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    C
    Thank you, I will read that info closely. It looks like I can somehow send a signal to the state machine to change it's states. Now comes the challenge for me to have the state machine manipulate the code in the Axis class. I can't even manage to do that manually yet, but maybe putting everything inside the state machine loop will allow me to change the Axis->variables from the different states. Is there a forum where a very new c++ beginner can ask questions? I hate to keep wasting your time.... Thanks,
  • Camera Example - no service found

    Unsolved
    11
    0 Votes
    11 Posts
    4k Views
    ArtyA
    I got the same problem with my usb camera(examples) how can I fix it?
  • Using a different compiler for Qt projects than the one used to cross-build Qt itself

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    vikramgV
    I have been able to get this to work by specifying the new compilers in the QMAKE_CC, QMAKE_CXX , and QMAKE_LINK variables. Note, specifying the same compiler binary in QMAKE_LINK is essential; otherwise you get errors like undefined reference to 'operator delete(void*, unsigned int)' because the link step continues to use the old compiler. Another gotcha is that QMAKE_CXXFLAGS += -std=c++14 does not work. Instead, specify CONFIG += c++14. The former results in the sequence -std=c++14 -std=gnu++11 in the compiler options - where, as you can see, the gnu++11 supercedes c++14. There is one additional thing that may be required: libstdc++.so.6 on the target will likely be pretty old as well. This will result in errors like /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found when you try to run the application. These can be fixed by pointing the link /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 on the RPi to the compatible library provided with the toolchain tarball (in my case, libstdc++.so.6.0.24). Anyway, I'm not marking this as solved because this is a hacky solution at best. You couldn't use the .pro file as-is to build for a different platform, given the hardcoded compiler paths. The real solution would be to find out why the Kit compiler paths don't work.
  • Gstreamer installation in the cross compiler

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    P
    @sierdzio said in Gstreamer installation in the cross compiler: Since this is a Qt forum, though, I'd rather advise you to simply use QtMultimedia (QCamera class, for example) to display the image. It uses Gstreamer internally. Thank you very much for the tip. I will try Qt Multimedia.
  • How to get video preview from QProcess to fill a rectangle in qml

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    KachorazaK
    @Pablo-J-Rogina I am trying to get camera preview with the following code, but all I have is a white window. Can you please see what am I doing wrong here. I have tried it on pi and ubuntu with no errors, but similar result. Thanks in advance import QtQuick 2.9 import QtQuick.Window 2.3 import QtMultimedia 5.9 import QtQuick.Controls 2.2 Window { id: window width: 640 height: 480 property alias window: window property alias videooutput: videooutput visible: true property Camera camera: Camera { id: camera captureMode: Camera.CaptureViewfinder cameraState: Camera.ActiveState Component.onCompleted: { camera.start() if(cameraState === Camera.ActiveState){ console.log("Camera ready") } } } VideoOutput { id: videooutput anchors.fill: parent source: camera focus: visible enabled: true Component.onCompleted: { console.log(camera.cameraState) } } }
  • 4 Votes
    2 Posts
    1k Views
    sierdzioS
    Great, thanks for info!
  • Add Qtgamepad cross compiling qt for raspberrypi0-wifi

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    D
    Hello to all, After some more time, I succeeded to add qtgamepad. Basically, instead of modifying the image recipe b2qt-embedded-qt5-image.bb, I had to change the recipe contained in packagegrup packagegroup-b2qt-embedded-qt5-toolchain-target.bb. RDEPENDS_${PN} += " \ ${MACHINE_EXTRA_INSTALL_SDK} \ packagegroup-core-standalone-sdk-target \ \ ..... qtgamepad-dev \ " I believe that I can do this change in image recipe b2qt-embedded-qt5-image.bb using MACHINE_EXTRA_INSTALL_SDK +=qtgamepad-dev, not test though.
  • QT5 for Notepadqq on Raspberry

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    SGaistS
    There’s always a start for everything :-) Good luck !
  • cross compile Qt 5.7 for rpi3 : help needed

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    H
    @Pablo-J.-Rogina said in cross compile Qt 5.7 for rpi3 : help needed: @hem1 ok regarding -make libs, but what about this: device: you -> linux-rpi3-g++ guide -> linux-rasp-pi3-g++ did you try that different device naming? actually the device name depends on the folder name present in qtbase of QT folder which was like linux-rpi3-g++ so i used that otherwise it was giving error no device named linux-rasp-pi3-g++ present.
  • Displaying web content in Qt Creator projects

    Unsolved
    3
    0 Votes
    3 Posts
    946 Views
    P
    raven-worx: Thank you very much. All clear. Best Regards.
  • Qwt from Windows to Linux Porting

    Unsolved
    39
    0 Votes
    39 Posts
    14k Views
    SGaistS
    Hi, Might be a silly question but are you sure you are using the same Qt version of building your application that was used to build Qwt ?
  • Cannot get cross-compile-tools

    9
    1 Votes
    9 Posts
    6k Views
    S
    Hello Developers, I have also tried to use following link https://git.milosolutions.com/other/cross-compile-tools/ in order to install qt5.7 s mentioned in link https://wiki.qt.io/BeagleBone_Black_Beginners_Guide but when I try to download cross-compile-tools it ask me for password. Can you please tell me @Ralle which password should I give . Thank you very much :)
  • Qt 5.7 and cross compile

    Unsolved qt 5.7 and rpi3
    32
    0 Votes
    32 Posts
    23k Views
    Pablo J. RoginaP
    @shivaVMC you were already told: That's worthy of a new thread. so could you please start a thread on its own regarding Qwt and Windows? The issue you're now interested about has nothing to do with the original subject of post (which it was not even started by you by the way). Thanks
  • Deploying QT on Raspberry from Win 7 or Win 10 PC

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    Pablo J. RoginaP
    @Tony-Stark said in Deploying QT on Raspberry from Win 7 or Win 10 PC: my interest here is to make the science go ahead :). My 2 cents, stick to the Linux VM and employ your energy in something more productive :-) than fighting with Windows...
  • Can't able to build Qt framework for fedberry Os ?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Then you can try to copy it from raspbian but you should contact the folks behind fedberry27 about that matter.
  • Mqtt module - client

    Solved
    15
    0 Votes
    15 Posts
    6k Views
    P
    Thank You very much!
  • Qtrpi - Cross compile

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    Nice. Happy coding!