Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
13.9k Topics 61.7k Posts
  • 0 Votes
    1 Posts
    53 Views
    No one has replied
  • 0 Votes
    3 Posts
    171 Views
    N

    Just as I posted that I found a workaround, but I would still like to know how to correct this.

    For those that are having the same issue and just "want it done" here's what I did: On a fresh bitbake run, when gn-native failed, it showed me the command-line that it ran, which looked something like this:

    cd /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build && /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/recipe-sysroot-native/usr/bin/python3-native/python3 /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/git/src/3rdparty/gn/build/gen.py --no-last-commit-position --out-path /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build/ --cc /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/gcc --cxx /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ --ld /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ --platform linux --ar /home/aaron/yocto/sources/poky/scripts/native-intercept/ar --qt-version 6.8.0.qtwebengine.qt.io && /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/recipe-sysroot-native/usr/bin/ninja -C /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build/ gn

    Right around where it says gen.py notice there's a bunch of flags: --no-commit-position --out-path etc. Somewhere in those flags, add --allow-warnings and re-run that command. gn-native will (hopefully) build successfully, with warnings, and you will be able to proceed with your Yocto build.

  • 0 Votes
    1 Posts
    58 Views
    No one has replied
  • Blue drop on android with QComboBox using

    Unsolved
    5
    0 Votes
    5 Posts
    544 Views
    P

    Here is my Solve:

    class AndroidItemModel : public QStandardItemModel {
    Q_OBJECT
    public:
    AndroidItemModel(QObject *parent = nullptr): QStandardItemModel(parent) {}
    Qt::ItemFlags flags(const QModelIndex &index) const override {
    if (!index.isValid()) {return Qt::NoItemFlags;}
    return Qt::ItemIsSelectable | Qt::ItemIsEnabled;
    }
    };

    QComboBox * cb = new QComboBox();
    cb ->setModel(new AndroidItemModel());

  • 0 Votes
    4 Posts
    153 Views
    B

    I'm very sorry that I've been busy before.,So I didn't come back to reply.,Then I've found the problem.,Now I'm back to answer the question I hope it can help you.,The main reason is that the default frame rate of my device's camera is the lowest, resulting in the number of frames being too low to cause Caton.,So I increased the number of frames to get it solved.

    void ThreadGetCamPic::run() { bool ret = stVideoCaptrue.open(0); //The code in the horizontal line is currently known to be only valid for the RK35xx series cameras, if there is a problem with the camera turned on, it should be here, just comment it out, and it is also the reason to solve the freeze of the camera acquisition screen /*---------------------------------------------------------------------------------*/ // stVideoCaptrue.set(cv::CAP_PROP_FRAME_WIDTH, 800); // stVideoCaptrue.set(cv::CAP_PROP_FRAME_HEIGHT, 600); // stVideoCaptrue.set(cv::CAP_PROP_FPS, 20); /*---------------------------------------------------------------------------------*/ Mat matTemp; // QImage img; m_bStop = false; while(!m_bStop){ stVideoCaptrue>>matTemp; if(matTemp.empty()){ msleep(50); continue; } img = QImage(matTemp.data,matTemp.cols,matTemp.rows,matTemp.step,QImage::Format_RGB888).copy(); img = convertRGB888toBGR888UsingOpenCV(img); emit sigSendCurImg(img); } }
  • 0 Votes
    7 Posts
    222 Views
    V

    @jsulm ,

    Got it,
    I will check it first
    Very Appreciate your help

  • Free QT usage on embedded devices?

    Unsolved
    8
    0 Votes
    8 Posts
    220 Views
    J.HilkJ

    This is not legal advice. But I can tell you an anecdotal story from my previous company I worked for.

    The company produced heavy duty machines that could, for a better user experience, be equipped with a of the shelf android tablet and a custom app made in Qt.

    We used to own a normal commercial licence there and developed that app with that licence. After some years during a renewal process, the QtC decided that this was an embedded device since the tablet was sold/shipped with the app preinstalled and would like money for each sold unit.

    The end of the story is, the mechanic setting the machine up now has to do the extra step of connecting the tablet to the internet, getting the app from the Appstore and than placing it back into the machine.

    Oh, and the company startet to transition away from Qt.

  • STILL unable to deploy/run on Android

    Unsolved
    11
    0 Votes
    11 Posts
    350 Views
    mzimmersM

    It compiles for me, too, but it doesn’t run.

  • Qt for Batocera

    Unsolved
    1
    0 Votes
    1 Posts
    62 Views
    No one has replied
  • Qt 6.8.0 on yocto & RPi

    Unsolved
    1
    0 Votes
    1 Posts
    105 Views
    No one has replied
  • 0 Votes
    2 Posts
    95 Views
    J

    do_install:append() = " mygui" is the correct syntax.

  • Can I use meta-qt5 for a qt 6.7.3 project in yocto?

    Solved
    2
    0 Votes
    2 Posts
    85 Views
    jsulmJ

    @Juan-Gomez If your board only has Qt5 then use Qt5 to build your app.
    You can't mix Qt5 and Qt6.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    3 Posts
    162 Views
    G

    Known issue in the Qt bug tracker:
    https://bugreports.qt.io/browse/QTBUG-130813?filter=-4&jql=text ~ "ios ffmpeg" order by created DESC
    and
    https://bugreports.qt.io/browse/QTBUG-129533

  • how to integrate qt and stm32cube ide for stm32mp157d-dk1

    Unsolved
    1
    0 Votes
    1 Posts
    63 Views
    No one has replied
  • bitbake b2qt-embedded-qt6-image fails for STM32mp15-disco

    Solved
    3
    0 Votes
    3 Posts
    139 Views
    J

    I decided to move on with the build image following the st instructions, which seem to be a little more documented.

  • 0 Votes
    2 Posts
    120 Views
    B

    Change android: lunchMode ="single instance" did the trick

  • make: *** No rule to make target 'install'. Stop.

    Unsolved
    1
    0 Votes
    1 Posts
    81 Views
    No one has replied
  • QT Widgets not responding to touch event sometimes

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    gfxxG

    @MicHes said in QT Widgets not responding to touch event sometimes:

    Hi @JoeCFD,
    speed is not the main issue here - I meant that code you need to change every time you add or remove a button would not be maintainable. There would need to be an routine that automatically finds the button (if any) a touch event belongs to, otherwise it will cause more problems down the line.

    Greetings, Michael.

    or use static cast for find button name and apply code for that when find it.

  • 0 Votes
    1 Posts
    50 Views
    No one has replied