-
Notifications
You must be signed in to change notification settings - Fork 27
Building
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.
Install Visual Studio 2017 and the Visual C++ Redistributable.
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
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
.
#Debian, Ubuntu
apt install cmake g++ libcurl4-gnutls-dev
#Fedora
dnf install cmake gcc-c++ libcurl-devel
mkdir build
cd build
cmake ..
make
The library is now located at build/libmodio.so
.
Install the build essentials shipped with XCode.
mkdir build
cd build
cmake ..
make
The library is now located at build/libmodio.dylib
.
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.
- Home
- Table of Contents
- Getting Started
- SDK Methods
- Creators
- Editors
- Schemas
- modio::Avatar
- modio::Comment
- modio::Dependency
- modio::Download
- modio::Error
- modio::Filehash
- modio::Game
- modio::GameTagOption
- modio::Header
- modio::Icon
- modio::Image
- modio::InstalledMod
- modio::Logo
- modio::Media
- modio::MetadataKVP
- modio::Mod
- modio::ModEvent
- modio::Modfile
- modio::QueuedModDownload
- modio::QueuedModfileUpload
- modio::Rating
- modio::Response
- modio::Stats
- modio::Tag
- modio::User
- Debugging
- Constants
-
C Compatibility
- Methods
- Initialization, Process and Shutdown (C compatible)
- User Authentication (C compatible)
- Mods (C compatible)
- Modfiles (C compatible)
- Media (C compatible)
- Subscriptions (C compatible)
- Events (C compatible)
- Stats (C compatible)
- Tags (C compatible)
- Ratings (C compatible)
- Metadata KVP (C compatible)
- Dependencies (C compatible)
- Comments (C compatible)
- Reports (C compatible)
- Me (C compatible)
- Downloads (C compatible)
- Uploads (C compatible)
- Logs (C compatible)
- External Auth (C compatible)
- Configuration (C compatible)
- Creators
- Editors
- Schemas
- ModioAvatar
- ModioComment
- ModioDependency
- ModioDownload
- ModioError
- ModioFilehash
- ModioGame
- ModioGameTagOption
- ModioHeader
- ModioIcon
- ModioImage
- ModioInstalledMod
- ModioListNode
- ModioLogo
- ModioMedia
- ModioMetadataKVP
- ModioMod
- ModioModEvent
- ModioModfile
- ModioQueuedModDownload
- ModioQueuedModfileUpload
- ModioRating
- ModioResponse
- ModioStats
- ModioTag
- ModioUser
- Methods
- Building