I ran into several problems compiling OF on an RPi2 with a fresh image of Raspbian Jessie Lite (same issues on Jessie). Hope this helps people with similar issues, as these are not documented in the RPi installation guide.
First, RPI_ROOT doesn’t seem to be set, so the check for the arm version is not triggered, and it goes to look for armv7 and of course cannot find it. Then, for some reason the GST_VERSION is always set to 0.10 even though 1.0 is installed. This results in some gstreamer packages in pkg-config not being found. These can be fixed by setting the variables explicitly:
Then, it starts compiling but run into this error:
make: /opt/cross/bin/arm-linux-gnueabihf-g++: Command not found
Since I’m not cross compiling, that directory doesn’t exists. For this problem though, exporting CROSS_COMPILING=0 doesn’t seem to work, even though the variable is there. But adding it to the make command works:
make Release CROSS_COMPILING=0
After these changes, it compiles OF and and I tried a couple of projects. One thing I still haven’t figured out is that even though the OF library has been compiled, when compiling individual projects, quite a few of the OF files are recompiled. Is there anyway not to recompile them?