I had changed the source of my package, and create a new recipe for my package 
so it fetches from SourceForge, the new recipe does not inherit Autotools and 
modify the do_compile, do_install as following:
do_compile () {
      oe_runmake
}

do_install () {
      :
}

but i had modified the do_install task to add it to my image and now it is like 
this
do_install () {

      install -d ${D}${bindir}
      install -m 0755 nInvaders ${D}${bindir}
}

then i run "bitbake ninvaders" to check that all tasks will be passed but i got 
that error for do_package task

arm-poky-linux-gnueabi-objcopy:/home/yusuf/rpi/build/tmp_sumo_RPI/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/ninvaders/0.1.1-r0/package/usr/bin/nInvaders:
 File format not recognized
ERROR: ninvaders-0.1.1-r0 do_package: Function failed: split_and_strip_files

Yusuf
________________________________
From: Burton, Ross <ross.bur...@intel.com>
Sent: Wednesday, September 19, 2018 1:11 PM
To: mohamedyous...@outlook.com
Cc: Yocto-mailing-list
Subject: Re: [yocto] Adding nInvaders game package recipe

The problem is most likely that you're not using automake but the
generated recipe (would have been useful to include that) is using the
autotools class, which assumes correct use of both autoconf and
automake.  Specifically, your hand-written Makefile doesn't handle
out-of-tree builds.

Change the inherit from autotools to autotools-brokensep, and I expect
that will fix the build.

Ross
On Wed, 19 Sep 2018 at 12:08, Mohamed Youseif
<mohamedyous...@outlook.com> wrote:
>
> Hi, I want to add the invaders game package to my image that I had built 
> before and tested, so I used the command "recipetool create -V 1.0 
> https://github.com/TheZ3ro/ninvaders.git"; to make my custom recipe, then I 
> had to append this package to my image by appending the package name to 
> IMAGE_INSTALL variable (like this IMAGE_INSTALL_append = "ninvaders", but 
> before I build the new image I tried to test my recipes' task to be done 
> correctly by running this command
> "bitbake -b ninvaders_git.bb"  but there is an error while executing the 
> do_compile task and it prints out that:
>
> ERROR: ninvaders-1.0+gitAUTOINC+c6ab4117ba-r0 do_compile: oe_runmake failed
> ERROR: ninvaders-1.0+gitAUTOINC+c6ab4117ba-r0 do_compile: Function failed: 
> do_compile (log file is located at 
> /home/yusuf/rpi/build/tmp_sumo_RPI/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/ninvaders/1.0+gitAUTOINC+c6ab4117ba-r0/temp/log.do_compile.25813)
> ERROR: Logfile of failure stored in: 
> /home/yusuf/rpi/build/tmp_sumo_RPI/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/ninvaders/1.0+gitAUTOINC+c6ab4117ba-r0/temp/log.do_compile.25813
> Log data follows:
> | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 
> 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 4
> | make: *** No rule to make target 'globals.o', needed by 'nInvaders'.  Stop.
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at 
> /home/yusuf/rpi/build/tmp_sumo_RPI/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/ninvaders/1.0+gitAUTOINC+c6ab4117ba-r0/temp/log.do_compile.25813)
> ERROR: Task 
> (/home/yusuf/rpi/meta-rpi/recipes-misc/nInvaders/ninvaders_git.bb:do_compile) 
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 8 tasks of which 0 didn't need to be rerun and 
> 1 failed.
>
> Summary: 1 task failed:
>   /home/yusuf/rpi/meta-rpi/recipes-misc/nInvaders/ninvaders_git.bb:do_compile
> Summary: There was 1 WARNING message shown.
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>
> so should i modify the do_compile task?
> Thanks,
> Yusuf
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to