Questions tagged [sdl-image]

SDL_image is an image file loading library. It loads images as SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV.

156 questions
1
vote
1 answer

SDL_image Out of Scope

I'm trying to get off the ground with SDL. SDL by itself works fine, I got the basic Hello World setup to work. However, trying to use SDL_image has caused me a ton of headaches. My current code (below) gives me the error 'Img_Load' was not…
0
votes
1 answer

SDL Jpeg dll not finding jpeg_calc_output_dimensions?

I'm trying to use a 64-bit application that uses SDL (and SDL Image in particular) (on Windows). The application runs, but I didn't have a 64-bit jpeg loader. SDL-Image expects a jpeg.dll, but the package I got off the IJG Website…
Chad Mourning
  • 608
  • 2
  • 12
  • 25
0
votes
1 answer

SDL_image installed, but 'SDL2/SDL_image.h' file not found

I was trying to compile a C project but the compiler says that SDL image is not installed despite the fact that SDL image is clearly installed. Output Of DNF Command: Package SDL_image-devel-1.2.12-31.fc37.x86_64 is already installed. Dependencies…
0
votes
0 answers

Procedure entry point not found when using SDL2 and SDL2_image

I get an entry point not found error when trying to use SDL2 2.26.5 x64 in conjuction with SDL2_image 2.6.3 x64, and calling IMG_Init(). include paths, linker stuff all set up like so: so everything is set up correctly afaik. The full error…
Ramster445
  • 45
  • 5
0
votes
0 answers

SDL.h: No such file or directory, SDL_image.h: No such file or directory VS Code

I am struggling with compiling my program using SDL and SDL_image libraries with MinGW. When I try to build my program I always get these errors. I've already tried two methods: manually install (this one showed me same errors but I was able to…
kurkurindd
  • 23
  • 4
0
votes
0 answers

SDL2 problems with webp animated images works with gifs but not with webp

im trying to play animated image to SDL2, my code works with animated gifs and static, if i add a static webp image works fine to, but if i add an animated webp, console gives me message fail to decode. I get the SDL2 last release with…
RFS Vieira
  • 11
  • 1
0
votes
0 answers

SDL_image fails to show WebP image - Failed to decode WEBP?

I'm trying using visual studio 2019, c++, read(show) WebP image, but nothing happens. I can open, gif, jpg, png, but not WebP I'm using visual studio 2019, added sld, sdl_image, WebP, include's, libs, and dlls's. console mesage -- Failed to decode…
RFS Vieira
  • 11
  • 1
0
votes
1 answer

Linking SDL_image using macOS

So I'm trying to create a simple 2D game engine with SDL2 and Codelite. I have already written this code and compiled it with gcc, using g++ src/*.cpp -o game -I include -L lib -lSDL2 -lSDL2_image and it didn't work. I have a lib folder containing…
Antonin
  • 69
  • 1
  • 4
0
votes
0 answers

SDL2-image won't load textures (but surfaces work) and i don't get any error message

i am making a game using SDL2, using IMG_LoadTexture() to load images, and it works fine on my main computer, but i recently acquired a new laptop, and the same code on this new machine won't load textures, but SDL doesn't give me any error…
TwilCynder
  • 33
  • 6
0
votes
1 answer

Include SDL_image in mingw build on ubuntu

I'm trying to build a windows executable for a C++ application I've made that uses SDL2, and SDL_Image. I've seemingly managed to include the SDL libraries and headers just fine, but now I'm trying to include the SDL_Image ones. The command I'm…
Nick
  • 85
  • 8
0
votes
0 answers

SDL Image "undefined reference to `IMG_LoadTexture`

I've got the following piece of code attempting to use SDL_image; #include #define SDL_MAIN_HANDLED #include #include int WIDTH = 800; int HEIGHT = 800; int main(int argc, char *argv[]) { if…
Tah
  • 41
  • 1
  • 7
0
votes
0 answers

SDL-image, cannot read png

I cannot read png in SDL, I added sdl-image library for it and tried to initialize it like on the official site, but it cannot find the library. I am constantly getting that errors. I tried to change resolutions or file types, but nothing really…
desuragi
  • 9
  • 5
0
votes
1 answer

errno 11 after initialize SDL

After initialize SDL with SDL_Init and IMG_Init i observe the code 11 on errno. It means that Resource temporarily unavailable. But i don't know why. Please help me resolve this problem. I observe the value of errno before and after…
0
votes
0 answers

How to load texture from png in sdl2 useing SDL_image.h

I am trying to load an image into a texture using SDL_image.h however whenever I try to run the line of code that uses IMG_Load("./assets/snow.png) it just crashes the program without any error messages other than exit code -1073741515. My CMake…
0
votes
0 answers

How do you include/link libraries to an executable file Eclipse c++

I am trying to distribute an executable file from a c++ project I made in eclipse. The problem is, it uses the SDL2 and SDL2 Image libraries which works fine on my computer since they are downloaded already, but when I try to run it on another…