VisualStudio.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. 1. Start from readme.txt
  2. If you are using the Oxygine All-In-One version with SDL included, you can skip #2
  3. and just go to any example and open it right away
  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. - Go to folder 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 the solution located in oxygine-framework\examples\Demo\proj.win32\
  18. - Try to build the 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. - The working directory of the Demo project should point to the "../data" folder (right mouse-click on the "Demo" Project -> Properties -> "Configuration Properties" -> Debugging -> "Working Directory")
  23. - ready! run!
  24. =================================================================================================
  25. 3. You can generate your own Solution anywhere you want:
  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/