Closed virtuald closed 5 years ago
I was wondering if you might be able to help me install on Mac OSX 10.14.2, or atleast tell me that it's not possible at the moment.
Installed on system: clang: Apple LLVM version 10.0.0 (clang-1000.10.44.4) opencv: 4.0.1 and 2.4.13.7_2 python: 3.7 numpy: 1.15.4
I get slightly different errors when I use opencv 4 vs opencv 2. It always fails compiling ndarray_converter.cpp.
Here is the error log with opencv4 and opencv2 respectively: install_fail_opencv4.log install_fail_opencv2.log
Any help would be appreciated!
OpenCV 4 is not supported: #39. OpenCV 2 only supports Python 2.
robotpy-cscore is (currently) only compatible with OpenCV 3.
Ah, this was a suspicion of mine, but there is no opencv3 package on Homebrew. I am starting to think I'll have to compile from source. Do you have any resource that steps me through that process?
Edit: I figured how to compile. For reference for other noobs like me:
Now, when I tried installing with 'pip3 install robotpy-cscore', it said it could not find the file 'cscore_src/wpiutil/src/main/native/libuv/unix/bsd-ifaddrs.cpp'. To fix this, I downloaded robotpy-cscore to my machine, downloaded cscore_src, and downloaded pybind11 (linked to from this github repo). Then, I ran 'pip3 install .' inside the folder 'robotpy-cscore'.
You could have done 'git submodule init' + 'git submodule update' as ~noted~ should be in the README.
Thanks for the quick responses. This project is awesome, I'd like to say thank you for all the hard work.
FYI it seems the Homebrew folk have come to their senses and have an opencv@3
package now.
Looks like the source package on PyPI actually builds now.
Must be something in pybind11's setup script.