Jump to content

[Solved] Ubuntu - MZero - Trouble pulling/compiling Rel19


wtfcolt

Recommended Posts

Posted
server:~/wow$ git clone -b Rel19 https://github.com/mangoszero/server ./source

Cloning into './source'...

remote: Counting objects: 64815, done.

remote: Compressing objects: 100% (12483/12483), done.

remote: Total 64815 (delta 52071), reused 64797 (delta 52061)

Receiving objects: 100% (64815/64815), 61.22 MiB | 1.04 MiB/s, done.

Resolving deltas: 100% (52071/52071), done.

warning: Remote branch Rel19 not found in upstream origin, using HEAD instead

Any attempt to compile this produces an auctionhousebot error, [-fpermissive], but I'm assuming that's because it's not pulling the right branch. git branch shows no other branches other than head.

Scanning dependencies of target game

[ 31%] Building CXX object src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o

In file included from /home/wtfcolt/wow/source/src/game/AuctionHouseBot/AuctionHouseBot.h:28:0,

from /home/wtfcolt/wow/source/src/game/AuctionHouseBot/AuctionHouseBot.cpp:25:

/home/wtfcolt/wow/source/src/game/World.h:601:54: error: declaration of ‘typedef class std::tr1::unordered_map<unsigned int, WorldSession*> World::SessionMap’ [-fpermissive]

/home/wtfcolt/wow/source/src/game/World.h:396:46: error: changes meaning of ‘SessionMap’ from ‘typedef class std::tr1::unordered_map<unsigned int, WorldSession*> SessionMap’ [-fpermissive]

make[2]: *** [src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o] Error 1

make[1]: *** [src/game/CMakeFiles/game.dir/all] Error 2

make: *** [all] Error 2

Thanks in advance for any input!

EDIT: Blonde moment. -b Rev19Warden after checking the github. Install guide just needs an update.

EDIT2: That branch seems to be missing /wardend/WardendProtocol.h, so I guess my question now is which branch should I use, master, rev19warden, or neo's?

-maddogz

Posted

I am working on this issue. I do not know if Antz tested this under Linux prior to moving it to master, but I had this issue before it was moved to master and had started on it already. Maybe Antz knows of this issue and has a solution, but I know he is really busy.

*EDIT*

Clone master, change into "./server" and do this:

git submodule init
git submodule update

Then configure and build it. It does not fix the AHBot issue but does handle another issue.

Posted

Thanks for your reply. I've done init and update on all compile attempts. From what I've been looking up, a forward declaration should fix it, but then again I'm dumber than two flat rocks.

Posted

I've been staring at this. It notes that this is something that may compile in windows but not linux.

xcode - C++ odd compile error: error: changes meaning of "Object" from class "Object" - Stack Overflow

The solution is to use a qualified name, ::Player. This tells the compiler which scope to use for lookup (global) which in turn means HalfSet::Player is not even considered.

Like what's mentioned in some replies there, I've tried messing around adding :: in both places "typedef UNORDERED_MAP<uint32, WorldSession*> SessionMap;" is in the file, one at a time, but really, im shootin in the dark when it comes to this stuff

Posted

I was looking at removing one of those definitions when my server went down. Which definition was removed, the first or second? I'll just pull the new version once my physical server is back up, but I am curious.

Archived

This topic is now archived and is closed to further replies.

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