Open wowmui opened 8 years ago
应该没有问题 刚从上边clone了一份下来是可以编过去的
大哥,请问您用的是什么cmake选项? 用pch吗? 我执行的是cmake ../ -DCMAKE_INSTALL_PREFIX=../../run -DDEBUG=0
全部delete了重新clone 估计是有cmakelist的缓存
仍然不行.AhtiCheat.cpp.o过不去.
src/game/CMakeFiles/game.dir/build.make:3412: recipe for target 'src/game/CMakeFiles/game.dir/AntiCheat.cpp.o' failed make[2]: *** [src/game/CMakeFiles/game.dir/AntiCheat.cpp.o] Error 1 CMakeFiles/Makefile2:686: recipe for target 'src/game/CMakeFiles/game.dir/all' failed make[1]: *** [src/game/CMakeFiles/game.dir/all] Error 2 Makefile:117: recipe for target 'all' failed make: *** [all] Error 2
[ 23%] Building CXX object src/game/CMakeFiles/game.dir/AntiCheat.cpp.o In file included from /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:21:0: /home/cmangos/mangos-classic/src/game/AntiCheat.h:100:37: error: ‘DeathState’ has not been declared void SetLastLiveState(DeathState state); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:121:57: error: ‘Item’ has not been declared bool DoAntiCheatCheck(AntiCheatCheck checkType, Item* item, Item* testitem) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:121:69: error: ‘Item’ has not been declared bool DoAntiCheatCheck(AntiCheatCheck checkType, Item* item, Item* testitem) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:198:9: error: ‘Unit’ does not name a type Unit* GetMover() { return m_currentMover;}; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:208:9: error: ‘DeathState’ does not name a type DeathState m_lastLiveState; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:218:9: error: ‘Unit’ does not name a type Unit* m_currentMover; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:228:9: error: ‘Item’ does not name a type Item* m_item; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:229:9: error: ‘Item’ does not name a type Item* mtestitem; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h: In member function ‘bool AntiCheat::DoAntiCheatCheck(AntiCheatCheck, int, int_)’: /home/cmangos/mangos-classic/src/game/AntiCheat.h:123:17: error: ‘m_item’ was not declared in this scope m_item = item; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.h:124:17: error: ‘m_testitem’ was not declared in this scope mtestitem = testitem; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In constructor ‘AntiCheat::AntiCheat(Player)’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:76:5: error: ‘m_currentMover’ was not declared in this scope mcurrentMover = ((Unit)player); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:89:5: error: ‘m_lastLiveState’ was not declared in this scope m_lastLiveState = ALIVE; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckNeeded(AntiCheatCheck)’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:347:27: error: ‘GetMover’ was not declared in this scope if (GetMover()->HasAura(56266)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:352:41: error: ‘GetMover’ was not declared in this scope if (isCanFly() || !GetMover()) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:365:17: error: ‘GetMover’ was not declared in this scope if (GetMover()->HasAura(60068) && GetMover()->GetTerrain()->IsUnderWater(m_currentmovementInfo->GetPos()->x, m_currentmovementInfo->GetPos()->y, m_currentmovementInfo->GetPos()->z - 5.0f)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:371:14: error: ‘GetMover’ was not declared in this scope GetMover()->GetTerrain()->IsUnderWater(m_currentmovementInfo->GetPos()->x, m_currentmovementInfo->GetPos()->y, m_currentmovementInfo->GetPos()->z - 5.0f)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckMovement()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:400:9: error: ‘m_currentMover’ was not declared in this scope m_currentMover = GetPlayer()->GetMover(); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:407:9: error: ‘m_currentMover’ was not declared in this scope mcurrentMover = ((Unit)GetPlayer()); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:417:32: error: ‘GetMover’ was not declared in this scope float delta_x = GetMover()->GetPositionX() - m_currentmovementInfo->GetPos()->x; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckSpeed()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:458:30: error: ‘GetMover’ was not declared in this scope speedRate = GetMover()->GetSpeed(MOVE_SWIM); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:463:30: error: ‘GetMover’ was not declared in this scope speedRate = GetMover()->GetSpeed(MOVE_WALK); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:468:30: error: ‘GetMover’ was not declared in this scope speedRate = GetMover()->GetSpeed(MOVE_RUN); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckWaterWalking()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:496:22: error: ‘GetMover’ was not declared in this scope if ( GetMover()->HasAuraType(SPELL_AURA_WATER_WALK) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckFly()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:574:15: error: ‘GetMover’ was not declared in this scope if (GetMover()->GetTerrain()->IsUnderWater(m_currentmovementInfo->GetPos()->x, m_currentmovementInfo->GetPos()->y, m_currentmovementInfo->GetPos()->z - 2.0f)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:577:25: error: ‘GetMover’ was not declared in this scope float map_z = GetMover()->GetMap()->GetHeight(GetPlayer()->GetPositionX(), GetPlayer()->GetPositionY(), GetPlayer()->GetPositionZ()); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckAirJump()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:595:80: error: ‘GetMover’ was not declared in this scope if (!m_currentmovementInfo->HasMovementFlag(MOVEFLAG_FALLING) || !GetMover()->m_movementInfo.HasMovementFlag(MOVEFLAG_FALLING)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckTp2Plane()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:611:18: error: ‘GetMover’ was not declared in this scope if (GetMover()->HasAuraType(SPELL_AURA_GHOST)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:616:21: error: ‘GetMover’ was not declared in this scope plane_z = GetMover()->GetMap()->GetHeight(GetPlayer()->GetPositionX(), GetPlayer()->GetPositionY(), GetPlayer()->GetPositionZ()) - m_currentmovementInfo->GetPos()->z; ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckOnTransport()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:660:19: error: ‘GetMover’ was not declared in this scope if (GetMover()->HasAura(56266)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: At global scope: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:865:6: error: prototype for ‘void AntiCheat::SetLastLiveState(DeathState)’ does not match any in class ‘AntiCheat’ void AntiCheat::SetLastLiveState(DeathState state) ^ In file included from /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:21:0: /home/cmangos/mangos-classic/src/game/AntiCheat.h:100:20: error: candidate is: void AntiCheat::SetLastLiveState(int) void SetLastLiveState(DeathState state); ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp: In member function ‘bool AntiCheat::CheckItemUpdate()’: /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:883:9: error: ‘m_testitem’ was not declared in this scope if (m_testitem && m_item && (m_item == m_testitem)) ^ /home/cmangos/mangos-classic/src/game/AntiCheat.cpp:883:23: error: ‘m_item’ was not declared in this scope if (m_testitem && m_item && (m_item == mtestitem)) ^ src/game/CMakeFiles/game.dir/build.make:3412: recipe for target 'src/game/CMakeFiles/game.dir/AntiCheat.cpp.o' failed make[2]: ** [src/game/CMakeFiles/game.dir/AntiCheat.cpp.o] Error 1 CMakeFiles/Makefile2:686: recipe for target 'src/game/CMakeFiles/game.dir/all' failed make[1]: * [src/game/CMakeFiles/game.dir/all] Error 2 Makefile:117: recipe for target 'all' failed make: * [all] Error 2