{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-opencv/ruby-opencv/issues/66","repository_url":"https://api.github.com/repos/ruby-opencv/ruby-opencv","labels_url":"https://api.github.com/repos/ruby-opencv/ruby-opencv/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/ruby-opencv/ruby-opencv/issues/66/comments","events_url":"https://api.github.com/repos/ruby-opencv/ruby-opencv/issues/66/events","html_url":"https://github.com/ruby-opencv/ruby-opencv/issues/66","id":71503956,"number":66,"title":"Do not support windows with opencv2.4","user":{"login":"WoolenWang","id":3388253,"avatar_url":"https://avatars.githubusercontent.com/u/3388253?v=3","gravatar_id":"","url":"https://api.github.com/users/WoolenWang","html_url":"https://github.com/WoolenWang","followers_url":"https://api.github.com/users/WoolenWang/followers","following_url":"https://api.github.com/users/WoolenWang/following{/other_user}","gists_url":"https://api.github.com/users/WoolenWang/gists{/gist_id}","starred_url":"https://api.github.com/users/WoolenWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WoolenWang/subscriptions","organizations_url":"https://api.github.com/users/WoolenWang/orgs","repos_url":"https://api.github.com/users/WoolenWang/repos","events_url":"https://api.github.com/users/WoolenWang/events{/privacy}","received_events_url":"https://api.github.com/users/WoolenWang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-28T06:57:50Z","updated_at":"2016-06-20T17:46:03Z","closed_at":null,"body":"When i add the opencv dev lib to path for example \r\nE:\\ruby\\opencv_2.4\\opencv\\build\\x86\\vc10\\bin\r\n\r\nand then i try cmd : opencv_createsamples.exe it print out the basic info like \r\nC:\\Users\\Administrator>opencv_createsamples.exe\r\nUsage: opencv_createsamples.exe\r\n  [-info <collection_file_name>]\r\n  [-img <image_file_name>]\r\n  [-vec <vec_file_name>]\r\n  [-bg <background_file_name>]\r\n  [-num <number_of_samples = 1000>]\r\n  [-bgcolor <background_color = 0>]\r\n  [-inv] [-randinv] [-bgthresh <background_color_threshold = 80>]\r\n  [-maxidev <max_intensity_deviation = 40>]\r\n  [-maxxangle <max_x_rotation_angle = 1.100000>]\r\n  [-maxyangle <max_y_rotation_angle = 1.100000>]\r\n  [-maxzangle <max_z_rotation_angle = 0.500000>]\r\n  [-show [<scale = 4.000000>]]\r\n  [-w <sample_width = 24>]\r\n  [-h <sample_height = 24>]\r\n  [-pngoutput]\r\n\r\nand then i try to gem install ruby-opencv it turn out  fail and the output is like \r\n\r\nextconf.rb:22:in `initialize': No such file or directory - /usr/local/include/opencv2/core/version.hpp (Errno::ENOENT)\r\n        from extconf.rb:22:in `open'\r\n        from extconf.rb:22:in `cv_version_suffix'\r\n        from extconf.rb:53:in `<main>'\r\n\r\ncheck the extconf.rb it write the dir_config with dir_config(\"libxml2\", \"/usr/include\", \"/usr/lib\")\r\nthis turn out to fail when try  open(File.expand_path(File.join(incdir, 'opencv2','core','version.hpp')), 'r') { |f|\r\n\r\nafter i fix the extconf.rb with my own opencv env, it can success generate makfile and success make\r\n\r\nplease fix to adjust windows platform so that we can use this usefull gem, thanks\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-opencv/ruby-opencv/issues/comments/227215822","html_url":"https://github.com/ruby-opencv/ruby-opencv/issues/66#issuecomment-227215822","issue_url":"https://api.github.com/repos/ruby-opencv/ruby-opencv/issues/66","id":227215822,"user":{"login":"linyuansen","id":2937516,"avatar_url":"https://avatars.githubusercontent.com/u/2937516?v=3","gravatar_id":"","url":"https://api.github.com/users/linyuansen","html_url":"https://github.com/linyuansen","followers_url":"https://api.github.com/users/linyuansen/followers","following_url":"https://api.github.com/users/linyuansen/following{/other_user}","gists_url":"https://api.github.com/users/linyuansen/gists{/gist_id}","starred_url":"https://api.github.com/users/linyuansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyuansen/subscriptions","organizations_url":"https://api.github.com/users/linyuansen/orgs","repos_url":"https://api.github.com/users/linyuansen/repos","events_url":"https://api.github.com/users/linyuansen/events{/privacy}","received_events_url":"https://api.github.com/users/linyuansen/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T17:46:03Z","updated_at":"2016-06-20T17:46:03Z","body":"lysc6@lysc6-PC MINGW64 /d/lysc6/Desktop\r\n$ gem install ruby-opencv -- --with-opencv-include=D:/gsoft/opencv/build/includ\r\ne --with-opencv-lib=D:/gsoft/opencv/build/x64/vc11/lib\r\nBuilding native extensions with: '--with-opencv-include=D:/gsoft/opencv/build/in\r\nclude --with-opencv-lib=D:/gsoft/opencv/build/x64/vc11/lib'\r\nThis could take a while...\r\nERROR:  Error installing ruby-opencv:\r\n        ERROR: Failed to build gem native extension.\r\n\r\n    D:/Ruby22-x64/bin/ruby.exe extconf.rb --with-opencv-include=D:/gsoft/opencv/\r\nbuild/include --with-opencv-lib=D:/gsoft/opencv/build/x64/vc11/lib\r\n>> Check the required libraries...\r\nchecking for main() in -lmsvcrt... yes\r\nchecking for main() in -lopencv_calib3d2413... yes\r\nchecking for main() in -lopencv_contrib2413... yes\r\nchecking for main() in -lopencv_core2413... yes\r\nchecking for main() in -lopencv_features2d2413... yes\r\nchecking for main() in -lopencv_flann2413... yes\r\nchecking for main() in -lopencv_highgui2413... yes\r\nchecking for main() in -lopencv_imgproc2413... yes\r\nchecking for main() in -lopencv_legacy2413... yes\r\nchecking for main() in -lopencv_ml2413... yes\r\nchecking for main() in -lopencv_objdetect2413... yes\r\nchecking for main() in -lopencv_video2413... yes\r\nchecking for main() in -lopencv_photo2413... yes\r\nchecking for main() in -lopencv_gpu2413... yes\r\nchecking for main() in -lopencv_nonfree2413... yes\r\n>> Check the required headers...\r\nchecking for opencv2/core/core_c.h... yes\r\nchecking for opencv2/core/core.hpp... yes\r\nchecking for opencv2/imgproc/imgproc_c.h... yes\r\nchecking for opencv2/imgproc/imgproc.hpp... yes\r\nchecking for opencv2/video/tracking.hpp... yes\r\nchecking for opencv2/features2d/features2d.hpp... yes\r\nchecking for opencv2/flann/flann.hpp... yes\r\nchecking for opencv2/calib3d/calib3d.hpp... yes\r\nchecking for opencv2/objdetect/objdetect.hpp... yes\r\nchecking for opencv2/legacy/compat.hpp... yes\r\nchecking for opencv2/legacy/legacy.hpp... yes\r\nchecking for opencv2/highgui/highgui_c.h... yes\r\nchecking for opencv2/highgui/highgui.hpp... yes\r\nchecking for opencv2/photo/photo.hpp... yes\r\nchecking for opencv2/nonfree/nonfree.hpp... yes\r\nchecking for stdarg.h... yes\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\n'make' 不是内部或外部命令，也不是可运行的程序\r\n或批处理文件。\r\n\r\nmake \"DESTDIR=\"\r\n'make' 不是内部或外部命令，也不是可运行的程序\r\n或批处理文件。\r\n\r\nmake failed, exit code 1\r\n\r\nGem files will remain installed in D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ruby-o\r\npencv-0.0.16 for inspection.\r\nResults logged to D:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0\r\n/ruby-opencv-0.0.16/gem_make.out"}}
{"actor":{"display_login":"linyuansen"}}