Results 1 to 4 of 4

Thread: Linker Error with SDL2.0

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Yes, seems that libsdl2-image-dev is missing.
    Or wait a minute, I think I had to change on Ubuntu the header of sdl2_image.pas.
    If it looks like that
    Code:
     {$IFDEF UNIX}
        {$IFDEF DARWIN}
          IMG_LibName = 'libSDL_image-2.dylib';
        {$ELSE}
          {$IFDEF FPC}
            IMG_LibName = 'libSDL2_image.so';
          {$ELSE}
            IMG_LibName = 'libSDL2_image-2.so.0';
          {$ENDIF}
        {$ENDIF}
      {$ENDIF}
    everything should be allright.
    Best regards,
    Cybermonkey

  2. #2
    Quote Originally Posted by Cybermonkey View Post
    Yes, seems that libsdl2-image-dev is missing.
    Or wait a minute, I think I had to change on Ubuntu the header of sdl2_image.pas.
    If it looks like that
    Code:
     {$IFDEF UNIX}
        {$IFDEF DARWIN}
          IMG_LibName = 'libSDL_image-2.dylib';
        {$ELSE}
          {$IFDEF FPC}
            IMG_LibName = 'libSDL2_image.so';
          {$ELSE}
            IMG_LibName = 'libSDL2_image-2.so.0';
          {$ENDIF}
        {$ENDIF}
      {$ENDIF}
    everything should be allright.
    That was it, thank you! <3

    Seems like they changed the file name, or someone wasn't paying attention.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •