TGUI Forum

General Category => Installation help => Topic started by: Feset on 10 December 2017, 15:55:24

Title: Подскажите версию для TGUI SFML 0.7.6
Post by: Feset on 10 December 2017, 15:55:24
The project on Code: Blocks. I used SFML version 2.4.2, and TGUI version 0.7.6 for MinGW TDM 4.9.2. I can create the window myself, and I can hook the interface to it. But I can not upload an image for the background, although I followed all the instructions.
Title: Re: Tell the version of SFML for TGUI 0.7.6
Post by: Feset on 10 December 2017, 15:56:39
The project on Code: Blocks. I used SFML version 2.4.2, and TGUI version 0.7.6 for MinGW TDM 4.9.2. I can create the window myself, and I can hook the interface to it. But I can not upload an image for the background, although I followed all the instructions.
Title: Re: Подскажите версию для TGUI SFML 0.7.6
Post by: texus on 10 December 2017, 16:34:42
Could you describe the problem in more detail? What are you trying to do exactly? What isn't working? What instructions are you following?
Title: Re: Подскажите версию для TGUI SFML 0.7.6
Post by: Feset on 11 December 2017, 15:03:25
Я установил на проект SFML 2.4.2  , к нему я установил TGUI 0.7.6. Все прекрасно работает, но как только я инициализирую Picture, то мне выводят сообщение о том, что он не смог загрузить изображение. Не знаю, может чего напутал в настройках компиляции. Вроде бы следовал инструкции на офф. сайте о установке предварительно скомпилированыых библеотек.
Title: Re: Подскажите версию для TGUI SFML 0.7.6
Post by: Feset on 11 December 2017, 15:03:59
Простите за Русский, но мне так удобнее.
Title: Re: Подскажите версию для TGUI SFML 0.7.6
Post by: Feset on 11 December 2017, 15:23:26
При загрузке изображения пишет "Filed  to load image "~.png". Reason : Unable to open file.".
Может я не ту версия SFML использую?
Title: Re: Подскажите версию для TGUI SFML 0.7.6
Post by: texus on 11 December 2017, 18:42:13
It means the image is not at the location where it is searching. To check that there is no problem with the image, you can try loading it from an absolute path (e.g. "C:\Users\...\image.png" instead of just "image.png" (although if there is something wrong with the image itself you would get another error).

Depending on the IDE, the image is searched next to your executable or next to your project file. I think CodeBlocks searches next to the project file. So if you load "image.png" then it will search in the project folder when running the program from CodeBlocks, while it searches next to the exe when executing the exe directly. So make sure the image is located in the right folder.
Title: Re: Подскажите версию для TGUI SFML 0.7.6
Post by: Feset on 12 December 2017, 14:37:19
Спасибо