cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
1,909 Views
Registered: ‎01-11-2018

build Qt APP following the wiki page of Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 5

Jump to solution

Hi all:

I am new to petalinux and Qt.

When I tried to build the video application following the steps of wiki xilinux of Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 5, I got the following:

 

[guest@localhost video_qt2]$ export SYSROOT=/home/guest/peta_workshop/rdf0429-zcu102-es2-base-trd-2017-4/apu/petalinux_bsp/build/tmp/sysroots/plnx_aarch64
[guest@localhost video_qt2]$ qmake video_qt2-dm5.pro -r -spec linux-oe-g++

Could not find qmake configuration file linux-oe-g++.
Error processing project file: video_qt2-dm5.pro

 

What did I miss?

THX ahead, any should be helpful!

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
2,337 Views
Registered: ‎04-24-2017

Re: build Qt APP following the wiki page of Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 5

Jump to solution

Hi @fujiajun,

 

Enable packagegroup-petalinux-qt in petalinux-conf -c rootfs. Then create a simple user space application follow UG1144 docs.

 

If you want to build your own Qt app then I have added Qtwebkit example you can use as reference.

 

qtwebkitdemo.bb content

 

#
# This file is the qtwebkitdemo recipe.
#

SUMMARY = "Qt5 Webkit demo"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
    file://qtwebkitdemo.cpp \
    file://qtwebkitdemo.pro \
"

S = "${WORKDIR}"

require recipes-qt/qt5/qt5.inc

# Add dependency packages DEPENDS += "qtbase qtwebkit qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt qtxmlpatterns" RDEPENDS_${PN} += "qtwebkit-qmlplugins" RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG_OPENSSL', 'openssl', 'ca-certificates', '', d)}" do_compile() { oe_runmake } do_install() { install -d ${D}${bindir} install -m 0755 qtwebkitdemo ${D}${bindir} }

 

qtwebkitdemo.cpp content:

#include <QApplication>
#include <QWebView>

int main(int argc, char** argv) {
    QApplication app(argc, argv);
    QWebView view;
    view.show();
    view.setUrl(QUrl("http://webkit.org/blog-files/webgl/SpinningBox.html"));
    return app.exec();
}

qtwebkitdemo/pro content:

 

QT += core gui webkit widgets webkitwidgets
SOURCES += qtwebkitdemo.cpp

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

3 Replies
Highlighted
Contributor
Contributor
1,869 Views
Registered: ‎01-11-2018

Re: build Qt APP following the wiki page of Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 5

Jump to solution
should I install Qt first?
0 Kudos
Highlighted
Moderator
Moderator
2,338 Views
Registered: ‎04-24-2017

Re: build Qt APP following the wiki page of Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 5

Jump to solution

Hi @fujiajun,

 

Enable packagegroup-petalinux-qt in petalinux-conf -c rootfs. Then create a simple user space application follow UG1144 docs.

 

If you want to build your own Qt app then I have added Qtwebkit example you can use as reference.

 

qtwebkitdemo.bb content

 

#
# This file is the qtwebkitdemo recipe.
#

SUMMARY = "Qt5 Webkit demo"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
    file://qtwebkitdemo.cpp \
    file://qtwebkitdemo.pro \
"

S = "${WORKDIR}"

require recipes-qt/qt5/qt5.inc

# Add dependency packages DEPENDS += "qtbase qtwebkit qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt qtxmlpatterns" RDEPENDS_${PN} += "qtwebkit-qmlplugins" RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG_OPENSSL', 'openssl', 'ca-certificates', '', d)}" do_compile() { oe_runmake } do_install() { install -d ${D}${bindir} install -m 0755 qtwebkitdemo ${D}${bindir} }

 

qtwebkitdemo.cpp content:

#include <QApplication>
#include <QWebView>

int main(int argc, char** argv) {
    QApplication app(argc, argv);
    QWebView view;
    view.show();
    view.setUrl(QUrl("http://webkit.org/blog-files/webgl/SpinningBox.html"));
    return app.exec();
}

qtwebkitdemo/pro content:

 

QT += core gui webkit widgets webkitwidgets
SOURCES += qtwebkitdemo.cpp

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

Highlighted
Visitor
Visitor
202 Views
Registered: ‎07-23-2018

Re: build Qt APP following the wiki page of Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 5

Jump to solution

Hi

I follow your example in petalinux 2019.2 but the installer in {bindir} doesn't work.

Is it possible that with version 2019.2 it doesn't work?

how can I investigate the error?

Thanks for your help

 

Luisa

 

0 Kudos