Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

Dunno....

Linux 3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:24 CET 2014 x86_64

apt-get install libncurses5-dev

Reading package lists... Done

Building dependency tree

Reading state information... Done

libncurses5-dev is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.

Link to comment
Share on other sites

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

It worked! (Compiled). But following all steps, when executing WorldServer of the following error:

 

http://pastebin.com/3JZRruxL

 

But the authserver seems to work perfectly!

Using configuration file /home/servidor/etc/authserver.conf.
OpenSSL 1.0.1e 11 Feb 2013 (Library: OpenSSL 1.0.1e 11 Feb 2013)
Opening DatabasePool 'auth'. Asynchronous connections: 1, synchronous connections: 1.
MySQL client library: 5.5.37
MySQL server ver: 5.5.37-0+wheezy1
Connected to MySQL database at 127.0.0.1
MySQL client library: 5.5.37
MySQL server ver: 5.5.37-0+wheezy1
Connected to MySQL database at 127.0.0.1
DatabasePool 'auth' opened successfully. 2 total connections running.
Started auth database connection pool.
Updating Realm List...
Added realm "Trinity" at xxxxxxxxxxxxxx

The message is an error connecting to the database, but authserver can connect. I searched the forum and on google and I believe it is something related to updates of the database, but already tried all I could.

 

SOLVED

 

Solution: update world database.

Edited by Ermano
Link to comment
Share on other sites

nobody can answer my question? what should i do with this error : 

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  cmake/macros/FindOpenSSL.cmake:176 (find_package_handle_standard_args)
  CMakeLists.txt:56 (find_package)
Link to comment
Share on other sites

Scanning dependencies of target worldserver
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/Master.cpp.o
Linking CXX executable worldserver
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountSetPasswordCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc]+0x97): undefined reference to `Battlenet::AccountMgr::GetId(std::string const&)'
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc]+0x19b): undefined reference to `Battlenet::AccountMgr::ChangePassword(unsigned int, std::string)'
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountPasswordCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc]+0xa2): undefined reference to `Battlenet::AccountMgr::CheckPassword(unsigned int, std::string)'
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc]+0x106): undefined reference to `Battlenet::AccountMgr::ChangePassword(unsigned int, std::string)'
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountCreateCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript26HandleAccountCreateCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript26HandleAccountCreateCommandEP11ChatHandlerPKc]+0xdc): undefined reference to `Battlenet::AccountMgr::CreateBattlenetAccount(std::string, std::string)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2

Link to comment
Share on other sites


Scanning dependencies of target worldserver
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/Master.cpp.o
Linking CXX executable worldserver
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountSetPasswordCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc]+0x97): undefined reference to `Battlenet::AccountMgr::GetId(std::string const&)'
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc]+0x19b): undefined reference to `Battlenet::AccountMgr::ChangePassword(unsigned int, std::string)'
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountPasswordCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc]+0xa2): undefined reference to `Battlenet::AccountMgr::CheckPassword(unsigned int, std::string)'
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc]+0x106): undefined reference to `Battlenet::AccountMgr::ChangePassword(unsigned int, std::string)'
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountCreateCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript26HandleAccountCreateCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript26HandleAccountCreateCommandEP11ChatHandlerPKc]+0xdc): undefined reference to `Battlenet::AccountMgr::CreateBattlenetAccount(std::string, std::string)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2

Known issue of 4.3.4 branch.

Link to comment
Share on other sites

i could fix that error i changed openssl-64bit to OpenSSL and it fixed but now I have this error :

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)

i think i will have errors till die :((

Link to comment
Share on other sites

One of them is required to compile TC, the other one is specifically listed in the INSTRUCTIONS as not to be used.

so the reason of this error is for that?

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)

can u give me a link for download that version i couldnt find what u said on openssl.com

Link to comment
Share on other sites

so the reason of this error is for that?

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)

can u give me a link for download that version i couldnt find what u said on openssl.com

 

http://collab.kpsn.org/display/tc/How-to_Win#How-to_Win-SoftwareRequired

Link to comment
Share on other sites


Scanning dependencies of target worldserver
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/Master.cpp.o
Linking CXX executable worldserver
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountSetPasswordCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc]+0x97): undefined reference to `Battlenet::AccountMgr::GetId(std::string const&)'
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript31HandleAccountSetPasswordCommandEP11ChatHandlerPKc]+0x19b): undefined reference to `Battlenet::AccountMgr::ChangePassword(unsigned int, std::string)'
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountPasswordCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc]+0xa2): undefined reference to `Battlenet::AccountMgr::CheckPassword(unsigned int, std::string)'
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript28HandleAccountPasswordCommandEP11ChatHandlerPKc]+0x106): undefined reference to `Battlenet::AccountMgr::ChangePassword(unsigned int, std::string)'
../scripts/libscripts.a(cs_battlenet_account.cpp.o): In function `battlenet_account_commandscript::HandleAccountCreateCommand(ChatHandler*, char const*)':
cs_battlenet_account.cpp:(.text._ZN31battlenet_account_commandscript26HandleAccountCreateCommandEP11ChatHandlerPKc[_ZN31battlenet_account_commandscript26HandleAccountCreateCommandEP11ChatHandlerPKc]+0xdc): undefined reference to `Battlenet::AccountMgr::CreateBattlenetAccount(std::string, std::string)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2

Fixed.

Link to comment
Share on other sites

--- Canned message start ---

Trinity does not support repacks.

Please learn to compile and configure the source yourself, you will learn more and may even find that the error doesnt exist in vanilla TC.

Please refer to the author of the repack for your questions if you continue to use said repack.

--- Canned message end ---

  • Upvote 1
Link to comment
Share on other sites

I downloaded multiple versions of it and none of them worked

 

this comes up each time: 

The C compiler identification is unknown

The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:12 (project):
No CMAKE_C_COMPILER could be found.


 

CMake Error at CMakeLists.txt:12 (project):
No CMAKE_CXX_COMPILER could be found.


 

Configuring incomplete, errors occurred!

See also "C:/Users/Premal/Desktop/Build/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Premal/Desktop/Build/CMakeFiles/CMakeError.log".

Edited by Sicarius
Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes locked this topic
  • Carbenium unlocked this topic
  • Aokromes pinned and locked this topic
  • Aokromes featured and featured this topic
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...