linux - QTcreator + Cimg.h = Error opening .jpg .png -


i'm stating use qtcreator , application i'm having use cimg.h 'play' images, when try load image error appear:

"[cimg] *** cimgioexception *** [instance(0,0,0,0,(nil),non-shared)] cimg<unsigned char>::load(): failed open file 'image.jpg'. terminate called after throwing instance of 'cimg_library::cimgioexception' what():  [instance(0,0,0,0,(nil),non-shared)] cimg<unsigned char>::load(): failed open file 'image.jpg' "    void mainwindow::on_pushbutton_4_clicked() {      cimg_library::cimg<unsigned char> img01("image.jpg");     img01.display("image");   } 

i had installed imagemagick didn't solved. can me please?

(i'm using newest version of fedora.)

following tip of @frankosterfeld used full path , image opened! thnks guys!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -