{"action":"closed","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5662","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5662/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5662/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5662/events","html_url":"https://github.com/Itseez/opencv/issues/5662","id":116616269,"number":5662,"title":"Static OpenCV doesn't read LZW TIFFs","user":{"login":"csparker247","id":1434526,"avatar_url":"https://avatars.githubusercontent.com/u/1434526?v=3","gravatar_id":"","url":"https://api.github.com/users/csparker247","html_url":"https://github.com/csparker247","followers_url":"https://api.github.com/users/csparker247/followers","following_url":"https://api.github.com/users/csparker247/following{/other_user}","gists_url":"https://api.github.com/users/csparker247/gists{/gist_id}","starred_url":"https://api.github.com/users/csparker247/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csparker247/subscriptions","organizations_url":"https://api.github.com/users/csparker247/orgs","repos_url":"https://api.github.com/users/csparker247/repos","events_url":"https://api.github.com/users/csparker247/events{/privacy}","received_events_url":"https://api.github.com/users/csparker247/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/affected:%20master","name":"affected: master","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:%20highgui-images","name":"category: highgui-images","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"A38700"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-12T18:55:17Z","updated_at":"2016-01-21T14:36:48Z","closed_at":"2016-01-21T14:36:48Z","body":"I've been attempting to build a static version of OpenCV on OSX 10.10 and have been having trouble reading LZW compressed TIFF images using imread. Specifically, the resulting Mat is empty (null data member). Uncompressed TIFFs read with no problems, and a dynamically built OpenCV also shows no problems.\r\n\r\nI used the following command to configure OpenCV:\r\n`cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release ..`\r\n\r\nIf I remove the BUILD_SHARED_LIBS bit from the configuration, the LZW TIFFs are read correctly. Likewise, the homebrew-science version of OpenCV has no problems reading them. Out of curiosity, I attempted to use an external, statically built version of libtiff instead of the OpenCV provided one, but this did not change the behavior.\r\n\r\nThis problem exists for both OpenCV 2.4.11 and 3.0.0. Am I missing something in my configuration or have I stumbled onto a bug?"}}