Building - modio/modio-sdk-legacy GitHub Wiki
This page shows how to compile the mod.io SDK library. If you are a Game Developer seeking to add mod.io functionality to your project please refer to the Getting Started guide instead.
Windows
Dependencies
Install Visual Studio 2017 and the Visual C++ Redistributable.
Build
Run the following in your command prompt:
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ..
Now open modio.sln
in Visual Studio, select Release
mode and click the Build button.
The library is now located at build/modio.lib
and binary at build/modio.dll
Alternative builds
Our preferred way of building mod.io is with Visual Studio 15 2017 Win64
selection for CMake because it's compatible with UE4.24 and downwards. However, it's also possible to build it the following ways:
- Visual Studio 15 32bits:
Visual Studio 15 2017
- Visual Studio 16 64bits:
Visual Studio 16 2019 Win64
- Visual Studio 16 32bits:
Visual Studio 16 2019
This will generate the import library modio.lib
and the dynamic library modio.dll
.
Linux
Dependencies
#Debian, Ubuntu
apt install cmake g++ libcurl4-gnutls-dev
#Fedora
dnf install cmake gcc-c++ libcurl-devel
Build
mkdir build
cd build
cmake ..
make
The library is now located at build/libmodio.so
.
OSX
Dependencies
Install the build essentials shipped with XCode.
Build
mkdir build
cd build
cmake ..
make
The library is now located at build/libmodio.dylib
.
Static linking
CMake will build the SDK dynamically by default. To build it statically you have to add the BUILD_SHARED_LIBS
variable flag set to OFF
.
cmake -D BUILD_SHARED_LIBS=OFF ..
Continue the rest of the building process normally and the modio.lib
or libmodio.a
static library will be generated instead of the dynamic library.