mattyx14 / otxserver

OTX Server from:
https://docs.opentibiabr.com
GNU General Public License v2.0
228 stars 195 forks source link

[lib related-confirmed]new errors at compilation process in the path 7.x otx2 #612

Closed pasturryx closed 5 years ago

pasturryx commented 5 years ago

Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'boost/tr1/unordered_set.hpp': No such file or directory TheOTXServer c:\users\felip\onedrive\escritorio\path_7_x\sources\otsystem.h 39

Severity Code Description Project File Line Suppression State Error (active) cannot open source file "boost/tr1/unordered_set.hpp" TheOTXServer c:\Users\felip\OneDrive\Escritorio\path_7_x\sources\tile.h 21

Severity Code Description Project File Line Suppression State Error (active) cannot open source file "boost/tr1/unordered_set.hpp" TheOTXServer c:\Users\felip\OneDrive\Escritorio\path_7_x\sources\otsystem.h 39

Severity Code Description Project File Line Suppression State Error (active) cannot open source file "boost/tr1/unordered_map.hpp" TheOTXServer c:\Users\felip\OneDrive\Escritorio\path_7_x\sources\luascript.h 41

Severity Code Description Project File Line Suppression State Error (active) cannot open source file "boost/tr1/unordered_map.hpp" TheOTXServer c:\Users\felip\OneDrive\Escritorio\path_7_x\sources\game.h 21

1>c:\users\felip\onedrive\escritorio\path_7_x\sources\otsystem.h(39): fatal error C1083: Cannot open include file: 'boost/tr1/unordered_set.hpp': No such file or directory

Reason184 commented 5 years ago

What's your visual studio version?

pasturryx commented 5 years ago

2015 as it has been always

pasturryx commented 5 years ago

2015 as it has been always

pasturryx commented 5 years ago

i have a pc now im using the same libs as always this issue is related to the commits that were recently made i have another datapack older sources files and i can compile them normally they are 1 month old if im not wrong

mattyx14 commented 5 years ago

possible for the it motive .. lasted 8.6 are most complete and no marge lasted changes on others protocols

Reason184 commented 5 years ago

@Felipe21 Did you manage to compile/test it?

pasturryx commented 5 years ago

@Reason184 msvc 2015 no bro something its wrong with the new editions and the boost libs i have re installed, deleted all declared variables on the system, everything over and over and i always get this

1>  waitlist.cpp
1>  weapons.cpp
1>  Generating code
1>  Finished generating code
1>libboost_regex-vc140-mt-1_64.lib(instances.obj) : error LNK2005: "private: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __cdecl boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::do_assign(char const *,char const *,unsigned int)" (?do_assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@AEAAAEAV12@PEBD0I@Z) already defined in boost_regex-vc140-mt.lib(boost_regex-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "public: __cdecl boost::thread::thread(void)" (??0thread@boost@@QEAA@XZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "public: virtual __cdecl boost::detail::thread_data_base::~thread_data_base(void)" (??1thread_data_base@detail@boost@@UEAA@XZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "public: void __cdecl boost::thread::detach(void)" (?detach@thread@boost@@QEAAXXZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "class boost::thread::id __cdecl boost::this_thread::get_id(void)" (?get_id@this_thread@boost@@YA?AVid@thread@2@XZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "public: class boost::thread::id __cdecl boost::thread::get_id(void)const " (?get_id@thread@boost@@QEBA?AVid@12@XZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "private: bool __cdecl boost::thread::join_noexcept(void)" (?join_noexcept@thread@boost@@AEAA_NXZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>libboost_thread-vc140-mt-1_64.lib(thread.obj) : error LNK2005: "private: bool __cdecl boost::thread::start_thread_noexcept(void)" (?start_thread_noexcept@thread@boost@@AEAA_NXZ) already defined in boost_thread-vc140-mt.lib(boost_thread-vc142-mt-x64-1_70.dll)
1>C:\Users\felip\OneDrive\Escritorio\path_7_x\sources\msvc\x64\Release\TheOTXServer.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
pasturryx commented 5 years ago

@mattyx14

mattyx14 commented 5 years ago

Today install vc on my PC and try

pasturryx commented 5 years ago

Please mam XD.. I'm sure that it's not me... And thanks:)

mattyx14 commented 5 years ago
1>------ Operación Compilar iniciada: proyecto: TheOTXServer, configuración: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  baseevents.cpp
1>  beds.cpp
1>  chat.cpp
1>  combat.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasemysql.cpp
1>  databasemysqlpp.cpp
1>  databasepgsql.cpp
1>  databasesqlite.cpp
1>  depot.cpp
1>  dispatcher.cpp
1>  exception.cpp
1>  fileloader.cpp
1>  game.cpp
1>  gameservers.cpp
1>  globalevent.cpp
1>  group.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioban.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  itemattributes.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>..\luascript.cpp(11280): warning C4319: '~': extensión de cero de tipo 'uint32_t' a un tipo 'lua_Number' de mayor tamaño
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocollogin.cpp
1>  raids.cpp
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spectators.cpp
1>  spells.cpp
1>  status.cpp
1>  talkaction.cpp
1>  teleport.cpp
1>  textlogger.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>  Generando código
1>  Generación de código finalizada
1>  TheOTXServer.vcxproj -> C:\Users\Usuario\Desktop\OTX 2 - GitHub\path_7_x\sources\msvc\x64\Release\TheOTXServer.exe
1>  TheOTXServer.vcxproj -> C:\Users\Usuario\Desktop\OTX 2 - GitHub\path_7_x\sources\msvc\x64\Release\TheOTXServer.pdb (Full PDB)
========== Compilar: 1 correctos, 0 incorrectos, 0 actualizados, 0 omitidos ==========

I use VC15 - Enterprise with boost 1.71

Wiki updated

pasturryx commented 5 years ago

ohhh so libraries must be changed i was using lib boost 164 as always update the wiki man

pasturryx commented 5 years ago

@mattyx14 i downloaded boost libs 1.71 x64 and changed the folder into eviroment varibables too but im still having libs issues

1>------ Rebuild All started: Project: TheOTXServer, Configuration: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  baseevents.cpp
1>  beds.cpp
1>  chat.cpp
1>  combat.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasemysql.cpp
1>  databasemysqlpp.cpp
1>  databasepgsql.cpp
1>  databasesqlite.cpp
1>  depot.cpp
1>  dispatcher.cpp
1>  exception.cpp
1>  fileloader.cpp
1>  game.cpp
1>  gameservers.cpp
1>  globalevent.cpp
1>  group.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioban.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  itemattributes.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>..\luascript.cpp(11322): warning C4319: '~': zero extending 'uint32_t' to 'lua_Number' of greater size
1>  monster.cpp
1>  monsters.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocollogin.cpp
1>  raids.cpp
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spectators.cpp
1>  spells.cpp
1>  status.cpp
1>  talkaction.cpp
1>  teleport.cpp
1>  textlogger.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>  Generating code
1>  Finished generating code
1>libboost_regex-vc140-mt-x64-1_71.lib(instances.obj) : error LNK2005: "private: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __cdecl boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::do_assign(char const *,char const *,unsigned int)" (?do_assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@AEAAAEAV12@PEBD0I@Z) already defined in boost_regex-vc140-mt.lib(boost_regex-vc142-mt-x64-1_70.dll)
1>C:\Users\felip\OneDrive\Escritorio\path_7_x\sources\msvc\x64\Release\TheOTXServer.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
pasturryx commented 5 years ago

edit @mattyx14 @Reason184 using msvc 2015 and 2019 same errors guys >.<al tessted lib boost 1.69 boost libs 1.71

1>libboost_regex-vc140-mt-x64-1_71.lib(instances.obj) : error LNK2005: "private: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __cdecl boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::do_assign(char const *,char const *,unsigned int)" (?do_assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@AEAAAEAV12@PEBD0I@Z) already defined in boost_regex-vc140-mt.lib(boost_regex-vc142-mt-x64-1_70.dll)
1>C:\Users\felip\OneDrive\Escritorio\sources 7x otx uptodate\sources\msvc\x64\Release\TheOTXServer.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

boost libs 1.70

Severity    Code    Description Project File    Line    Suppression State
Error   LNK1104 cannot open file 'libboost_regex-vc140-mt-x64-1_70.lib' TheOTXServer    C:\Users\felip\OneDrive\Escritorio\sources 7x otx uptodate\sources\msvc\LINK    1   

1>------ Build started: Project: TheOTXServer, Configuration: Release x64 ------
1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc140-mt-x64-1_70.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Reason184 commented 5 years ago

Something is wrong with your visual studio configuration, but I don't know what it is. It's compilling fine for me and matty

pasturryx commented 5 years ago

I have tested on msvc 2015 2017 and 2019 it can't be possible that all my compilers are corrupted, also mattyx says that the correct lib boost are 1.71 but you said that 1.70 were the correct ones, so which ones are the ones that should I use? I'll try reinstalling my msvc compilers again.. but I'm not having troubles compiling others distros

pasturryx commented 5 years ago

@mattyx14 @reason184

Reason184 commented 5 years ago

Any boost should be fine