[yocto] SCons Build Issue

Khem Raj raj.khem at gmail.com
Mon Feb 10 22:06:14 PST 2014


On Jan 30, 2014, at 5:32 PM, George Hilliard <gh403 at msstate.edu> wrote:

> Hello,
> I have a build issue.  I'm trying to write a Bitbake recipe for jsoncpp, which uses SConstruct.  My .bb file is at https://gist.github.com/thirtythreeforty/8725055.  When I run it, Bitbake complains,
> 
> | DEBUG: Executing shell function do_compile
> | Traceback (most recent call last):
> |   File "/home/user/msu-community-bsp/build_mx6/tmp/sysroots/x86_64-linux/usr/bin/scons", line 187, in <module>
> |     import SCons.Script
> | ImportError: No module named SCons.Script
> | ERROR: scons build execution failed.
> | ERROR: Function failed: do_compile (see /home/user/msu-community-bsp/build_mx6/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/jsoncpp/0.5.0-r0/temp/log.do_compile.8396 for further information)
> 
> What gives?  How can I modify the recipe (or my setup) to build this infernal package?

it seems SCONS_LIB_DIR need to set to point to sys root as well since scons itself is coming from native sys root.
for tests export SCONS_LIB_DIR=${STAGING_LIBDIR_NATIVE}/scons/…. where ever its installed might help

> 
> Thanks in advance!
> George Hilliard
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list