libsdl-image.md

Thu, 08 Apr 2021 14:18:30 +0200

author
David Demelier <markand@malikania.fr>
date
Thu, 08 Apr 2021 14:18:30 +0200
changeset 33
fa3b70c5e686
parent 23
eb65d65a9828
permissions
-rw-r--r--

libsdl-image: update to 2.0.5

Build libsdl-image
==================

Version:    2.0.5
Date:       20210408

Dependencies
------------

- libsdl
- libpng
  - libz

Download
--------

- https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.zip

Configure
---------

1. Remove VisualC/external directory,
2. Open VisualC/SDL_image.sln,
3. Remove showimage project,
4. Remove x64, x86 from SDL2_image project
4. Select Release or Debug and x64 Visual Studio configuration
5. Open SDL2_image properties
  5.1 C/C++ -> General -> Additional Include Directories
    5.1.1 Clear old values
    5.1.2 Add C:\pkg\vs\<release|debug>\include\SDL2
    5.1.3 Add C:\pkg\vs\<release|debug>\include
  5.2 C/C++ -> Preprocessor -> Preprocessor Definitions
    5.2.1 Remove all LOAD_* values and keep LOAD_PNG and add DLL_EXPORT
  5.3 Linker -> General -> Additional Library Directories
    5.3.1 Set to C:\pkg\vs\<release|debug>\lib
  5.4 Linker -> Input -> Additional Dependencies
    5.4.1 (Debug) Set to SDL2d.lib libpng16d.lib
    5.4.2 (Release) Set to SDL2.lib libpng16.lib

Build
-----

1. Press F7
2. Copy SDL_image.h to C:\pkg\vs\<release|debug>\include\SDL2

Debug

1. Copy VisualC\x64\Debug\SDL2_image.dll to C:\pkg\vs\debug\bin
2. Copy VisualC\x64\Debug\SDL2_image.pdb to C:\pkg\vs\debug\bin
3. Copy VisualC\x64\Debug\SDL2_image.lib to C:\pkg\vs\debug\lib

Release

1. Copy VisualC\x64\Release\SDL2_image.dll to C:\pkg\vs\release\bin
3. Copy VisualC\x64\Release\SDL2_image.lib to C:\pkg\vs\release\lib

mercurial