Giter Site home page Giter Site logo

rangelreale / terrafirma Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrkite/terrafirma

0.0 3.0 0.0 911 KB

Mapping for Terraria

Home Page: http://seancode.com/terrafirma

License: BSD 2-Clause "Simplified" License

QMake 0.28% C++ 24.91% C 72.11% Batchfile 0.04% GLSL 0.54% Objective-C 2.11%

terrafirma's Introduction

Cross-platform mapping for Terraria

COMPILING:

All Platforms: Use QtCreator and open terrafirma.pro

How to do a static compile on Windows:

Download the qt5.5 sourcecode.

Unzip it whereever you wish, it's a large file and contains a lot of nested subdirectories, so you'll probably want to put it in C:\Qt5\src or something similar since you could end up running into Windows' path-length limitations otherwise.

Now edit qtbase\mkspecs\common\msvc-desktop.conf

Find the CONFIG line and remove embed_manifest_dll and embed_manifest_exe from that line.

Next find QMAKE_CFLAGS_* and change -MD to -MT and -MDd to -MTd.

Open your developer command prompt, cd into the qtbase folder and run:

>configure -prefix %CD% -debug-and-release -opensource -confirm-license -platform win32-msvc2013 -nomake tests -nomake examples -opengl desktop -static
>nmake

If nmake complains about python or perl, install ActivePerl and ActivePython and try again. This compile will take forever.

This should make a static Qt5 with both debug and release libraries. Now in QtCreator go to Tools โ†’ Options and select Qt Versions from Build & Run. Add a new Qt Version and locate the qmake.exe inside qtbase\bin. Then create a new Kit that uses the Qt Version you just created.

Building for Linux:

Use qmake to generate a makefile then run make.

To make a package,

$ debuild

To make a package for another distrubtion

$ pbuilder-dist vivid create  # generate the environment
$ debuild -S -us -uc
$ cd ..
$ pbuilder-dist vivid build *.dsc

Building on OSX:

Make a static compile of Qt 5.5:

$ git clone https://code.qt.io/qt/qt5.git
$ cd qt5
$ perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
(wait forever)
$ git checkout 5.5
$ ./configure -prefix $PWD -opensource -confirm-license -nomake tests -nomake examples -release -static
$ make
(wait forever)

Then compile Terrafirma:

$ cd TerraFirma
$ ~/qt5/qtbase/bin/qmake
$ make

terrafirma's People

Contributors

mrkite avatar enigmaquip avatar mojotx avatar flying-sheep avatar biouxtai avatar mattilu avatar schleumer avatar jklewa avatar

Watchers

Rangel Reale avatar James Cloos 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.