You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/05/14 20:38:49 UTC
[GitHub] [incubator-mxnet] rajkinra23 commented on issue #13288: OpenCV 4.0 Compatibility
rajkinra23 commented on issue #13288:
URL: https://github.com/apache/incubator-mxnet/issues/13288#issuecomment-628874551
> I still have linking errors in creating `bin/im2rec` with OpenCV 4.0.1 (MXNet HEAD: [09ba8be](https://github.com/apache/incubator-mxnet/commit/09ba8be4be36135e2a8d6c439313f5eed729d4bc)), mostly from not able to find `cv::String::allocate`, `cv::String::deallocate`, and `cv::error`. OpenCV 4 has moved to `std::string` so there are no methods of `allocate` or `deallocate`.
>
> ```
> (cd cpp-package/scripts; python OpWrapperGenerator.py mxnet/lib/libmxnet.so)
> g++ -o bin/im2rec ... -L/usr/local/lib -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc -lopencv_core
> Traceback (most recent call last):
> File "OpWrapperGenerator.py", line 432, in <module>
> raise(e)
> File "OpWrapperGenerator.py", line 426, in <module>
> f.write(patternStr % ParseAllOps())
> File "OpWrapperGenerator.py", line 320, in ParseAllOps
> cdll.libmxnet = cdll.LoadLibrary(sys.argv[1])
> File "~/anaconda3/lib/python3.6/ctypes/__init__.py", line 426, in LoadLibrary
> return self._dlltype(name)
> File "~/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
> self._handle = _dlopen(self._name, mode)
> OSError: mxnet/lib/libmxnet.so: undefined symbol: _ZN2cv6String8allocateEm
> cpp-package/cpp-package.mk:39: recipe for target 'cpp-package/include/mxnet-cpp/op.h' failed
> make: *** [cpp-package/include/mxnet-cpp/op.h] Error 1
> ...
> ```
>
> The OpenCV 4 libraries have been installed to `/usr/local/lib`.
+1, im having the exact same problem here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org