Build OpenCV for android NDK with relative paths

asked 2013-10-15 10:53:57 -0500

samduke474 gravatar image

updated 2013-10-15 11:45:22 -0500

I followed the instructions from here for building for linux/mac.

The output directory contains OpenCV.mk, however this uses absolute filepaths - which won't be much use after I commit to git. I had a play around with cmake manually but I couldn't find any options to get these paths to be relative.

Then I found the unix-install directory with make files that seem to have relative paths. If I used the makefiles from there instead of the ones in the parent directory, my project failed to compile. My question is is there any way to get get this build to work with relative paths right out the box?

edit retag flag offensive close merge delete