{"action":"created","issue":{"url":"https://api.github.com/repos/kyamagu/mexopencv/issues/249","repository_url":"https://api.github.com/repos/kyamagu/mexopencv","labels_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/249/comments","events_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/249/events","html_url":"https://github.com/kyamagu/mexopencv/issues/249","id":156069350,"number":249,"title":"ld: library not found for -lippicv on Mac EL Capitan","user":{"login":"mzahana","id":8803307,"avatar_url":"https://avatars.githubusercontent.com/u/8803307?v=3","gravatar_id":"","url":"https://api.github.com/users/mzahana","html_url":"https://github.com/mzahana","followers_url":"https://api.github.com/users/mzahana/followers","following_url":"https://api.github.com/users/mzahana/following{/other_user}","gists_url":"https://api.github.com/users/mzahana/gists{/gist_id}","starred_url":"https://api.github.com/users/mzahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzahana/subscriptions","organizations_url":"https://api.github.com/users/mzahana/orgs","repos_url":"https://api.github.com/users/mzahana/repos","events_url":"https://api.github.com/users/mzahana/events{/privacy}","received_events_url":"https://api.github.com/users/mzahana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-20T23:35:05Z","updated_at":"2016-05-21T07:57:38Z","closed_at":null,"body":"I am trying to compile mexopencv from the terminal. I have \r\n* Mac OS X 10.11.14 El Capitan \r\n* MATLAB R2015a\r\n\r\n\r\nI get the following error\r\n```sh\r\n/Applications/MATLAB_R2015a.app//bin/mex -largeArrayDims -cxx -Iinclude -I/usr/local/include/opencv -I/usr/local/include -output +cv/AGAST src/+cv/AGAST.cpp -Llib -lMxArray -L/usr/local/lib -lopencv_shape -lopencv_stitching -lopencv_objdetect -lopencv_superres -lopencv_videostab -lippicv -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_core  \r\nBuilding with 'Xcode Clang++'.\r\nld: library not found for -lippicv\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n\r\n```\r\n\r\nWhat could be the problem?\r\n\r\nI also tried the opencv support package from Mathworks, and when I run `mexOpenCV mycode.cpp`, I get the following error,\r\n```sh\r\nBuilding with 'Xcode Clang++'.\r\nError using mexOpenCV (line 120)\r\nUndefined symbols for architecture\r\nx86_64:\r\n  \"cv::imdecode(cv::_InputArray\r\n  const&, int)\", referenced from:\r\n      _mexFunction in decodeUDPimg.o\r\nld: symbol(s) not found for\r\narchitecture x86_64\r\nclang: error: linker command failed\r\nwith exit code 1 (use -v to see\r\ninvocation)\r\n````\r\n\r\nMy code has the `imdecode()` function, and if I remove it, the code compiles successfully!\r\n\r\nAny hints?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/kyamagu/mexopencv/issues/comments/220764793","html_url":"https://github.com/kyamagu/mexopencv/issues/249#issuecomment-220764793","issue_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/249","id":220764793,"user":{"login":"mzahana","id":8803307,"avatar_url":"https://avatars.githubusercontent.com/u/8803307?v=3","gravatar_id":"","url":"https://api.github.com/users/mzahana","html_url":"https://github.com/mzahana","followers_url":"https://api.github.com/users/mzahana/followers","following_url":"https://api.github.com/users/mzahana/following{/other_user}","gists_url":"https://api.github.com/users/mzahana/gists{/gist_id}","starred_url":"https://api.github.com/users/mzahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzahana/subscriptions","organizations_url":"https://api.github.com/users/mzahana/orgs","repos_url":"https://api.github.com/users/mzahana/repos","events_url":"https://api.github.com/users/mzahana/events{/privacy}","received_events_url":"https://api.github.com/users/mzahana/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T07:57:38Z","updated_at":"2016-05-21T07:57:38Z","body":"@kyamagu I installed `opencv3` as you mentioned. When I try to compile mexopencv using the options you mentioned, it gives the following error:\r\n```sh\r\nmake: /usr/local/matlab/bin/mexext: Command not found\r\nMakefile:77: *** \"MEX extension not set\".  Stop.\r\n```\r\n\r\nIf I add manually MATLAB path:\r\n```sh\r\nLDFLAGS=-L/usr/local/Cellar/opencv3/3.1.0_3/share/OpenCV/3rdparty/lib/ PKG_CONFIG_OPENCV=opencv3 MATLABDIR=/Applications/MATLAB_R2015a.app make -j4\r\n```\r\n\r\nI get the following error:\r\n```sh\r\nMakefile:97: *** \"OpenCV 3.x package was not found in the pkg-config search path\".  Stop.\r\n```\r\n\r\nAny hints?"}}
{"actor":{"display_login":"mzahana"}}