[yocto] Building own cmake based package using Yocto

Philip Balister philip at balister.org
Mon Jun 3 08:44:21 PDT 2013


On 06/03/2013 08:49 AM, Arpit Jain wrote:
> Hi,
> 
> I am trying to build a CMake based package using Yocto on Linux (SUSE Linux
> Enterprise Desktop 11 (x86_64)). I am trying to build (cross compile) for
> PowerPC.

Look at the cmake.bbclassfile. The gnuradio recipe in meta-oe uses this
class.

Philip



> I have specified MACHINE as "qemuppc" in local.conf file before command
> "bitbake -k core-image-minimal".
> 
> I have written a very simple recipe file to build my own package using
> cmake.
> 
> The file is as simple as do configure()
> {
>    cmake ..
> }
> 
> When I run bitbake -b <recipe file>, the build configuration kicks off
> and the package gets extracted.
> 
> To cross compile my package, it is picking the following
> compiler "/home/arpit/yocto/poky-dylan-9.0.0/build/tmp/sysroots/x86_64-linux/usr/bin/ppc603e-poky-linux/powerpc-poky-linux-gcc",
> which I suppose is correct.
> 
> However, following doubt I have:
> 1. The dependant libraries for package that it is picking has to be
> for PowerPC, but is picking x86_64 libraries like NetSNMP, FUSE.
> I guess these libraries should also be picked for PowerPC from Yocto
> compiled sources.
> Then the configuration stops with an error that "Sorry, could not find
> ncurses library   Please install it ".
> 
> Can you please suggest if I am doing something wrong.
> 
> Regards,
> Arpit
> 
> 
> 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
> 



More information about the yocto mailing list