-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OSX] Undefined symbols for architecture x86_64: #194
Comments
how is your opencv installed? by port or brew or build yourself? if by port, check if you have archs='x86_64' installed: port -v installed if not, run: port install opencv +universal |
It was by anaconda: |
That's really strange. OpenCV dylibs are fetched but just some functions are missing. I'm not really familiar with Mac, but what's the output of nm -D --defined-only <opencv-dir-that-you-give-to-luarocks>/lib/libopencv_imgcodecs.3.1.dylib | grep im ? |
It is not a path issue, rather than missing libs or an opencv lib binary variant (32-bit vs 64-bit) issue:
file /libopencv_objdetect.dylib you should see something like these: file libopencv_objdetect.dylib if you see "32-bit" and "i386", then you have the wrong binary variant, then install the 64-bit variant. hope this helps. |
Hi @txizzle , i am currently facing the same exact problem as you. I have installed opencv 3.1 via conda install -c menpo opencv, and have made sure that the version is osx-64: opencv3-3.1.0. However, Im also facing the problem of Undefined symbols for architecture x86_64. Can i check with you if you have solved this installation problem? or if there is anyone who can help me with this problem, i truly appreciate it. Installation of opencv3: Package Plan added / updated specs: The following NEW packages will be INSTALLED: libblas conda-forge/osx-64::libblas-3.8.0-14_openblas Proceed ([y]/n)? y Preparing transaction: done Error when installing lua cv |
Hi,
I have installed OpenCV 3.1 and Torch7. However, when I try to run
luarocks install cv
, it fails onlibobjdetect.dylib
with error:Alternatively, I can clone into this repository and then run:
BUILD_CUDA=OFF
and thenluarocks make
, and the installation gets a little further, but still fails atlibphoto.dylib
andliboptflow.dylib
with error:The text was updated successfully, but these errors were encountered: