[yocto] Parse error: unable to parse line
Fabien Lahoudere
fabien.lahoudere at collabora.co.uk
Thu Mar 30 01:57:52 PDT 2017
On Thu, 2017-03-30 at 10:14 +0200, Yuvarajesh Valleru wrote:
> Hi,
>
> I am new to yocto. I was building an example recipe 'helloworld' and
> have a parse error. but could not find the solution
>
> here is the error:
>
> cc at cc:~/src/oe-core/build$ bitbake helloworld
> Loading cache: 100% |############################################| Time:
> 0:00:01
> Loaded 3468 entries from dependency cache.
> ERROR: ParseError at
> /home/cc/src/oe-core/build/../layers/meta-iseg/recipes-ics/helloworld/helloworld_1.0.bb:1:
> unparsed line: 'SUMMARY = "hello world program"'
>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
>
> what would be the mistake in the recipe. please find the recipe, source
> and pro files below
>
> helloworld_1.0.bb recipe:
>
> SUMMARY = "hello world program"
> HOMEPAGE = "http://www.yoctoproject.org/"
> SECTION = "network"
> LICENSE = "CLOSED"
> inherit qt4e
>
> SRC_URI = " \
> file://helloworld.pro \
> file://helloworld.cpp \
> "
>
> S = "${WORKDIR}"
>
> QMAKE_PROFILES = "${WORKDIR}/helloworld.pro \
> "
>
> do_compile() {
> ${CC} helloworld.cpp -o helloworld
> }
>
> do_install() {
> install -d ${D}${bindir} ${D}${docdir}/helloworld
> install -m 0644 helloworld
>
braces is missing here.
> helloworld.cpp file:
>
> #include <QTextStream>
>
> int main(int argc, char *argv[])
> {
> Q_UNUSED(argc);
> Q_UNUSED(argv);
>
> QTextStream cout(stdout);
>
> cout << "Hello World" << endl;
> return 0;
> }
>
> helloworld.pro file:
>
> QT += core
> QT += gui
> QT += widgets
> TARGET = helloworld
> CONFIG += console
>
> TEMPLATE = app
>
> SOURCES += helloworld.cpp
>
> Could you plese help me with the solution.
>
> Thank you,
>
> Yuvi
>
>
>
>
More information about the yocto
mailing list