Building on Windows (Visual Studio or CMake) - ousnius/bodyslide-and-outfit-studio GitHub Wiki

Build Requirements:

For Linux, see Building on Linux.

Building with Visual Studio on Windows:

  • Download the wxWidgets source archive or clone their Git repository (including submodules).
    • Put it into a folder wxWidgets within the same directory as this repository.
  • In wxWidgets\build\msw\wx_setup.props, change wxRuntimeLibs from dynamic to static.
  • Open up wxWidgets\build\msw\wx_vc17.sln or similar in Visual Studio.
  • Build the Debug and Release configurations of the solution for Win32 and x64 platforms.
  • Get the GL/glext.h header file from https://www.khronos.org/registry/OpenGL/api/GL/glext.h and copy it to your current Windows SDK folder, for example %ProgramFiles(x86)%\Windows Kits\10\Include<version>\um\gl
  • Get the KHR/khrplatform.h header file from https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h and copy it to your current Windows SDK folder, for example %ProgramFiles(x86)%\Windows Kits\10\Include<version>\um\KHR
  • Download the FBX SDK (see above)
    • Install it to the same directory as this repository and remove the version number, for example just: ..\FBX SDK
  • Open up the BodySlide solution in Visual Studio and build it.

Build with CMake

You can also use the included CMake lists for compilation on Windows or Linux.

CMake should find wxWidgets libraries or packages and other dependencies automatically.
You might still need to get OpenGL headers.

Release packaging

  • Make sure to ship an up-to-date res and lang folder with the release for UI files, shaders and more.

Troubleshooting

  • wxWidgets
    • If wxWidgets isn't linking, make sure all builds were successful and check the setup.h headers are correctly set up.
  • OpenGL headers
    • If some OpenGL header such as GLext.h isn't found, check the instructions above.
  • FBX SDK
    • If Outfit Studio doesn't build due to the FBX SDK, make sure both the library and include paths to the FBX SDK are matching your installation.
⚠️ **GitHub.com Fallback** ⚠️