I am posting this request for help here since the authors of extension-cpp-meson also contribute to this repo. I did the following to try to run it.
mkdir ~/cpp_tests
cd ~/cpp_tests
python3 -m venv .venv
source .venv/bin/activate
pip install torch numpy meson-python ninja
git clone https://github.com/daknuett/extension-cpp-meson.git
cd extension-cpp-meson
python -m pip install --no-build-isolation . -Cbuild-dir=build
cd
python
>>>import torch
>>>import extension_cpp
I get the following error:
Traceback (most recent call last):
File "", line 1, in
import extension_cpp
File "/home/sequoia/cpp_tests/.venv/lib/python3.13/site-packages/extension_cpp/init.py", line 3, in
from . import _C, ops
ImportError: /home/sequoia/cpp_tests/.venv/lib/python3.13/site-packages/extension_cpp/_C.cpython-313-x86_64-linux-gnu.so: undefined symbol: _ZN5torch7LibraryC1ENS0_4KindESsSt8optionalIN3c1011DispatchKeyEEPKcj
Any help in resolving this issue would be greatly appreciated!