Results 1 to 1 of 1
-
16-08-10, 01:48 AM #1Graphics Guru



- Join Date
- Feb 2009
- Posts
- 1,377
- Rep Power
- 24
- Reputation
- 382
How to compile MaNGOS on Linux ( Using GIT )
Register to remove this adYou must install :
You can do this using the terminal:Code:* GCC 4.1.X ( gcc / g++ / cpp / fort77 / g77 / gpp) * automake * autoconf * glibc & glibc-dev(glibc headers) [ libc6 ] * make * mysql-server 4.1 ou mysql-server 5.0 && libmysql++-dev * libtool * OpenSSL (libssl-dev) * subversion et patch * git * zlibc
You must download the files from the git repository, git will create your mangos sources directory for you.Code:apt-get install build-essential binutils gcc g++ cpp automake autoconf make libmysql++-dev libtool libssl-dev subversion patch zlibc libc6 git-core
You must download and patch ScriptDev2.Code:git clone git://github.com/mangos/mangos.git cd mangos
You can useCode:mkdir src/bindings/ScriptDev2 svn co https://scriptdev2.svn.sourceforge.n...ot/scriptdev2/ src/bindings/ScriptDev2 git apply src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch
to commit the patch, which is the way it was intended to be. git-apply just applies changes, while git-am commits patches. Please note that you cannot commit a diff (= the thing you now call "patch"), but you can commit a git patch (which is in fact "portable commit in a file") created using git-format-patch.Code:git am src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch
If you want to apply only changes to stash them later, use git-apply, if you want to commit the sd2 patch, use git-am and you don't have to manually call git-commit.
Once you have patched mangos, you compile it.
You can replace ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangosCode:autoreconf --install --force automake src/bindings/ScriptDev2/Makefile mkdir objdir cd objdir ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos make make install make clean cd .. rm -r objdir
by ../configure --prefix=[working path] --sysconfdir=[working path]/etc --enable-cli --enable-ra --datadir=[working path]
with your [working path]
Good Luck
Credit to mimi133 for making useful guide



Wise
Reply With Quote






