Giter VIP home page Giter VIP logo

xuehyc / xcore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trinitycore/trinitycore

23.0 23.0 9.0 8.66 GB

10.1.0.49801

License: GNU General Public License v3.0

Shell 0.01% C++ 92.62% Python 0.12% Perl 0.01% C 5.99% PHP 0.07% Objective-C 0.03% CMake 0.45% Batchfile 0.03% GDB 0.01% Dockerfile 0.01% TSQL 0.05% Lua 0.47% Makefile 0.01% D 0.01% M4 0.01% Roff 0.09% Starlark 0.01% Meson 0.02% PowerShell 0.01%

xcore's People

Contributors

aokromes avatar ariel- avatar carbenium avatar dduarte avatar dr-j avatar funjoker avatar fuzionproject avatar jackpoz avatar joschiwald avatar kaelima avatar killyana avatar machiavell1 avatar malcrom avatar mdx7 avatar meji46 avatar offl avatar qaston avatar rochet2 avatar runningnak3d avatar rushor avatar shauren avatar shocker avatar star-lion avatar subv avatar treeston avatar vincent-michael avatar xuehyc avatar xurxogr avatar zenox92 avatar zxbiohazardzx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xcore's Issues

在linux编译错误

Description

编译环境
debian11

xx@debian:~$ clang --version
Debian clang version 11.0.1-2

xx@debian:~$ cmake --version
cmake version 3.18.4

xx@debian:~$ dpkg -S /usr/include/boost/version.hpp
libboost1.74-dev:amd64: /usr/include/boost/version.hpp

xx@debian:~$ mariadb --version
mariadb Ver 15.1 Distrib 10.5.18-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

错误日志

In file included from :1:
In file included from /home/xx/XCore/build/src/server/game/CMakeFiles/game.dir/cmake_pch.hxx:5:
/home/xx/XCore/src/server/game/PrecompiledHeaders/gamePCH.h:24:10: fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/Maps/Map.h', but encoding is not supported
#include "Map.h"
^
1 error generated.

In file included from :1:
In file included from /home/xx/XCore/build/src/server/game/CMakeFiles/game.dir/cmake_pch.hxx:5:
In file included from /home/xx/XCore/src/server/game/PrecompiledHeaders/gamePCH.h:28:
/home/xx/XCore/src/server/game/Entities/Player/Player.h:3019:106: error: redefinition of 'BoundInstancesMap'
typedef std::unordered_map<Difficulty, std::unordered_map<uint32 /mapId/, InstancePlayerBind>> BoundInstancesMap;
^
/home/xx/XCore/src/server/game/Entities/Player/Player.h:2639:106: note: previous definition is here
typedef std::unordered_map<Difficulty, std::unordered_map<uint32 /mapId/, InstancePlayerBind>> BoundInstancesMap;
^
1 error generated.

fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/AI/PlayerAI/BotAI.cpp', but encoding is not supported
1 error generated.

/home/xx/XCore/src/server/game/AI/PlayerAI/BotAITool.h:14:10: fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/Phasing/PhasingHandler.h', but encoding is not supported
#include "PhasingHandler.h"
^
1 error generated.

In file included from /home/xx/XCore/src/server/game/AI/PlayerAI/BotAI.cpp:33:
/home/xx/XCore/src/server/game/Server/Packets/MiscPackets.h:37:10: fatal error: 'Server\Packets\InspectPackets.h' file not found
#include <Server\Packets\InspectPackets.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/game/AI/PlayerAI/BotAI.cpp:40:10: fatal error: 'Battlegrounds\Battleground.h' file not found
#include <Battlegrounds\Battleground.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/AI/ScriptedAI/ScriptedGossip.cpp', but encoding is not supported
1 error generated.

In file included from /home/xx/XCore/src/server/game/AI/ScriptedAI/ScriptedGossip.cpp:18:
/home/xx/XCore/src/server/game/AI/ScriptedAI/ScriptedGossip.h:22:10: fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/Entities/Creature/GossipDef.h', but encoding is not supported
#include "GossipDef.h"
^
1 error generated.

fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/Accounts/BattlenetAccountMgr.cpp', but encoding is not supported
1 error generated.

/home/xx/XCore/src/server/game/Achievements/CriteriaHandler.cpp:38:10: fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/game/Maps/MapManager.h', but encoding is not supported
#include "MapManager.h"
^
1 error generated.

/home/xx/XCore/src/server/game/Entities/Player/Player.cpp:140:10: fatal error: '..\Custom\DynamicResurrection\DynamicResurrection.h' file not found
#include "..\Custom\DynamicResurrection\DynamicResurrection.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.

/home/xx/XCore/src/server/game/Server/Packets/MiscPackets.cpp:22:10: fatal error: 'Time.h' file not found
#include "Time.h"
^~~~~~~~
1 error generated.

fatal error: UTF-16 (LE) byte order mark detected in '/home/xx/XCore/src/server/scripts/Custom/custom_script_loader.cpp', but encoding is not supported
1 error generated.

/home/xx/XCore/src/server/scripts/Custom/duelrest.cpp:3:10: fatal error: 'chat.h' file not found
#include "chat.h"
^~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Custom/login_reset.cpp:3:10: fatal error: 'world.h' file not found
#include "world.h" //后加的库,必须
^~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Custom/npc_8000000_guardianangel.cpp:26:10: fatal error: 'wtypes.h' file not found
#include <wtypes.h>
^~~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Draenor/Auchindoun/boss_nyami.cpp:6:10: fatal error: 'G3D\Vector3.h' file not found
#include "G3D\Vector3.h"
^~~~~~~~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Kalimdor/ashenvale/ashenvale.cpp:30:10: fatal error: 'scriptPCH.h' file not found
#include "scriptPCH.h"
^~~~~~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Kalimdor/azshara/azshara.cpp:30:10: fatal error: 'scriptPCH.h' file not found
#include "scriptPCH.h"
^~~~~~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Kalimdor/winterspring/winterspring.cpp:30:10: fatal error: 'scriptPCH.h' file not found
#include "scriptPCH.h"
^~~~~~~~~~~~~
1 error generated.

/home/xx/XCore/src/server/scripts/Zandalar/zone_nazmir.cpp:54:44: error: no matching conversion for functional-style cast from 'Quests' to 'QuestObjective'
if (!player->GetQuestObjectiveData(QuestObjective(QUEST_ITS_ALIVE)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/xx/XCore/src/server/game/Quests/QuestDef.h:393:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Quests' to 'const QuestObjective' for 1st argument
struct QuestObjective
^
/home/xx/XCore/src/server/game/Quests/QuestDef.h:393:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'Quests' to 'QuestObjective' for 1st argument
/home/xx/XCore/src/server/game/Quests/QuestDef.h:393:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
/home/xx/XCore/src/server/scripts/Zandalar/zone_nazmir.cpp:63:85: error: no matching conversion for functional-style cast from 'Quests' to 'QuestObjective'
if (player->HasQuest(QUEST_PARTING_MISTS) && !player->GetQuestObjectiveData(QuestObjective(QUEST_PARTING_MISTS)))//,2
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/xx/XCore/src/server/game/Quests/QuestDef.h:393:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Quests' to 'const QuestObjective' for 1st argument
struct QuestObjective
^
/home/xx/XCore/src/server/game/Quests/QuestDef.h:393:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'Quests' to 'QuestObjective' for 1st argument
/home/xx/XCore/src/server/game/Quests/QuestDef.h:393:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
2 errors generated.

Expected behaviour

需要修复脚本编码错误和头文件大小写错误

Steps to reproduce the problem

参照第一步

Branch

master

TC rev. hash/commit

Operating system

Debian 11 x64

Custom changes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.