VisualStudio.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 1. Start from readme.txt
  2. Ff you are using Oxygine All-In-One version with SDL included you could skip #2
  3. just go to any example and open it
  4. 2. There are prebuilt example solutions for VS2010+
  5. =================================================================================================
  6. - Build SDL:
  7. - Open SDL\include\SDL_config_windows.h in any text editor
  8. - Find this line:
  9. #define SDL_AUDIO_DRIVER_XAUDIO2 1
  10. - and comment it so it looks like:
  11. //#define SDL_AUDIO_DRIVER_XAUDIO2 1
  12. - Go to folder SDL\VisualC\
  13. - Open SDL.sln and build it in Release configration
  14. - Goto golder SDL\VisualC\Win32\Release\
  15. - and copy SDL2.lib, SDL2main.lib and SDL2.dll to oxygine-framework/libs
  16. - Go to oxygine-framework\examples and choose any example. For example "Demo"
  17. - Open solution located in oxygine-framework\examples\Demo\proj.win32\
  18. - Try to build Demo
  19. - Copy all dlls from oxygine-framework\oxygine\third_party\win32\dlls\
  20. and SDL2.dll from oxygine-framework/libs
  21. to oxygine-framework\examples\Demo\data\
  22. - Working directory of Demo project should point to "../data" folder (right mouse click on Demo -> project->properties->ConfigurationProperties->Debugging->WorkingDirectory)
  23. - ready! run!
  24. =================================================================================================
  25. 3. You could generate your own Solution anywhere
  26. - You need Python 2.7 installed
  27. - you need to run this script
  28. oxygine-framework\tools\gen_template.py
  29. example:
  30. python gen_template.py MyProject -t win32 -d path/to/MyProject/