Giter Site home page Giter Site logo

michalsrb / minutor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrkite/minutor

0.0 2.0 0.0 2.08 MB

Mapping for Minecraft

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

C++ 25.72% Batchfile 0.04% QMake 0.24% Makefile 0.05% JavaScript 8.36% HTML 0.04% CSS 0.42% C 65.12%

minutor's Introduction

This is the source code for Minutor 2.0 (beta)
web/ contains the source code for the web-based pack builder.  The live version
can be found at http://seancode.com/minutor/packs

The Makefile inside web/ will use the Closure Compiler to compile all the .js files
into a single editor.min.js.  To host the pack builder on your own website, you
only need editor.min.js, index.html, main.css, and the mods/ folder.

COMPILING:
---------

All Platforms:
Use QtCreator (Qt5 version) and open minutor.pro

Windows:
These are the instructions for doing a static compile on Windows.  These are the
same steps I use to make the official versions.

First you need a static compile of Qt5.  Get the Qt5 source from
http://qt-project.org/downloads

Unzip it whereever you wish, and then edit qtbase\mkspecs\win32-msvc2012\qmake.conf
You'll need to find the CONFIG line and remove embed_manifest_dll and
embed_manifest_exe from that line.
Next find the QMAKE_CFLAGS_* lines and change -MD to -MT, and -MDd to -MTd

Now open up the Developer Command Prompt
cd into the qtbase folder and run:

configure -prefix %CD% -debug-and-release -opensource -confirm-license
	-platform win32-msvc2012 -nomake tests -nomake examples
	-no-angle -no-opengl -static -qt-zlib
nmake

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

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 that is inside qtbase\bin of
the Qt5 you just compiled.  There will be a warning flag because we didn't
compile qmlscene or qmlviewer or any
helpers (we don't need them and by leaving them out we don't have to deal with
Qt OpenGL headaches), you can ignore that.
Then switch over to Kits and make a new kit that uses the Qt version you just
created.  Again, there will be a warning flag for the same reasons as before, ignore
it.

If you get errors with conflicting _z_errmsg: Edit zutil.c and delete the
z_errmsg array (it conflicts with an exported array in Qt5).

Now compile Minutor using the static Kit.  You should end up with a statically
linked minutor.exe which doesn't require any dlls to run.

Linux:
If you'd rather use the command line, run qmake to generate a Makefile from
minutor.pro, then run make

To make a package:

    $ debuild

To make a package for another distribution:
    $ pbuilder-dist raring create   # called only once to generate environment
    $ debuild -S -us
    $ pbuilder-dist raring build *.dsc



MacOS:
Make a static compile of Qt by downloading the source code and then

	cd qtbase
    ./configure -prefix $PWD -opensource -confirm-license -nomake tests -nomake examples -release -static
	make

Then compile Minutor by:

	~/path/to/qtbase/bin/qmake
	make

minutor's People

Contributors

etlamgit avatar madmaxoft avatar mrkite avatar rmmh 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.