{"action":"opened","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4746","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4746/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4746/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4746/events","html_url":"https://github.com/Itseez/opencv/issues/4746","id":97432265,"number":4746,"title":"opencv.pc links to wrong TBB","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/affected:%202.4","name":"affected: 2.4","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-27T10:24:44Z","updated_at":"2015-07-27T10:24:44Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/3691\r\n```\n|| Thorsten Ball on 2014-05-14 06:17\n|| Priority: Normal\n|| Affected: 2.4.9 (latest release)\n|| Category: build/install\n|| Tracker: Bug\n|| Difficulty: \n|| PR: \n|| Platform: x64 / Mac OSX\n```\n\nopencv.pc links to wrong TBB\n-----------\n```\nOn OS X 10.9.2 the generated `opencv.pc` does not link to the correct TBB library.\r\n\r\n@# Package Information for pkg-config\r\n\r\nprefix=/usr/local\r\nexec_prefix=${prefix}\r\nlibdir=\r\nincludedir_old=${prefix}/include/opencv\r\nincludedir_new=${prefix}/include\r\n\r\nName: OpenCV\r\nDescription: Open Source Computer Vision Library\r\nVersion: 2.4.9\r\nLibs:  ${exec_prefix}/lib/libopencv_calib3d.dylib ${exec_prefix}/lib/libopencv_contrib.dylib ${exec_prefix}/lib/libopencv_core.dylib ${exec_prefix}/lib/libopencv_features2d.dylib ${exec_prefix}/lib/libopencv_flann.dylib ${exec_prefix}/lib/libopencv_gpu.dylib ${exec_prefix}/lib/libopencv_highgui.dylib ${exec_prefix}/lib/libopencv_imgproc.dylib ${exec_prefix}/lib/libopencv_legacy.dylib ${exec_prefix}/lib/libopencv_ml.dylib ${exec_prefix}/lib/libopencv_nonfree.dylib ${exec_prefix}/lib/libopencv_objdetect.dylib ${exec_prefix}/lib/libopencv_ocl.dylib ${exec_prefix}/lib/libopencv_photo.dylib ${exec_prefix}/lib/libopencv_stitching.dylib ${exec_prefix}/lib/libopencv_superres.dylib ${exec_prefix}/lib/libopencv_ts.a ${exec_prefix}/lib/libopencv_video.dylib ${exec_prefix}/lib/libopencv_videostab.dylib -llibtbb.dylib\r\nCflags: -I${includedir_old} -I${includedir_new}@\r\n\r\nI installed OpenCV 2.4.9 with Homebrew on OS X with TBB enabled. Using `pkg-config --libs --cflags opencv` results in an error because `libtbb.dylib` cannot be found. The problem is that the file exists (`/usr/local/lib/libtbb.dylib`) but the `Libs:` line should use `-ltbb` instead of `-llibtbb.dylib`. The first one works, the second fails with `ld: library not found for -llibtbb.dylib clang: error: linker command failed with exit code 1`.\n```\n\nHistory\n-------\n##### Vladislav Vinogradov on 2014-05-14 06:26\n```\nAlexander, could you check the issue?\n-   Assignee set to Alexander Smorkalov\n-   Status changed from New to Open\n-   Category set to build/install\n```\n##### Thorsten Ball on 2014-05-14 07:22\n```\nI'm happy to provide more information. If you need anything, just tell me.\n```"}}