我再ubuntu下安装OpenCV是编译的时候没有提示错误,但是在运行程序的时候提示:

2025-03-09 11:11:46
推荐回答(3个)
回答1:

简单的解释就是你的GTK+2.x要先于OpenCV安装,所以它给的解决方法是You should remove the current installation of opencv from your system; rebuild your opencv lib after installing gtk dev lib in the correct path; and reinstall the compiled opencv lib.

回答2:

你的Linux是不是没有GUI

回答3:

请按照opencv英文官网的wiki教程安装!!