UzayAnil / TerraFirma

Mapping for Terraria

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-platform mapping for Terraria Run on Repl.it 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

About

Mapping for Terraria

http://seancode.com/terrafirma

License:BSD 2-Clause "Simplified" License


Languages

Language:C 72.1%Language:C++ 24.9%Language:Objective-C 2.1%Language:GLSL 0.5%Language:QMake 0.3%Language:Batchfile 0.0%