我说要使用 QTcreator,对于我的应用程序,我必须使用 CImg.h 来“播放”一些图像,但是当我尝试加载一些图像时,会出现此错误:
"[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to open file 'image.jpg'.
terminate called after throwing an instance of 'cimg_library::CImgIOException'
what(): [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to open file 'image.jpg' "
void MainWindow::on_pushButton_4_clicked()
{
cimg_library::CImg<unsigned char> img01("image.jpg");
img01.display("image");
}
我已经安装了 ImageMagick 但没有解决。有人可以帮助我吗?
(我使用的是最新版本的 Fedora。)