Git: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
  git pull https://github.com/AliceLR/megazeux.git master
  git pull https://github.com/AliceLR/megazeux.git master


Before you can build, you may have to download a package of the [http://sourceforge.net/projects/mingwbuilds/ latest mingw32 or mingw64 compilers] for the platform you're attempting to build on (if make can't find [platform]-gcc, for example), and copy/link several other mingw utilities to match the format expected by the MZX makefile.  The errors during building should be helpful enough to inform you of what you need to copy (example: cp /mingw/bin/windres.exe /mingw/bin/i686-w64-mingw32-windres.exe).
===Compiling MegaZeux===
 
  cd /megazeux/src
  cd /megazeux/src
  ./config.sh --platform mingw[32|64] --prefix $HOME/bin/mingw32
  ./config.sh --platform win[32|64] --prefix $HOME/bin/mingw32
  make
  make
Another option to note is --enable-libsdl2, which enables the latest version of SDL. The updated dependencies for using SDL 2.0 can be found in /megazeux/src/scripts/deps/mingw[32|64].zip
===Updating Compilers===
Before you can build, you may have to download a package of the [http://sourceforge.net/projects/mingwbuilds/ latest mingw32 or mingw64 compilers] for the platform you're attempting to build on.  For example, make may not be able to find
i686-w64-mingw32-gcc.exe
which means you will have to download the i686-w64-mingw32 compiler package and extract it into /mingw32/bin/.
Other utilities will also be found missing if this happens that are not included in the compiler package.  The errors during building should be helpful enough to inform you of what you need to copy, for example:
cp /mingw/bin/windres.exe /mingw/bin/i686-w64-mingw32-windres.exe


==Mac OS X==
==Mac OS X==

Revision as of 22:19, 7 July 2013

Git is a revision control system developed by Linus Torvalds, the creator of Linux. The latest unstable/work-in-progress/between-release MegaZeux source code is kept in a git repository that can be found here.

Windows

Installation

Git is best used on Windows via msysgit, which includes a posix-style terminal called msys and a copy of mingw32. Once msysgit is installed, Git may be used by starting msys and typing "git [command]".

Setting up a development folder

Make a directory in the msys root called "megazeux" and extract the mingw32 or mingw64 dependency package directly into it, which should create a folder called "bin".

cd /megazeux
mkdir src
cat "HOME=\"/megazeux\"\nPATH=\"$PATH:$HOME/bin/mingw32/bin\"\n" >> /etc/bash_profile
. /etc/bash_profile
git clone git@github.com/[YourRepository]/megazeux.git src

Once you have created a duplicate repository on your machine, you can pull the most recent changes by doing this:

git pull https://github.com/AliceLR/megazeux.git master

Compiling MegaZeux

cd /megazeux/src
./config.sh --platform win[32|64] --prefix $HOME/bin/mingw32
make

Another option to note is --enable-libsdl2, which enables the latest version of SDL. The updated dependencies for using SDL 2.0 can be found in /megazeux/src/scripts/deps/mingw[32|64].zip

Updating Compilers

Before you can build, you may have to download a package of the latest mingw32 or mingw64 compilers for the platform you're attempting to build on. For example, make may not be able to find

i686-w64-mingw32-gcc.exe

which means you will have to download the i686-w64-mingw32 compiler package and extract it into /mingw32/bin/.

Other utilities will also be found missing if this happens that are not included in the compiler package. The errors during building should be helpful enough to inform you of what you need to copy, for example:

cp /mingw/bin/windres.exe /mingw/bin/i686-w64-mingw32-windres.exe

Mac OS X

TBA

Linux

Installation

sudo apt-get install git

Setting up a development folder

mkdir ~/mzxdev
cd ~/mzxdev
git pull git@github.com/[YourRepository]/megazeux.git .