Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

  • 1 month later...
  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

@Nocommentte: You should tell us a bit more. Which "mangos" (maybe one or zero, or trunk?) you want to compile and which file you are going to patch. Other than that, have a look at the patch file and at src/bindings/CMakeLists.txt. Your patch somehow does not match this files information. Hard to tell why w/o having a look at the patch and the file.

Have a look at how to manually patch sources and you'll be able to easily fix it. Guess you just have to add "add_subdirectory(ScriptDev2)".

Regards

Skirnir

Link to comment
Share on other sites

Idk RSA...Source

isnt first time compiling on linux...

#
# Copyright (C) 2005-2011 MaNGOS project <http://getmangos.eu/>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

add_subdirectory(ScriptDev2)

Here Cmake...

i get that error when i try to patch mangos

Link to comment
Share on other sites

@Nocommentte: Send a PM to rsa. He's around at this forum and at some others and frequently checks github comments. My guess is you mixed something up, it's highly unlikely that you have a different scripting library. rsa uses a patched ScriptDev2 if I remember correctly. In this case your still mysterious patch file just tells you that your sources are already patched.

Anyways ask rsa. In case you don't use a clean core your on your own.

Regards

Skirnir

Link to comment
Share on other sites

  • 2 weeks later...

I was wondering, am i the only one who must tell the compiler which architecture im using?

if i don't use the command

make arch=i586

i use to get this error:

build/common.inc:54: *** Architecture not detected. Stop.

Is this common for debian or i586 architecture? Or have i forgot something else?

Link to comment
Share on other sites

  • 3 months later...

I'm attempting to build Mangos on Fedora and getting stuck. The cmake arguments I used were: -DPREFIX=/opt/mangos -DPCH=0 -DACE_USE_EXTERNAL=0 -DTBB_USE_EXTERNAL=0 -DDEBUG=0

Then I ran make, but compilation halted with this error:

[  1%] Performing configure step for 'ACE_Project'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: unsafe srcdir value: `/home/Starim/mangos/dep/ACE_wrappers'
make[2]: *** [dep/ACE_wrappers/ACE_Project-prefix/src/ACE_Project-stamp/ACE_Project-configure] Error 1
make[1]: *** [dep/ACE_wrappers/CMakeFiles/ACE_Project.dir/all] Error 2
make: *** [all] Error 2

Link to comment
Share on other sites

@Starim: you could try to compile just with -DPREFIX=/opt/mangos if you don't use external ace, tbb and debug build. Other than that I've no clue.

@Tvup: Your problem solved? Might have to build as i386 or x86 depending on what MaNGOS expects.

Regards

Skirnir

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use