Git Product home page Git Product logo

ia's Introduction

Guide for building Infra Arcana

Which branch should I build?

master - If you want to try out new features in a relatively stable and bug free state.

tags (v15.0, v16.0, etc) - If you want to build one of the official releases.

develop - No guarantees. It may not even compile.

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

Fetching source

If you aren't familiar with using Git, you can download whole source code directly as compressed archive.

Windows

The instructions below are written and tested for Windows 7.

Installing a development environment

Download Code::blocks: (The MinGW version, e.g. "codeblocks-XX.XXmingw-setup.exe")

Install Code::Blocks “Select type of install", choose "Standard"

A window should pop up, prompting for compiler choice. Select the GNU GCC Compiler and make it default.

"Yes, associate Code::Blocks with C/C++ file type"

Close Code::Blocks -> "The perspective has changed, save it?", check "Don't annoy me again"

Building Infra Arcana

Go to the cloned Infra Arcana Git repository folder. Open "cb_win_project" (stands for "Code::Blocks Windows project"). Open "cb_win_project.cbp".

In the top left corner, there should be a button that looks like a yellow cogwheel - to the right of this, there should be a choice for "Build target", set this to “Release”. Then click the cogwheel button, this will start the build.

When the build is done, you should see something like this in the build log:

Process terminated with status 0 (time)
0 errors, 0 warnings

(Don’t mind it too much if there are some warnings)

Next to the cogwheel button is a green arrow button. Click it. The game should run now.

The Infra Arcana executable is put in the “target” folder inside the Git repository folder. If you want, you can copy the ‘target’ folder somewhere else and rename it.

If you get the following error when trying to build:

["cb_win_project - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... ].

Try going to "Settings" -> "Compiler and debugger" -> "Toolchain executables", then click "Auto-detect".

Linux

The instructions below are written and tested for Ubuntu 12.10

Building Infra Arcana

You will need build tools and SDL:

$ sudo apt-get install make gcc libsdl2-2.0-0 libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev

Go to the IA repository directory, and type:

$ make

Or if you want to do a debug build:

$ make debug

Go to the “target” folder

Start IA by typing

$ ./ia

(dot slash ia)

If you want, you can copy the “target” folder somewhere and rename it

OSX

Some people have successfully built IA on OSX by using the Linux Makefile as it is. Although building on OSX is not “officially supported”, the goal is to keep the project as portable as possible. It should require little extra effort (or no extra effort at all) to build IA on OSX. So go ahead and try ;) Please tell of your problems or success at the IA webpage, or email me (Martin) - see contact.txt in the game folder (or assets/contact.txt in the IA repository).

Building on OS X

This works on 10.11.1, ymmv.

Install Xcode command line tools.

Install SDL2.framework, SDL2_image.framework, SDL2_mixer.framework in /Library/Frameworks.

Use Makefile_osx to build:

$ make -f Makefile_osx install

or, for a "release" build:

$ make -f Makefile_osx RELEASE=1 install

Run:

$ cd ./target
$ ./ia

ia's People

Contributors

blinkkin avatar ethanfine avatar gridbugs avatar jachamp avatar lain- avatar martin-tornqvist avatar

Watchers

 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.