microsoft / opencv

Open Source Computer Vision Library
opencv.org
Apache License 2.0
144 stars 92 forks source link

Contribute Python script UNIX support update #37

Closed EvgenyAgafonchikov closed 9 years ago

EvgenyAgafonchikov commented 9 years ago

This updates UNIX binaries to use relative RPATH to libraries and updates run.py to copy bin and lib folders to the same dir when performing --tests_move.

OSX support is not implemented because of technical difficulties. It looks like the most common for OSX is post build updating of the absolute paths on binaries.

Something like this should work (Checked manual way from there):

otool -l binary | grep -oE "[^ ]libopencv[^ ]*" | xargs -I % install_name_tool -change % @loader_path/../lib/<substitution of library name>

However it is difficult to get and substitute <substitution of library name> part in this command using OSX terminal utilities.

In case there are any ideas or suggestions on OSX, I can try to extend run.py move functionality for OSX too.

EvgenyAgafonchikov commented 9 years ago

Related PR: https://github.com/Itseez/opencv/pull/3943

EvgenyAgafonchikov commented 9 years ago

Closed as related PR closed w/o merging: https://github.com/Itseez/opencv/pull/3943#issuecomment-94553640