[yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

Giordon Stark kratsg at gmail.com
Tue Mar 6 10:50:45 PST 2018


Hi,

I tried this and it didn't work.

Giordon
On Tue, Mar 6, 2018 at 12:43 Burton, Ross <ross.burton at intel.com> wrote:

> Add DEPENDS=python-six
>
> Ross
>
> On 6 March 2018 at 18:11, Giordon Stark <kratsg at gmail.com> wrote:
>
>> Hi all,
>>
>> I'm struggling with what should be a simple-ish recipe (I think). I'm
>> writing a recipe implementation for
>> https://github.com/open62541/open62541 (open62541). So I start with
>>
>> devtool add open62541 https://github.com/open62541/open62541.git
>>
>> then I edit this, so it currently looks like this for me:
>>
>> SUMMARY = "OPC UA implementation"
>> LICENSE = "MPL-2.0"
>> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
>> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
>> PV = "0.3+git${SRCPV}"
>> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
>>
>> S = "${WORKDIR}/git"
>>
>> # NOTE: unable to map the following CMake package dependencies: Check
>> Sphinx ClangTools LATEX MbedTLS Valgrind
>> DEPENDS = "openssl"
>>
>> inherit cmake pythonnative
>>
>> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
>> EXTRA_OECMAKE = ""
>>
>> however, when I run devtool build open62541, I get  errors about "No
>> module named six":
>>
>> | make[2]: Leaving directory
>> '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>> | Traceback (most recent call last):
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodeset_compiler.py",
>> line 27, in <module>
>> |     from nodeset import *
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodeset.py",
>> line 30, in <module>
>> |     from nodes import *
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodes.py",
>> line 21, in <module>
>> |     from datatypes import *
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/datatypes.py",
>> line 29, in <module>
>> |     import six
>> | ImportError: No module named six
>> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
>> target 'src_generated/ua_namespace0.c' failed
>> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
>> | make[2]: Leaving directory
>> '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>> | CMakeFiles/Makefile2:108: recipe for target
>> 'CMakeFiles/open62541-generator-namespace.dir/all' failed
>> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error 2
>> | make[1]: *** Waiting for unfinished jobs....
>>
>> How do I get "python-six" added as part of pythonnative?
>>
>> Giordon
>>
>> --
>> Giordon Stark
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>> --
Giordon Stark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180306/ae749f64/attachment.html>


More information about the yocto mailing list