- 0
mangos zero Compile Error: ‘GetGameObjectAI’ is not a member of ‘SD3’
-
Recently Browsing 0 members
- No registered users viewing this page.
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
Question
Max Wang
I am compiling mangos zero server follow below article on my ubuntu_16.04, but error occurred. Anyone know what i can do next?
Firstly, when i execute "git clone https://github.com/mangoszero/server.git --recursive --depth 1", below error occurred:
fatal: reference is not a tree: 69a7b14d723f0145df9eb2cb2fcf40b50b48a3ff
fatal: reference is not a tree: d1f1854d3f96ec0fcb7141ea22731c432eaf0d63
Unable to checkout '69a7b14d723f0145df9eb2cb2fcf40b50b48a3ff' in submodule path 'src/modules/Eluna'
Unable to checkout 'd1f1854d3f96ec0fcb7141ea22731c432eaf0d63' in submodule path 'src/modules/SD3'
To fix it, i execute below command, seems it worked, but don't know whether it will caused error when compiling.
cd /root/mangos/server/src/modules/Eluna
git checkout -b Eluna
cd /root/mangos/server/src/modules/SD3
git checkout -b SD3
Then, execute cmake, and no error occurred.
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/bin/mangos
After that, i execute command make, below error message occurred.
--------------------------------------------------------------------------
[ 74%] Building CXX object src/game/CMakeFiles/game.dir/WorldHandlers/ScriptMgr.cpp.o
/root/mangos/server/src/game/WorldHandlers/ScriptMgr.cpp: In member function ‘GameObjectAI* ScriptMgr::GetGameObjectAI(GameObject*)’:
/root/mangos/server/src/game/WorldHandlers/ScriptMgr.cpp:2500:16: error: ‘GetGameObjectAI’ is not a member of ‘SD3’
return SD3::GetGameObjectAI(pGo);
^
/root/mangos/server/src/game/WorldHandlers/ScriptMgr.cpp: In member function ‘bool ScriptMgr::OnGameObjectUse(Unit*, GameObject*)’:
/root/mangos/server/src/game/WorldHandlers/ScriptMgr.cpp:2752:41: error: invalid conversion from ‘Unit*’ to ‘Player*’ [-fpermissive]
return SD3::GOUse(pUnit, pGameObject);
^
In file included from /root/mangos/server/src/game/WorldHandlers/ScriptMgr.cpp:49:0:
/root/mangos/server/src/modules/SD3/system/ScriptDevMgr.h:76:17: note: initializing argument 1 of ‘static bool SD3::GOUse(Player*, GameObject*)’
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now