Jump to content

Compile Error: ‘GetGameObjectAI’ is not a member of ‘SD3’


Recommended Posts

Posted

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*)’

 

Posted
On 6/14/2020 at 9:42 AM, antz said:

In both the sd3 and eluna folders, issue the following command :

git pull

Tried it just now, but still not fixed. Below is the detail information.

After i executed below command, it show me "There is no tracking information for the current branch."

cd /root/mangos/server/src/modules/Eluna
git checkout -b Eluna

git pull

 

Detail information:

-------------------------------------------------------------------------------------

root@ip-172-31-38-92:~/mangos/server/src/modules/Eluna# git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> Eluna

-------------------------------------------------------------------------------------

And then i executed command below, it show me "error: the requested upstream branch 'origin/Eluna' does not exist"

git branch --set-upstream-to=origin/Eluna Eluna

 

-------------------------------------------------------------------------------------

error: the requested upstream branch 'origin/Eluna' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
-------------------------------------------------------------------------------------

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