{"action":"created","issue":{"url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/692","repository_url":"https://api.github.com/repos/CCExtractor/ccextractor","labels_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/692/comments","events_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/692/events","html_url":"https://github.com/CCExtractor/ccextractor/issues/692","id":208630241,"number":692,"title":"Can't build CMake project with additional libs","user":{"login":"Izaron","id":5406399,"avatar_url":"https://avatars.githubusercontent.com/u/5406399?v=3","gravatar_id":"","url":"https://api.github.com/users/Izaron","html_url":"https://github.com/Izaron","followers_url":"https://api.github.com/users/Izaron/followers","following_url":"https://api.github.com/users/Izaron/following{/other_user}","gists_url":"https://api.github.com/users/Izaron/gists{/gist_id}","starred_url":"https://api.github.com/users/Izaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Izaron/subscriptions","organizations_url":"https://api.github.com/users/Izaron/orgs","repos_url":"https://api.github.com/users/Izaron/repos","events_url":"https://api.github.com/users/Izaron/events{/privacy}","received_events_url":"https://api.github.com/users/Izaron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-18T10:15:54Z","updated_at":"2017-02-22T15:14:21Z","closed_at":null,"body":"CLion uses CMake, and I can't build it, for example, with OCR\r\nI have installed tesseract and leptonica developer libraries\r\n```\r\noption (WITH_OCR \"Build with OCR (Optical Character Recognition) feature\" OFF)\r\n```\r\nWhen I trying to change \"OFF\" to \"ON\" and clean cmake and cmake folder, I get an errors\r\n```\r\n<...>\r\ncompilation terminated.\r\n/bin/sh: -I/usr/include/leptonica: No such file or directory\r\nlib_ccx/CMakeFiles/ccx.dir/build.make:62: recipe for target 'lib_ccx/CMakeFiles/ccx.dir/__/zvbi/decoder.c.o' failed\r\ngmake[3]: *** [lib_ccx/CMakeFiles/ccx.dir/__/zvbi/decoder.c.o] Error 127\r\n/bin/sh: -I/usr/include/leptonica: No such file or directory\r\ngmake[3]: *** Waiting for unfinished jobs....\r\n<...>\r\n```\r\n\r\nI tried change code in this part:\r\n\r\n```\r\n#if (WITH_OCR)\r\n  find_package(PkgConfig)\r\n\r\n  pkg_check_modules (TESSERACT REQUIRED tesseract)\r\n  pkg_check_modules (LEPTONICA REQUIRED lept)\r\n\r\n  set (EXTRA_LIBS ${EXTRA_LIBS} ${TESSERACT_LIBRARIES})\r\n  set (EXTRA_LIBS ${EXTRA_LIBS} ${LEPTONICA_LIBRARIES})\r\n  include_directories (${TESSERACT_INCLUDE_DIRS} ${LEPTONICA_INCLUDE_DIRS})\r\n  set (CMAKE_C_FLAGS \"${CMAKE_C_FLAGS} -DENABLE_OCR\")\r\n#endif (WITH_OCR)\r\n```\r\nBut got very strange behavior - this includies and define `ENABLE_OCR` is available only in ccextractor.c file.\r\nCan anyone fix it? I would be very glad."},"comment":{"url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/comments/281697628","html_url":"https://github.com/CCExtractor/ccextractor/issues/692#issuecomment-281697628","issue_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/692","id":281697628,"user":{"login":"Izaron","id":5406399,"avatar_url":"https://avatars.githubusercontent.com/u/5406399?v=3","gravatar_id":"","url":"https://api.github.com/users/Izaron","html_url":"https://github.com/Izaron","followers_url":"https://api.github.com/users/Izaron/followers","following_url":"https://api.github.com/users/Izaron/following{/other_user}","gists_url":"https://api.github.com/users/Izaron/gists{/gist_id}","starred_url":"https://api.github.com/users/Izaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Izaron/subscriptions","organizations_url":"https://api.github.com/users/Izaron/orgs","repos_url":"https://api.github.com/users/Izaron/repos","events_url":"https://api.github.com/users/Izaron/events{/privacy}","received_events_url":"https://api.github.com/users/Izaron/received_events","type":"User","site_admin":false},"created_at":"2017-02-22T15:14:21Z","updated_at":"2017-02-22T15:14:21Z","body":"Also, still can't get out what \"STATIC\" in linker mean.\r\nAs I understand, with static libs we should get working binary without any dependencies? But with both STATIC and non-static I get in virtual machine:\r\n```\r\n./ccextractor: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory\r\n./ccextractor: error while loading shared libraries: libtesseract.so.3: cannot open shared object file: No such file or directory\r\n```\r\nCan you help me?"}}
{"actor":{"display_login":"Izaron"}}