Git Product home page Git Product logo

ia's Introduction

Guide for building Infra Arcana

Fetching the source code

Clone the IA repository on Github:

https://github.com/martin-tornqvist/ia.git

NOTE: Part of the IA source code resides in a Git sub module, which you also need to initialize and update, like so:

$ git submodule init
$ git submodule update

Run "git submodule update" again when checking out different branches or tags.

Which branch should I build?

develop - If you want to try out new features early (the develop branch should be relatively stable and bug free, feel free to open Github issues if you encounter bugs or crashes).

master - If you want a more stable and well tested experience.

tags (v15.0, v16.0, etc) - If you want to build one of the official releases (note that the build method may be different for older versions).

Building Infra Arcana

Infra Arcana is built with CMake, which is a build system generator. CMake can generate GNU Makefiles, Code::Blocks projects, Visual Studio solutions, etc for many different platforms. Look for an online tutorial on how to use CMake (some pointers are given below).

Unix/Linux/macOS

You need CMake, build tools (e.g. GNU Make + gcc), as well as SDL2, SDL2-image, and SDL2-mixer. These are the required SDL packages (retrieve them with apt-get for Ubuntu and Linux Mint):

libsdl2-2.0-0 libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev

Hint for building:

cd <ia directory>
mkdir build && cd build
cmake ../
make ia

NOTE: Building with CMake on macOS is not yet tested (as far as I know) - I would love to hear feedback on success or failures!

Windows

You need CMake, and some IDE or build tools of your choice (such as Code::Blocks, or Visual Studio). The Windows version of SDL is included in the repository already, so there is no need to download this.

Run CMake. If you use the graphical interface, then for "Where is the source code?" select the root folder of the ia repo (NOT the "src" folder), and for "Where to build the binaries?" select a folder called "build" in the ia repo (the "build" folder may not actually exist yet, but it doesn't matter, just specify this path). Run "Configure" and "Generate".

You may need to set up some system environment variables to fix errors, depending on which type of project you are generating.

After running CMake, if everything went fine, the project (of the type that you selected) should be available in the "build" folder. Open this project and build the "ia" target.

For example, if you generated a Code::Blocks project, then in the drop-down target list (near the top of the screen) select the "ia" target. Build by clicking on the yellow cogwheel, then run the game by clicking on the green arrow.

ia's People

Contributors

aksej avatar blinkkin avatar ethanfine avatar gridbugs avatar jachamp avatar jkienzle-sfdc avatar lain- avatar martin-tornqvist avatar michaelgwire avatar soverysour avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.