IMG_Load on Linux |
MrTAToad
|
To start with, your E drive won't exist on Linux - nor any other drive letter...
|
|||||||||||
|
MrTAToad
|
In addition, file names are case sensitive. Pathing may be better using "./xxx" instead of just "/xxx"
|
|||||||||||
|
Thanks for reply |
mister bean
|
MrTAToad. The problem is not the way I am using the letter's call. Because other images can be loaded even on Linux.
The only problem is that, not every image displays on Linux. The same image which displays on windows doesn't display on Linux. Eg: if I try to use the "Rock.jpg" on Linux it doesn't show, but on Windows it does. Even if I spell all the letters in case sensitive. It looks like the pallet on Linux is not able to allocate all needed memory to display the image. I don't know what to do anymore. |
|||||||||||
|
MrTAToad
|
Mister Bean. The linux version is behind on the Windows version - its possible there is a bug, which can only be fixed by downloading the source and compiling it yourself.
Or you could try changing graphics formats. |
|||||||||||
|
Do you mean the sdl2 source? |
mister bean
|
MrTAToad, Is there a bug in the SDL2's .so library?
Do I have to download the source and construct it through make? Or it is a problem in the SDL2_image? |
|||||||||||
|
MrTAToad
|
I have no idea what problems the Linux version had - haven't used it yet. It could be to do with SDL2, but more likely to do with SDL2_Imahlge
|
|||||||||||
|