[libcamera-devel] [RFC 1/4] Add pybind11 submodule

Tomi Valkeinen tomi.valkeinen at iki.fi
Fri Sep 18 17:46:50 CEST 2020


On 18/09/2020 18:38, Kieran Bingham wrote:

> Although,
> 
> https://github.com/mesonbuild/meson/issues/4677#issuecomment-457949493
> 
> Implies that it can be handled natively through the meson build
> system/python integrations ... Not sure I understood the right path yet:
> 
>> project('pybindtest', 'cpp', default_options : ['cpp_std=c++11',])
>> pymod = import('python')
>> py = pymod.find_installation('python3')
>> py.extension_module('example', sources : 'example.cpp', dependencies : dependency('python3'))
> 
> I'll try to explore it next week if you haven't had chance to investigate.

This doesn't work (I asked on meson irc channel), as the python module 
does not support cross-compiling.

  Tomi


More information about the libcamera-devel mailing list