SDL set up with VC++ 2008

The set up is quite similar with Open CV setup (actually many SDK setup is similar). 

  1. extract the package to some folder, such as D:\SDLDEV\*
  2. add path to Visual C++ Tools->Options->Projects and Solutions
    1. Library Files
      1. add D:\SDLDEV\SDL_image-1.2.7\lib  and D:\SDLDEV\SDL-1.2.13\lib
    2. Include Files
      1. add D:\SDLDEV\SDL_image-1.2.7\include and D:\SDLDEV\SDL-1.2.13\include
  3. When create a new project, add SDL.lib SDLmain.lib to project->Configuration Properties->Linker->Input => additional dependencies.
  4. Copy sdl.dll to exe folder.
  5. If it does not work, check if you have used other lib in your program, add them. This short instruction only use two lib, SDL lib and SDL_image lib, for demo.

Related Post

  • No Related Posts

No comments yet. Be the first.