Git Product home page Git Product logo

konstruisto's Introduction

Project preview

Simple city-builder using OpenGL. For Windows and Linux. See http://konstruisto.com/ for more.

Building

There are two building toolchains:

  1. Linux/Windows GNU headers using Makefile and Clang
  2. Windows MSVC build using Visual Studio and Clang

Only x64 builds are supported. MSVC is preferred for Windows. Windows GNU version is no longer maintained and will be removed.

Building on Linux

  1. Set up dependencies running scripts/setup-deps.sh from the main directory:
    git clone [email protected]:kantoniak/konstruisto.git konstruisto &&
    cd konstruisto &&
    chmod +x ./scripts/setup-deps.sh &&
    sudo ./scripts/setup-deps.sh &&
    cd -
    
  2. Run make build run

To build release configuration use make rebuild run CONFIG=RELEASE. Command make help shows all possible options.

Building on Windows

You will need to set up cmake in PATH if it's not already there.

  1. Set up dependencies running scripts/setup-deps.ps1 in Powershell from the main directory:
    git clone [email protected]:kantoniak/konstruisto.git konstruisto
    Set-Location konstruisto
    .\scripts\setup-deps.ps1
    
  2. Build NanoVG release libraries:
    1. Open solution vendor\nanovg\build-msvc\nanovg.sln
    2. Build project nanovg for Release/x64.
  3. Build Assimp release libraries:
    1. Open solution vendor\assimp-5.0.0\build-msvc\Assimp.sln
    2. Build project ALL_BUILD for MinSizeRel/x64.
  4. Open Visual Studio solution and build project Konstruisto.

Please note that only x64 builds are supported.

(Deprecated) Windows build with MinGW headers

You can use scripts/setup-deps.ps1 to set up the dependencies.

  1. You will need make, clang, clang++, clang-format in PATH.
  2. You will need windres in PATH from mingw-w64
  3. Install GLFW in vendor/glew-3.3
  4. Extract glm library to vendor/glm-0.9.9.6
  5. Extract cereal library to vendor/cereal-1.3.0
  6. Put stb_image.h to vendor/stb/stb/stb_image.h
  7. Build and install nanovg (see below)

Building nanovg

You will need premake5 (download).

  1. Extract repo into vendor/nanovg.

  2. Build x64 release:

    cd vendor/nanovg
    premake [vs2019|--cc=gcc gmake]
    mv build build-[msvc|windows|linux]
    cd build-[msvc|windows|linux]
    make config=release64 nanovg
    

License

Copyright © 2017-2019 Krzysztof Antoniak

Contents of this repository is licensed under GNU General Public License, version 3.0 (GPL-3.0) with additional term according to the section 7(c) of the license: should you make a derivative of this repository, please do not use the name "Konstruisto", Konstruisto logo or use similar naming for your game what could misguide users. See LICENSE.txt for details.

Used libraries

konstruisto's People

Contributors

kantoniak avatar buoto avatar mazurki avatar penify-dev[bot] avatar

Watchers

Robert Bongart (MSc MSc MA) 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.