I've been trying to install and use Halide.
I installed Halide by doing the following:
I cloned the Halide repo then executed the following commands from the root of the repository.
mkdir build
cd build
cmake ..
sudo make install
After the installation finished, I created a file(test.cpp) in an unrelated directory with the following contents:
#include "Halide.h" // <~~ changing this to <Halide.h> also results in the same error
#include <stdio.h>
int main() {
return 0;
}
I try to compile it with:
gcc -g -Wall -pedantic -o test test.cpp -lHalide -lpthread -ldl -std=c++11
which gives me the following eror message:
/usr/bin/ld: cannot find -lHalide
collect2: error: ld returned 1 exit status
I also tried the following with (surprisingly; given that there's no ../include or ../bin directory) the same result:
g++ test.cpp -g -I ../include -L ../bin -lHalide -lpthread -ldl -o test -std=c++11
Edit:
I can see that I do have a file called Halide.h
under /usr/local/include/
how do I make gcc see it?