|
板凳

楼主 |
发表于 2016-7-5 21:07:35
|
只看该作者
Visual Studio 2017(Windows)
本帖最后由 ancientcc 于 2018-3-27 08:52 编辑
Compile
In order to compile, requires Visual Studio 2017 or later.
In "Configuration Manager", "Active solution configuration" select Release, "Active solution platform" select Win32. Although it is release, you can still use breakpoints to debug.
1. SDL
After downloading Rose, necessary SDL development library has placed on the <linker>/windows. If you don't want to recompile them, can skip this part, and go to "2. studio.exe" directly.
- sdl2.dll: Open and compile <SDL>/SDL2-2.0.7/VisualC/SDL.sln.
- sdl2_image.dll: Open and compile <SDL>/SDL2_image-2.0.1/VisualC/SDL_image.sln.
- sdl2_mixer.dll: Open and compile <SDL>/SDL2_mixer-2.0.1/Visual/SDL_mixer.sln.
- sdl2_ttf.dll: Open and compile <SDL>/SDL2_ttf-2.0.14/VisualC/SDL_ttf.sln.
2. studio.exe
chromium.lib: open and compile <SDL>/chromium/projectfiles/vc/chromium.sln. In "Configuration Manager", "Active solution configuration" select Release, "Active solution platform" select Win32.
studio.exe: open and compile <apps-src>/apps/projectfiles/VC/studio.sln.
Run
1. Copy necessary dll
By this time, if successful, there are SDL2.dll, SDL2_ttf.dll, SDL2_mixer.dll, SDL2_net.dll, SDL2_image.dll, studio.exe in <apps-src>/apps/projectfiles/vc/Release. In order to run, you should copy other necessary dll to, necessary dll include libfreetype-6.dll, libjpeg-9.dll, libogg-0.dll, libpng16-16.dll, libtiff-5.dll, libvorbis-0.dll, libvorbisfile-3.dll, libwebp-4.dll, mikmod.dll, smpeg.dll zlib1.dll. You can copy them from resource packet.
2. Connect Resource Packet
In order to run by Vistual Studio Command, need set Command Arguments. Below is relative setting.
It indicats Resource Pakcet is located in apps-res that is same parent as apps-src.
3. Run
"Debug"--"Start Debuging" or "Start Without Debuging"
|
|