Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

During configure step there are some errors...

=== Configuring in dep/ACE_wrappers ===

.............

...

Checking for C++ compiler default output file name...

configure: error: C++ compiler cannot create executables

configure: error: ...dep/ACE_wrapper/configure failed for dep/ACE_wrappers

Please, any ideas...

Perhaps, there are some ruses for compiling ACE...

Link to comment
Share on other sites

  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Thanks for the tutorial.

Until now, I used svn, but, since the new patches seems to be be released only on the git repository, I have decided to switch to git.

I have donwloaded everything, using the tutorial command, configure, compile. OK

But realm-worldd displays a lot of error messages on SQL incompatibilities, either if I use the last udb files, or the sql files supplied with the distrib, or the old sql files I use with my 6767 release.

Please, can someone tells me where I can find good sql files for the last git release ?

Thanks

Link to comment
Share on other sites

Hello,

I followed the steps in this tutorial, but compiling fails with the error below. I'm running Debian Etch. I tried searching for this error in the forums but couldn't find anything. Thanks for any help with this.

_AABSPTree::Handle<T> >, G3D::AABSPTree<T>::Node*, GHashCode<G3D::_internal::Indirector<G3D::_AABSPTree::Handle<T> > > >::Iterator&)â:
../../../../src/shared/vmap/AABSPTree.h:1552: error: class âG3D::AABSPTree<T>::Iteratorâ does not have any field named âitâ
../../../../src/shared/vmap/AABSPTree.h: In member function âbool G3D::AABSPTree<T>::Iterator::operator==(const G3D::AABSPTree<T>::Iterator&) constâ:
../../../../src/shared/vmap/AABSPTree.h:1561: error: âitâ was not declared in this scope
../../../../src/shared/vmap/AABSPTree.h: In member function âG3D::AABSPTree<T>::Iterator& G3D::AABSPTree<T>::Iterator::operator++()â:
../../../../src/shared/vmap/AABSPTree.h:1568: error: âitâ was not declared in this scope
../../../../src/shared/vmap/AABSPTree.h: In member function âconst T& G3D::AABSPTree<T>::Iterator::operator*() constâ:
../../../../src/shared/vmap/AABSPTree.h:1584: error: âitâ was not declared in this scope
../../../../src/shared/vmap/AABSPTree.h: In member function âT* G3D::AABSPTree<T>::Iterator::operator->() constâ:
../../../../src/shared/vmap/AABSPTree.h:1588: error: âitâ was not declared in this scope
../../../../src/shared/vmap/AABSPTree.h: In member function âG3D::AABSPTree<T>::Iterator::operator T*() constâ:
../../../../src/shared/vmap/AABSPTree.h:1592: error: âitâ was not declared in this scope
make[5]: *** [ManagedModelContainer.o] Error 1
make[5]: Leaving directory `/home/ded/mangos/objdir/src/shared/vmap'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ded/mangos/objdir/src/shared'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/ded/mangos/objdir/src/shared'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ded/mangos/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ded/mangos/objdir'
make: *** [all] Error 2

Link to comment
Share on other sites

To begin, I m french and this is a translate from my tuto in french,

if you see, langage error, please pm me.

You must install :

To use git and not use gitfm, you must do this :

You must enter the digit which match with :

You must to download the files from the git repository, git create your mangos sources dir for you.

You must download and patch ScriptDev2.

Then, you must compile.

You can replace ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos

by ../configure --prefix=[working path] --sysconfdir=[working path]/etc --enable-cli --enable-ra --datadir=[working path]

with your [working path]

Good Luck ;)

mkdir src/bindings/ScriptDev2

svn co https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/ patches/

patch -p0 < src/bindings/ScriptDev2/MaNGOS-r6765-ScriptDev2.patch

instead of
mkdir src/bindings/ScriptDev2

svn co https://scriptdev2.svn.sourceforge.n...ot/scriptdev2/ src/bindings/ScriptDev2

patch -p0 < src/bindings/ScriptDev2/patches/MaNGOS-r6765-ScriptDev2.patch

Link to comment
Share on other sites

Hello,

I followed the steps in this tutorial, but compiling fails with the error below. I'm running Debian Etch. I tried searching for this error in the forums but couldn't find anything. Thanks for any help with this.

_AABSPTree::Handle<T> >, G3D::AABSPTree<T>::Node*, GHashCode<G3D::_internal::Indirector<G3D::_AABSPTree::Handle<T> > > >::Iterator&)â:
../../../../src/shared/vmap/AABSPTree.h:1552: error: class âG3D::AABSPTree<T>::Iteratorâ does not have any field named âitâ
...

Hi,

I have the same problem.

Do you have found some solution ?

Thanks

Best regards

Link to comment
Share on other sites

Unfortunately I have not yet :( I get the same result when starting from scratch and using this guide as well:

http://github.com/mangos/mangos/wikis/how-to-compile-mangos-on-linux

Not sure what other info is needed to help troubleshoot. I'm going through the steps as root and my kernel is 2.6.18-6-686.

It looks like I have the correct versions of the required utilities and programs:

apt-get install gcc g++ automake autoconf make libmysql++-dev libtool libssl-dev subversion patch zlibc libc6 git git-core cogito
Reading package lists... Done
Building dependency tree... Done
gcc is already the newest version.
g++ is already the newest version.
automake is already the newest version.
autoconf is already the newest version.
make is already the newest version.
libmysql++-dev is already the newest version.
libtool is already the newest version.
libssl-dev is already the newest version.
subversion is already the newest version.
patch is already the newest version.
zlibc is already the newest version.
libc6 is already the newest version.
git is already the newest version.
git-core is already the newest version.
cogito is already the newest version.

Link to comment
Share on other sites

Hello,

Good news !

By comparing the AABSPTree.h fetched by git and the one fetched by svn release 6767, I have discovered that the line 1548:

"         typename Table<Member, Node*>::Iterator it;"

seems to have been removed from the git version by some contributor.

Just add it after these ones:

    class Iterator {
   private:
       friend class AABSPTree<T>;

and the compiling can go further on.

Good luck:)

Link to comment
Share on other sites

Thanks for you reply hdlbq! I tried what you said, but it's still erroring out on me. Now this time there is an additional error before the ones I got before:

../../../../src/shared/vmap/AABSPTree.h:1551: error: expected unqualified-id before string constant

Then the rest of the orginal error that I posted follows. Maybe I did it wrong? here is a copy of how I edited the AABSPTree.h file:

    class Iterator {
   private:
       friend class AABSPTree<T>;
         typename Table<Member, Node*>::Iterator it;

EDIT: I removed the quotes and it seems to be moving on! Thanks again! :)

Link to comment
Share on other sites

So im pretty expirenced with mangos on windows, but linux seem completley different so forgive me if this is a stupid question or has an obivous guide on this site, but after completing this guide what do i do? just to be sure this is my result for terminal

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/src/tools'

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/src/tools'

Making clean in .

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/src'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/src'

make[1]: Leaving directory `/home/bf1942/3.0.3/objdir/src'

Making clean in sql

make[1]: Entering directory `/home/bf1942/3.0.3/objdir/sql'

Making clean in tools

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/sql/tools'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/sql/tools'

Making clean in updates

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/sql/updates'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/sql/updates'

Making clean in .

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/sql'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/sql'

make[1]: Leaving directory `/home/bf1942/3.0.3/objdir/sql'

Making clean in doc

make[1]: Entering directory `/home/bf1942/3.0.3/objdir/doc'

rm -rf .libs _libs

rm -rf ./html

rm -f *.lo

make[1]: Leaving directory `/home/bf1942/3.0.3/objdir/doc'

Making clean in dep

make[1]: Entering directory `/home/bf1942/3.0.3/objdir/dep'

Making clean in ACE_wrappers

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/dep/ACE_wrappers'

Making clean in ace

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/ACE_wrappers/ace'

test -z "" || rm -f

test -z "libACE.la" || rm -f libACE.la

rm -f "./so_locations"

rm -rf .libs _libs

rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*

rm -f gcctemp.c gcctemp so_locations *.ics

rm -rf cxx_repository ptrepository ti_files

rm -rf templateregistry ir.out

rm -rf ptrepository SunWS_cache Templates.DB

rm -f *.o

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/ACE_wrappers/ace'

Making clean in .

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/ACE_wrappers'

rm -rf .libs _libs

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/ACE_wrappers'

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/ACE_wrappers'

Making clean in src

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/dep/src'

Making clean in zthread

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/src/zthread'

test -z "libZThread.la" || rm -f libZThread.la

rm -f "./so_locations"

rm -rf .libs _libs

rm -f *.o

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/src/zthread'

Making clean in zlib

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/src/zlib'

rm -rf .libs _libs

test -z "libzlib.a" || rm -f libzlib.a

rm -f *.o

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/src/zlib'

Making clean in sockets

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/src/sockets'

rm -rf .libs _libs

test -z "libmangossockets.a" || rm -f libmangossockets.a

rm -f *.o

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/src/sockets'

Making clean in g3dlite

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/src/g3dlite'

rm -rf .libs _libs

test -z "libg3dlite.a" || rm -f libg3dlite.a

rm -f *.o

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/src/g3dlite'

Making clean in .

make[3]: Entering directory `/home/bf1942/3.0.3/objdir/dep/src'

rm -rf .libs _libs

rm -f *.lo

make[3]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/src'

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/src'

Making clean in lib

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/dep/lib'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/lib'

Making clean in include

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/dep/include'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/dep/include'

Making clean in .

make[2]: Entering directory `/home/bf1942/3.0.3/objdir/dep'

rm -rf .libs _libs

rm -f *.lo

make[2]: Leaving directory `/home/bf1942/3.0.3/objdir/dep'

make[1]: Leaving directory `/home/bf1942/3.0.3/objdir/dep'

Making clean in .

make[1]: Entering directory `/home/bf1942/3.0.3/objdir'

rm -rf .libs _libs

rm -f *.lo

make[1]: Leaving directory `/home/bf1942/3.0.3/objdir'

bf1942@BF1942-PC:~/3.0.3/objdir$ cd ..

bf1942@BF1942-PC:~/3.0.3$ rm -r objdir

bf1942@BF1942-PC:~/3.0.3$

so i also dont have a mangosd i only have run-mangosd in /src/mangosd when i open that i get line 9 ./mangosd doesent exist andline 12 wait: pid 1066 not in child of this shell also 1067 same error

go ahead and delete my quote after youve seen it or tell me how to make it scrollable

Link to comment
Share on other sites

configure: creating ./config.status
.infig.status: error: cannot find input file: 

Please, sombody help me with this error ...:confused:

Did you autoreconf?

I had this problem before, though. I fixed it by redownloading, reconfing, and then running ./configure again. It's a common error that I found on google, but their way of fixing it was to totally reinstall everything. Oy!

Link to comment
Share on other sites

configure: error: Missing openssl

this error write in configure ...

i had same problem untill i installed this packages:

libbeecrypt7-4.2.0-0.20080216.1mdv2008.1.i586.rpm

libcryptopp5-5.1-2mdk.i586.rpm

libcryptopp5-devel-5.1-2mdk.i586.rpm

libcryptopp-debug-5.5.1-2mdv2008.0.i586.rpm

libopenssl0.9.8-0.9.8g-4mdv2008.1.i586.rpm

libopenssl0.9.8-devel-0.9.8g-4mdv2008.1.i586.rpm

--

Link to comment
Share on other sites

brace yourselves... MASSIVE list of undefined referances.....

autoheader (GNU Autoconf) 2.61

automake (GNU automake) 1.10.1

ltmain.sh (GNU libtool) 2.2.6

gcc version 4.3.2 (GCC)

I DO have all the various -devel things (im on arch linux... we don't split headers off)

http://pastebin.com/m46d058e4

first few lines as follows, tons more and with different libs undefined on the pastebin:

"libtool: link: g++ -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -march=k8 -O2 -pipe -rdynamic -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o .libs/mangos-worldd CliRunnable.o Main.o Master.o RASocket.o WorldRunnable.o -Wl,--export-dynamic -L/home/ascent/sources/mangos/build/dep/src/sockets -L/home/ascent/sources/mangos/build/dep/src/zthread -L/home/ascent/sources/mangos/build/dep/src/g3dlite -L/home/ascent/sources/mangos/build/src/bindings/ScriptDev2 -L/home/ascent/srv/lib -L/usr/lib/mysql -lmysqlclient_r -lcrypt -lnsl -lm -L/usr/lib -lcrypto -lz -lssl ../../dep/ACE_wrappers/ace/.libs/libACE.so -ldl ../bindings/ScriptDev2/.libs/libmangosscript.so ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/.libs/libZThread.so ../../dep/src/g3dlite/libg3dlite.a -lpthread -pthread -Wl,-rpath -Wl,/home/ascent/srv/lib

../game/libmangosgame.a(ScriptCalls.o): In function `UnloadScriptingModule()':

ScriptCalls.cpp:(.text+0x1e): undefined reference to `dlclose'

../game/libmangosgame.a(ScriptCalls.o): In function `LoadScriptingModule(char const*)':

ScriptCalls.cpp:(.text+0xa2): undefined reference to `dlopen'

ScriptCalls.cpp:(.text+0xbd): undefined reference to `dlsym'

ScriptCalls.cpp:(.text+0xda): undefined reference to `dlsym'

ScriptCalls.cpp:(.text+0xf8): undefined reference to `dlsym'

../game/libmangosgame.a(ScriptCalls.o):ScriptCalls.cpp:(.text+0x152): more undefined references to `dlsym' follow

../game/libmangosgame.a(ScriptCalls.o): In function `LoadScriptingModule(char const*)':

ScriptCalls.cpp:(.text+0x3b2): undefined reference to `dlclose' "

Link to comment
Share on other sites

i have a problem with ACE, after the configure, when i run make i got this error

GNUmakefile:21: /include/makeinclude/macros.GNU: No such file or directory
make[4]: *** No rule to make target `/include/makeinclude/macros.GNU'.  Stop.

someone have a solution ?

Link to comment
Share on other sites

Hi,

/bin/sh ../../libtool --tag=CXX --mode=link g++  -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2   -o mangos-worldd -L../../dep/src/sockets -L../../dep/src/zthread -L../../dep/src/g3dlite -L../bindings/ScriptDev2/ -L/home/games/wow//lib -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib -lssl -lcrypto -lz  -lssl ../../dep/ACE_wrappers/ace/libACE.la  -export-dynamic CliRunnable.o Main.o Master.o RASocket.o WorldRunnable.o ../bindings/ScriptDev2/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a  ../../dep/src/zthread/libZThread.la ../../dep/src/g3dlite/libg3dlite.a -lpthread
g++ -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -o .libs/mangos-worldd CliRunnable.o Main.o Master.o RASocket.o WorldRunnable.o -Wl,--export-dynamic  -L/home/lgf/games/mangos/objdir/dep/src/sockets -L/home/lgf/games/mangos/objdir/dep/src/zthread -L/home/lgf/games/mangos/objdir/dep/src/g3dlite -L/home/lgf/games/mangos/objdir/src/bindings/ScriptDev2 -L/home/games/wow//lib -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient_r.so -L/usr/lib -lcrypt -lnsl -lm -lcrypto -lz -lssl ../../dep/ACE_wrappers/ace/.libs/libACE.so -lrt -ldl -L/usr/i486-slackware-linux/bin -L/usr/i486-slackware-linux/lib ../bindings/ScriptDev2/.libs/libmangosscript.so ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/.libs/libZThread.so /usr/lib/libstdc++.so ../../dep/src/g3dlite/libg3dlite.a -lpthread  -Wl,--rpath -Wl,/usr/lib/mysql -Wl,--rpath -Wl,/home/games/wow//lib
../game/libmangosgame.a(Player.o).debug_loc+0x11578): undefined reference to `.LVL3775'
../game/libmangosgame.a(Player.o).debug_loc+0x11580): undefined reference to `.LVL3775'
../game/libmangosgame.a(Player.o).debug_loc+0x116e6): undefined reference to `.LVL3775'
../game/libmangosgame.a(Player.o).debug_loc+0x116ee): undefined reference to `.LVL3775'
collect2: ld returned 1 exit status
make[3]: *** [mangos-worldd] Error 1
make[3]: Leaving directory `/home/lgf/games/mangos/objdir/src/mangosd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lgf/games/mangos/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lgf/games/mangos/objdir'
make: *** [all] Error 2

What I can do?

Thanks and Have a great week-end!

Link to comment
Share on other sites

×
×
  • 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