git clone --recursive https://github.com/Neizvestnyj/python_c_plus_plus
cd python_c_plus_plus
python setup.py install
or
pip install https://github.com/Neizvestnyj/python_c_plus_plus/archive/master.zip
How use buildozer and python for android
Tested on this p4a branch and on this buildozer branch
Move recipes/<platform>/py_c_plus_plus_examples
to
<AppFolder>/.buildozer/android/platform/python-for-android/pythonforandroid/recipes
buildozer.spec
requirements = kivy==2.0.0, py_c_plus_plus_examples
buildozer android debug
from py_c_plus_plus_examples import c_date, c_trig
date = c_date.PyDate(1997, 31, 12)
date.print_all()
print(date.getCurrentDate())
print(f'sinh: {c_trig.py_sinh_impl(2.0)}')
print(f'cosh: {c_trig.py_cosh_impl(2.0)}')
print(f'tanh: {c_trig.py_tanh_impl(2.0)}')
The project was created so that the dlib library could be used in
p4a, using a module that uses c++
functions from this library.