Skip to content

[build] An easy way to set up visual studio #252

@JacobGood1

Description

@JacobGood1
  1. run the default installer

  2. create a win32 console project from vs

  3. in Configuration Properties/Linker/General add C:\raylib\raylib\release\win32

  4. in Configuration Properties/Linker/Additional Dependencies add raylib.lib

  5. in Configuration Properties/VC++ Directories/Include Directories add C:\raylib\raylib\release\win32

  6. Configuration Properties/VC++ Directories/Library Directories add C:\raylib\raylib\release\win32\mingw32

  7. copy the raylib.dll from C:\raylib\raylib\release\win32\mingw32 to the vs projects folder

  8. open powershell and type cd C:\raylib\raylib\release\win32\mingw32

  9. type dumpbin /exports raylib.dll

  10. copy all the names ONLY, no numbers

  11. create a file in that same folder, C:\raylib\raylib\release\win32\mingw32, called raylib.def

  12. go into the file type EXPORTS at the top

  13. paste all the names from step 10 into the file and save the file

  14. in powershell type lib /def:C:\raylib\raylib\release\win32\mingw32\raylib.def /OUT:C:\raylib\raylib\release\win32\mingw32\raylib.lib

that is it, visual studio can now use raylib, happy hacking!

ps. maintainer, you could create a lib file for them from steps 8 to 14 and they could skip those steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions