cv::imshow("image", image);
opencv无法使用image show,工程可以正常构建生成可执行文件,安装gtk无效。 ,运行时报错The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
配置信息
et_project("Rasterizer")
add_rules("mode.debug", "mode.release")
add_requires("opencv",{configs={with_gtk = true}})
add_requires("eigen")
set_languages("cxx17")
if is_os("windows") then
add_defines("_CRT_SECURE_NO_WARNINGS")
add_cxflags("/utf-8")
end
target("Rasterizer")
set_kind("binary")
add_packages("opencv", "eigen")
add_files(".cpp")
add_headerfiles(".hpp")
set_rundir("$(projectdir)")