{"action":"created","issue":{"url":"https://api.github.com/repos/opencv/opencv/issues/10956","repository_url":"https://api.github.com/repos/opencv/opencv","labels_url":"https://api.github.com/repos/opencv/opencv/issues/10956/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/10956/comments","events_url":"https://api.github.com/repos/opencv/opencv/issues/10956/events","html_url":"https://github.com/opencv/opencv/issues/10956","id":300894994,"number":10956,"title":"Compiling OpenCV3.4.1 with Java module failed (attached workaround)","user":{"login":"songday","id":209001,"avatar_url":"https://avatars1.githubusercontent.com/u/209001?v=4","gravatar_id":"","url":"https://api.github.com/users/songday","html_url":"https://github.com/songday","followers_url":"https://api.github.com/users/songday/followers","following_url":"https://api.github.com/users/songday/following{/other_user}","gists_url":"https://api.github.com/users/songday/gists{/gist_id}","starred_url":"https://api.github.com/users/songday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songday/subscriptions","organizations_url":"https://api.github.com/users/songday/orgs","repos_url":"https://api.github.com/users/songday/repos","events_url":"https://api.github.com/users/songday/events{/privacy}","received_events_url":"https://api.github.com/users/songday/received_events","type":"User","site_admin":false},"labels":[{"id":9731370,"url":"https://api.github.com/repos/opencv/opencv/labels/bug","name":"bug","color":"fc2929","default":true},{"id":241025032,"url":"https://api.github.com/repos/opencv/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed","default":false},{"id":241029369,"url":"https://api.github.com/repos/opencv/opencv/labels/category:%20java%20bindings","name":"category: java bindings","color":"ededed","default":false},{"id":320837063,"url":"https://api.github.com/repos/opencv/opencv/labels/incomplete","name":"incomplete","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-02-28T05:19:12Z","updated_at":"2018-03-01T06:44:52Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.\r\nIf you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).\r\n\r\nThis is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.\r\n-->\r\n\r\n##### System information (version)\r\n<!-- Example\r\n- OpenCV => 3.1\r\n- Operating System / Platform => Windows 64 Bit\r\n- Compiler => Visual Studio 2015\r\n-->\r\n- OpenCV => 3.4.1\r\n- Operating System / Platform => CentOS 7 64 Bit\r\n- Compiler => GCC 4.8.5\r\n\r\n##### Detailed description\r\n\r\n<!-- your description -->\r\n\r\nCompiling OpenCV 3.4.1 from source with Java module\r\n\r\nOccurred:\r\nTraceback (most recent call last):\r\n  File \"/root/opencv/sources/modules/java/generator/../generator/gen_java.py\", line 1094, in <module>\r\n    copy_java_files(java_files_dir, target_path)\r\n  File \"/root/opencv/sources/modules/java/generator/../generator/gen_java.py\", line 1043, in copy_java_files\r\n    package_path = 'org/opencv/' + module\r\nNameError: global name 'module' is not defined\r\nmake[2]: *** [CMakeFiles/dephelper/gen_opencv_java_source] Error 1\r\nmake[1]: *** [modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n\r\nWorkaround:\r\nedit /root/opencv/sources/modules/java/generator/../generator/gen_java.py\r\nchange line 1029 from:\r\nre_package = re.compile(r'^package +(.+);$')\r\nto\r\nre_package = re.compile(r'^package +(.+);')\r\n\r\n<!-- to add code example fence it with triple backticks and optional file extension\r\n    ```.cpp\r\n    // C++ code example\r\n    ```\r\n or attach as .txt or .zip file\r\n-->"},"comment":{"url":"https://api.github.com/repos/opencv/opencv/issues/comments/369491672","html_url":"https://github.com/opencv/opencv/issues/10956#issuecomment-369491672","issue_url":"https://api.github.com/repos/opencv/opencv/issues/10956","id":369491672,"user":{"login":"songday","id":209001,"avatar_url":"https://avatars1.githubusercontent.com/u/209001?v=4","gravatar_id":"","url":"https://api.github.com/users/songday","html_url":"https://github.com/songday","followers_url":"https://api.github.com/users/songday/followers","following_url":"https://api.github.com/users/songday/following{/other_user}","gists_url":"https://api.github.com/users/songday/gists{/gist_id}","starred_url":"https://api.github.com/users/songday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songday/subscriptions","organizations_url":"https://api.github.com/users/songday/orgs","repos_url":"https://api.github.com/users/songday/repos","events_url":"https://api.github.com/users/songday/events{/privacy}","received_events_url":"https://api.github.com/users/songday/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T06:44:52Z","updated_at":"2018-03-01T06:44:52Z","author_association":"NONE","body":"Downloaded opencv-3.4.1-vc14_vc15.exe on releases pages manually."}}
{"actor":{"display_login":"songday"}}