Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

Hey guys,

Pulled rev 8577 today using the steps provided here for my Debian Lenny installation. Everything goes well, until this happens..

../../../src/game/Level0.cpp: In member function âbool ChatHandler::HandleGMListIngameCommand(const char*)â:

../../../src/game/Level0.cpp:155: error: âHashMapHolderâ was not declared in this scope

../../../src/game/Level0.cpp:155: error: expected primary-expression before â>â token

../../../src/game/Level0.cpp:155: error: â::MapTypeâ has not been declared

../../../src/game/Level0.cpp:155: error: âmâ was not declared in this scope

../../../src/game/Level0.cpp:155: error: expected primary-expression before â>â token

../../../src/game/Level0.cpp:155: error: â::GetContainerâ has not been declared

../../../src/game/Level0.cpp:156: error: expected primary-expression before â>â token

../../../src/game/Level0.cpp:156: error: â::MapTypeâ has not been declared

../../../src/game/Level0.cpp:156: error: expected `;' before âitrâ

../../../src/game/Level0.cpp:157: error: âitrâ was not declared in this scope

make[3]: *** [Level0.o] Error 1

make[3]: Leaving directory `/home/testuser/mangos/objdir/src/game'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/testuser/mangos/objdir/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/testuser/mangos/objdir'

make: *** [all] Error 2

Any ideas?

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

appending configuration tag "F77" to libtool

checking for a BSD-compatible install... /usr/bin/install -c

../configure: line 20154: PKG_PROG_PKG_CONFIG: command not found

checking for pthread_create in -lpthread... yes

checking for compress in -lz... yes

checking for ftime in -lcompat... no

../configure: line 20478: syntax error near unexpected token `OPENSSL,'

../configure: line 20478: `PKG_CHECK_MODULES(OPENSSL, openssl, , AC_MSG_ERROR([Missing openssl]))'

I get through most of the installation and this is what happens. Ive been usen mangos for a while now <.< Not sure why it did this when i installed it on a fresh Debian Server.

Anyone give me a Clue? Never had this problem on my freebsd box.

Link to comment
Share on other sites

../configure: line 20478: syntax error near unexpected token `OPENSSL,'

../configure: line 20478: `PKG_CHECK_MODULES(OPENSSL, openssl, , AC_MSG_ERROR([Missing openssl]))'

Hey there,

I had similar problem awhile back on new install...

Try installing this package first :)

apt-get install libcurl4-openssl-dev

Link to comment
Share on other sites

nope didnt work. Anything else you got on ur mind?

**NOTE** I figured it out after 30 minutes of Apt-get install.

libdatetime-format-strptime-perl xspecs libgfortran3-dbg gdb ratfor libtool libsidl-dev libgfortran3 pgf95 gawk f2c gcc-multilib libgcc1ssl-cert libcurl3 libace-ssl-5.6.3 libxmlsec1-openssl libssl0.9.8-dbg libssl0.9.8 libssl-dev libcurl4-openssl-dev

**NOTE** yes all this crap is what i had to install to get mangos running ;\\ if someone says "You dont need this or that" well it wouldnt work, i restarted the install after every package being added. within those lines are the tools you need.

Anyways Debian installers

apt-get install ibdatetime-format-strptime-perl xspecs libgfortran3-dbg gdb ratfor libtool libsidl-dev libgfortran3 pgf95 gawk f2c gcc-multilib libgcc1ssl-cert libcurl3 libace-ssl-5.6.3 libxmlsec1-openssl libssl0.9.8-dbg libssl0.9.8 libssl-dev libcurl4-openssl-dev

Link to comment
Share on other sites

Excuse me, English I do not own, I write through the translator

At attempt compile on linux (gentoo) after a command:

autoreconf - instal - force

Writes:

autoreconf --install --force

.ibtoolize: AC_CONFIG_MACRO_DIR([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4

autoreconf-2.63: libtoolize failed with exit status: 1

libtool it is established last revision

How now to compile?

Link to comment
Share on other sites

Hey guys!

I have compiled the source and the server runs greate!

But i have deleted mangos-worldd & mangos-realmd...

But when i compile now a new source he dont create a new mangos-worldd & mangos-realmd file... why?

Same problem when compiling 8746 with latest sd2. It creates correctly all the lib files, it even creates the bin directory with the genrevision file but both, mangos-realmd and mangos-worldd are not created.

Link to comment
Share on other sites

I happens to my system also SuSE 10.2

Mangos revision 8763

ScriptDev2 revision 1492

babel:/munka/mangos # git apply src/bindings/ScriptDev2/patches/MaNGOS-8735-ScriptDev2.patch

error: patch failed: src/mangosd/Makefile.am:46

error: src/mangosd/Makefile.am: patch does not apply

Link to comment
Share on other sites

hi.

There is some problem with compilation mangos(8769) + sd2(1493) on FreeBSD...

"../../../dep/tbb/build/common.inc", line 27: Need an operator
"../../../dep/tbb/build/common.inc", line 28: Missing dependency operator
"../../../dep/tbb/build/common.inc", line 29: Need an operator
"../../../dep/tbb/build/common.inc", line 30: Need an operator
"../../../dep/tbb/build/common.inc", line 32: Missing dependency operator
"../../../dep/tbb/build/common.inc", line 33: Missing dependency operator
"../../../dep/tbb/build/common.inc", line 34: Need an operator
"../../../dep/tbb/build/common.inc", line 35: Need an operator
"../../../dep/tbb/build/common.inc", line 36: Missing dependency operator
"../../../dep/tbb/build/common.inc", line 37: Need an operator
"../../../dep/tbb/build/common.inc", line 38: Need an operator
"../../../dep/tbb/build/common.inc", line 39: Missing dependency operator
"../../../dep/tbb/build/common.inc", line 40: Need an operator
"../../../dep/tbb/build/common.inc", line 41: Need an operator
"../../../dep/tbb/build/common.inc", line 42: Need an operator
"../../../dep/tbb/build/common.inc", line 43: Need an operator
"../../../dep/tbb/build/common.inc", line 44: Need an operator
Error expanding embedded variable.
*** Error code 1

Stop in /usr/home/mangos/mangos/objdir/dep.
*** Error code 1

Stop in /usr/home/mangos/mangos/objdir.
*** Error code 1

Stop in /usr/home/mangos/mangos/objdir.

Any proposition...

p.s. sorry for my english. :)

Link to comment
Share on other sites

Is the tutorial up to date on the commands?

Ive tried several times getting this going, and frankly, im starting to get pissed off.

Seeing as how the original "tutorial" was put up quite a long time ago, and also that there are sever people in this thread saying 'do this, not that', I just want to make sure Im doing everything right.

Link to comment
Share on other sites

CXX Mail.o

In file included from ../../../src/game/Mail.cpp:19:

../../../src/game/Mail.h:60: error: 'MailStationery' has not been declared

../../../src/game/Mail.h:64: error: expected `)' before '*' token

../../../src/game/Mail.h:69: error: 'MailStationery' does not name a type

../../../src/game/Mail.h:73: error: 'MailStationery' does not name a type

../../../src/game/Mail.h:60: error: 'MAIL_STATIONERY_NORMAL' was not declared in this scope

../../../src/game/Mail.h: In constructor 'MailSender::MailSender(MailMessageType, uint32, int)':

../../../src/game/Mail.h:61: error: class 'MailSender' does not have any field named 'm_stationery'

../../../src/game/Mail.h: At global scope:

../../../src/game/Mail.h:80: error: expected `)' before '*' token

../../../src/game/Mail.h:81: error: expected `)' before '*' token

../../../src/game/Mail.h:83: error: ISO C++ forbids declaration of 'Player' with no type

../../../src/game/Mail.h:83: error: expected ';' before '*' token

../../../src/game/Mail.h:84: error: expected `;' before 'uint32'

../../../src/game/Mail.h:86: error: ISO C++ forbids declaration of 'Player' with no type

../../../src/game/Mail.h:86: error: expected ';' before '*' token

../../../src/game/Mail.h: In constructor 'MailReceiver::MailReceiver(uint32)':

../../../src/game/Mail.h:79: error: class 'MailReceiver' does not have any field named 'm_receiver'

../../../src/game/Mail.h: At global scope:

../../../src/game/Mail.h:112: error: 'MailCheckMask' has not been declared

../../../src/game/Mail.h:115: error: 'Player' has not been declared

../../../src/game/Mail.h:112: error: 'MAIL_CHECK_MASK_NONE' was not declared in this scope

../../../src/game/Mail.cpp: In member function 'void WorldSession::HandleSendMail(WorldPacket&)':

../../../src/game/Mail.cpp:260: error: no matching function for call to 'MailReceiver::MailReceiver(Player*&, uint32)'

../../../src/game/Mail.h:79: note: candidates are: MailReceiver::MailReceiver(uint32)

../../../src/game/Mail.h:77: note: MailReceiver::MailReceiver(const MailReceiver&)

../../../src/game/Mail.cpp: In member function 'void WorldSession::HandleMailTakeItem(WorldPacket&)':

../../../src/game/Mail.cpp:449: error: no matching function for call to 'MailReceiver::MailReceiver(Player*&, uint32&)'

../../../src/game/Mail.h:79: note: candidates are: MailReceiver::MailReceiver(uint32)

../../../src/game/Mail.h:77: note: MailReceiver::MailReceiver(const MailReceiver&)

../../../src/game/Mail.cpp: At global scope:

../../../src/game/Mail.cpp:776: error: prototype for 'MailSender::MailSender(Object*, MailStationery)' does not match any in class 'MailSender'

../../../src/game/Mail.h:58: error: candidates are: MailSender::MailSender(const MailSender&)

../../../src/game/Mail.h:65: error: MailSender::MailSender(AuctionEntry*)

../../../src/game/Mail.h:60: error: MailSender::MailSender(MailMessageType, uint32, int)

../../../src/game/Mail.cpp: In constructor 'MailSender::MailSender(AuctionEntry*)':

../../../src/game/Mail.cpp:805: error: class 'MailSender' does not have any field named 'm_stationery'

../../../src/game/Mail.cpp: At global scope:

../../../src/game/Mail.cpp:810: error: prototype for 'MailReceiver::MailReceiver(Player*)' does not match any in class 'MailReceiver'

../../../src/game/Mail.h:77: error: candidates are: MailReceiver::MailReceiver(const MailReceiver&)

../../../src/game/Mail.h:79: error: MailReceiver::MailReceiver(uint32)

../../../src/game/Mail.cpp:814: error: prototype for 'MailReceiver::MailReceiver(Player*, uint32)' does not match any in class 'MailReceiver'

../../../src/game/Mail.h:77: error: candidates are: MailReceiver::MailReceiver(const MailReceiver&)

../../../src/game/Mail.h:79: error: MailReceiver::MailReceiver(uint32)

../../../src/game/Mail.cpp:824: error: prototype for 'void MailDraft::PrepareItems(Player*)' does not match any in class 'MailDraft'

../../../src/game/Mail.h:115: error: candidate is: void MailDraft::PrepareItems(int*)

../../../src/game/Mail.cpp: In member function 'void MailDraft::SendReturnToSender(uint32, uint32, uint32)':

../../../src/game/Mail.cpp:902: error: no matching function for call to 'MailReceiver::MailReceiver(Player*&, uint32&)'

../../../src/game/Mail.h:79: note: candidates are: MailReceiver::MailReceiver(uint32)

../../../src/game/Mail.h:77: note: MailReceiver::MailReceiver(const MailReceiver&)

../../../src/game/Mail.cpp: At global scope:

../../../src/game/Mail.cpp:905: error: prototype for 'void MailDraft::SendMailTo(const MailReceiver&, const MailSender&, MailCheckMask, uint32)' does not match any in class 'MailDraft'

../../../src/game/Mail.h:112: error: candidate is: void MailDraft::SendMailTo(const MailReceiver&, const MailSender&, int, uint32)

make[3]: *** [Mail.o] Error 1

make[3]: Leaving directory `/mangos/objdir/src/game'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/mangos/objdir/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/mangos/objdir'

make: *** [all] Error 2

mangos 8770

how to resolve ?

thanks

Link to comment
Share on other sites

  • 2 weeks later...

...
checking for compress in -lz... yes
checking for ftime in -lcompat... no
checking for OPENSSL... configure: error: Missing openssl

for ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos/dat

debian

mangos 8849

Link to comment
Share on other sites

  • 1 month later...

Hey guys, i'm new to linux and i'm stuck in this tutorial...

It seem to be a stupid and simple error but i cant fix it by myself :

First of all when i install (sorry my console is in french)

Des erreurs ont été rencontrées pendant l'exécution*: (Some error have been found during the execution)

acpid

acpi-support

E: Sub-process /usr/bin/dpkg returned an error code (1)

Then when i try "git apply src/bindings/ScriptDev2/patches/MaNGOS-8759-ScriptDev2.patch " i got :

admin@ks33425:~$ sudo git am src/bindings/ScriptDev2/patches/MaNGOS-8759-ScriptDev2.patch

fatal: Not a git repository

/usr/bin/git-sh-setup: line 145: cd: .git: Aucun fichier ou dossier de ce type //(no file or folder of that type ?)

Unable to determine absolute path of git directory

and if i try to compile with directly i got this directory error :

admin@ks33425:~/objdir$ ../configure --prefix=/home/admin/mangos --sysconfdir=/home/admin/mangos/etc --enable-cli --enable-ra --datadir=/home/admin/mangos/dat

bash: ../configure: Aucun fichier ou dossier de ce type //(=No file or folder of this type)

admin@ks33425:~/objdir$ make

make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. //(=No target specified and no makefile found. stop.)

admin@ks33425:~/objdir$ make install-j2

make: *** Pas de règle pour fabriquer la cible « install-j2 ». Arrêt. //(=No rule for create target « install-j2 ». stop.)

So any idea of what noobish mistake i didn't see ?

PS : For ce path of the compilation i've tryd few different but nothing worked here is my mangos path :

/home/admin/mangos

Thx for any help :D Sorry for my english ;-)

Link to comment
Share on other sites

Hey guys, i'm new to linux and i'm stuck in this tutorial...

It seem to be a stupid and simple error but i cant fix it by myself :

First of all when i install (sorry my console is in french)

Then when i try "git apply src/bindings/ScriptDev2/patches/MaNGOS-8759-ScriptDev2.patch " i got :

and if i try to compile with directly i got this directory error :

So any idea of what noobish mistake i didn't see ?

PS : For ce path of the compilation i've tryd few different but nothing worked here is my mangos path :

/home/admin/mangos

Thx for any help :D Sorry for my english ;-)

It seems to me that you are in the wrong directory. After you do the git clone you need to cd into the created mangos directory before you run anything else. You pull from svn from within that directory and you create objdir under that directory. You are running your commands from your home directry and not ~/mangos

Link to comment
Share on other sites

Hi guys.

I get error when compile the last mangos rev.

mv -f .deps/Item.Tpo .deps/Item.Po

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I/usr/include/mysql -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/home/mangos/server/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT ItemEnchantmentMgr.o -MD -MP -MF .deps/ItemEnchantmentMgr.Tpo -c -o ItemEnchantmentMgr.o ../../../src/game/ItemEnchantmentMgr.cpp

mv -f .deps/ItemEnchantmentMgr.Tpo .deps/ItemEnchantmentMgr.Po

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I/usr/include/mysql -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/home/mangos/server/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT ItemHandler.o -MD -MP -MF .deps/ItemHandler.Tpo -c -o ItemHandler.o ../../../src/game/ItemHandler.cpp

mv -f .deps/ItemHandler.Tpo .deps/ItemHandler.Po

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I/usr/include/mysql -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/home/mangos/server/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT Level0.o -MD -MP -MF .deps/Level0.Tpo -c -o Level0.o ../../../src/game/Level0.cpp

mv -f .deps/Level0.Tpo .deps/Level0.Po

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I/usr/include/mysql -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/home/mangos/server/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT Level1.o -MD -MP -MF .deps/Level1.Tpo -c -o Level1.o ../../../src/game/Level1.cpp

mv -f .deps/Level1.Tpo .deps/Level1.Po

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I/usr/include/mysql -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/home/mangos/server/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT Level2.o -MD -MP -MF .deps/Level2.Tpo -c -o Level2.o ../../../src/game/Level2.cpp

In file included from ../../../src/game/Level2.cpp:46:

../../../src/game/TargetedMovementGenerator.h: In constructor ‘ChaseMovementGenerator<T>::ChaseMovementGenerator(Unit&)’:

../../../src/game/TargetedMovementGenerator.h:82: error: class ‘ChaseMovementGenerator<T>’ does not have any field named ‘TargetedMovementGeneratorMedium’

../../../src/game/TargetedMovementGenerator.h: In constructor ‘ChaseMovementGenerator<T>::ChaseMovementGenerator(Unit&, float, float)’:

../../../src/game/TargetedMovementGenerator.h:84: error: class ‘ChaseMovementGenerator<T>’ does not have any field named ‘TargetedMovementGeneratorMedium’

../../../src/game/TargetedMovementGenerator.h: In constructor ‘FollowMovementGenerator<T>::FollowMovementGenerator(Unit&)’:

../../../src/game/TargetedMovementGenerator.h:100: error: class ‘FollowMovementGenerator<T>’ does not have any field named ‘TargetedMovementGeneratorMedium’

../../../src/game/TargetedMovementGenerator.h: In constructor ‘FollowMovementGenerator<T>::FollowMovementGenerator(Unit&, float, float)’:

../../../src/game/TargetedMovementGenerator.h:102: error: class ‘FollowMovementGenerator<T>’ does not have any field named ‘TargetedMovementGeneratorMedium’

make[3]: *** [Level2.o] Error 1

make[3]: Leaving directory `/home/mangos/mangos/temp/src/game'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/mangos/mangos/temp/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/mangos/mangos/temp'

make: *** [all] Error 2

Link to comment
Share on other sites

  • 1 month later...

I need some help too, I hope this thread is not completely deserted... I got the following error while trying to compile rev. 9581. (only SD2 added, no other patches) What could be wrong here?

g++ -DHAVE_CONFIG_H -I. -I../../../../src/shared/Database -I../../.. -I../../../../dep/ACE_wrappers -I../../../dep/ACE_wrappers -I../../../src/shared -I../../../../src/shared/Database -I../../../../src/shared/Database/../../../dep/include -I../../../../src/shared/Database/../../framework -I../../../../src/shared/Database/../../shared -I../../../../src/shared/Database/../../../dep/include/g3dlite -g -O2 -MT Database.o -MD -MP -MF .deps/Database.Tpo -c -o Database.o ../../../../src/shared/Database/Database.cpp

In file included from ../../../../src/shared/Database/DatabaseEnv.h:39,

from ../../../../src/shared/Database/Database.cpp:19:

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:30:19: error: mysql.h: No such file or directory

In file included from ../../../../src/shared/Database/DatabaseEnv.h:39,

from ../../../../src/shared/Database/Database.cpp:19:

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:36: error: expected `)' before '*' token

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:43: error: 'enum_field_types' has not been declared

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:46: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:46: error: expected ';' before '*' token

In file included from ../../../../src/shared/Database/DatabaseEnv.h:41,

from ../../../../src/shared/Database/Database.cpp:19:

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:72: error: ISO C++ forbids declaration of 'MYSQL' with no type

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:72: error: expected ';' before '*' token

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:77: error: 'MYSQL_RES' has not been declared

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:77: error: 'MYSQL_FIELD' has not been declared

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h: In member function 'virtual DatabaseMysql::operator bool() const':

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:58: error: 'mMysql' was not declared in this scope

Link to comment
Share on other sites

I just installed them:

# aptitude show libmysql++-dev

Package: libmysql++-dev

State: installed

Are there any oher MySQL developer libraries that I'm unaware of and need to be installed? Or maybe I have to run .configure again after installing them? I only performed a make clean and issued make again.

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