Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Building

Ahmed Castro edited this page Nov 14, 2017 · 39 revisions

This page shows how to compile the mod.io SDK shared library. If you are a Game Developer seeking to add mod.io functionality to your project please refer to the Getting Started Guide instead.

Mod.io SDK is built on the top of LibCurl, Zlib, Minizip and Pthread. VisualC++, MinGW, GCC and Clang are supported. In order to build it run the makefile compatible with your compiler.

Windows

VisualC++

Setup

In order to compile using the Visual C++ Redistributable. The nmake command is available on the Visual C++ command line interface provided by the Redistributable or you can add it to your environment path.

Build

cd src
nmake -f MakefileVisual

This will generate the import library modio.lib and the dynamic library modio.dll under the src/ directory.

MinGW

Setup

Download and install the MinGW with MinGW32-Make support. Then add mingw32-make.exe to your environment path.

Build

cd src
mingw32-make -f MakefileMingW

This will generate the import library modio.a and the dynamic library modio.dll under the src/ directory.

Linux

Setup

Install the following dependencies:

#Debian, Ubuntu
apt-get install g++ zlib1g-dev libcurl4-gnutls-dev

#Fedora
dnf install gcc-c++

Build

cd src
make

This will generate the shared library modio.so library under the src/ directory.

OSX

Setup

Install the build essentials shipped with XCode.

Build

cd src
make -f MakefileClang

This will generate the shared library modio.dylib library under the src/ directory.

Contents

Clone this wiki locally