Trying to use xtensor in my project. I've successfully installed the libraries in a fresh project:
# make new project
# install xtl and xtensor
git clone https://github.com/xtensor-stack/xtl.git
cd xtl/
mkdir build
cd build
cmake ..
make install
cd ..
git clone https://github.com/xtensor-stack/xtensor.git
cd xtensor/
mkdir build
cd build
cmake ..
make install
# replicate first example from https://xtensor.readthedocs.io/en/latest/getting_started.html#first-example
g++ -Wno-psabi -I /root/Bela/projects/ml/xtensor/ -I /root/Bela/projects/ml/xtl/ render.cpp -o example
./example
which returns the expected
root@bela:~/Bela/projects/ml# ./example
{ 7., 11., 14.}
But I've been unable to get the same example to build when I drop it in the render.cpp. I'm guessing the issue is in "make parameters" where I've tried a few variations of something like this:
COMPILER=g++;CPPFLAGS=-I/root/Bela/projects/ml/xtensor/include -I/root/Bela/projects/ml/xtl/include -Wno-psabi;LDLIBS=-lxtensor -lxtl;
Any ideas?