Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

Did you followed the wiki step-by-step? Notice that during the git extensions installation there is a option you have to select for everything to work.

Also, did you checked if your firewall isn't blocking git from connecting to web?

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

I try to compile the code using

make -j 2

and i get an error around 12-13%

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp: In member function ‘bool MySQLConnection::_HandleMySQLErrno(uint32)’:

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp:521:13: error: ‘sleep’ is not a member of ‘ACE_OS’

make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Database/MySQLConnection.cpp.o] Error 1

make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp: In member function ‘bool MySQLConnection::_HandleMySQLErrno(uint32)’:

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp:521:13: error: ‘sleep’ is not a member of ‘ACE_OS’

make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Database/MySQLConnection.cpp.o] Error 1

make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp: In member function ‘bool MySQLConnection::_HandleMySQLErrno(uint32)’:

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp:521:13: error: ‘sleep’ is not a member of ‘ACE_OS’

make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Database/MySQLConnection.cpp.o] Error 1

make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp: In member function ‘bool MySQLConnection::_HandleMySQLErrno(uint32)’:

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp:521:13: error: ‘sleep’ is not a member of ‘ACE_OS’

make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Database/MySQLConnection.cpp.o] Error 1

make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

any input on the reason of this error, I been following the Linux Howto guide on the TrinityCore wikki

Link to comment
Share on other sites

I also get this error then the compile closes

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp: In member function ‘bool MySQLConnection::_HandleMySQLErrno(uint32)’:

/home/Paul/TrinityCore/src/server/shared/Database/MySQLConnection.cpp:521:13: error: ‘sleep’ is not a member of ‘ACE_OS’

make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Database/MySQLConnection.cpp.o] Error 1

make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

[ 32%] Built target game

make: *** [all] Error 2

Paul@linux-yvxi:~/TrinityCore/build>

Link to comment
Share on other sites

Could you be a bit more vague, i can almost tell what version of ACE libs Mysql and such you are using, and, knowing that info will keep me from being able to help you at all. Also, if you were to post the hash revision of the core or the DB revision, etc. the mods might just have to lock this topic!

Link to comment
Share on other sites

Hello i have a issue with my core, i updated my core and upated my sql db with the updates and i tried to compile in c++ 64 and 32 bits i get ========== Build: 17 succeeded, 2 failed, 0 up-to-date, 0 skipped========== Never had this issue before, please help :)

Link to comment
Share on other sites

--- Canned message start ---

I would love to be able to just say: "Look in upper right hand corner of the forum, there is a button labeled SEARCH, please use it", but I don't think that will be enough therefore I present to you:

searchbuttonfordummieslsq1.jpg

Please read it cover to cover, and don't bother posting again until you do!

--- Canned message end ---

  • Upvote 1
Link to comment
Share on other sites

Complete!

root@server [/wow/build]# make

[ 2%] Built target jemalloc

[ 7%] Built target g3dlib

[ 8%] Built target gsoap

[ 8%] Built target revision.h

[ 9%] Built target shared_pch_dephelp

[ 9%] Built target pch_Generate_shared

[ 11%] Built target shared

[ 11%] Built target game_pch_dephelp

[ 12%] Built target pch_Generate_game

[ 12%] Building CXX object src/server/game/CMakeFiles/game.dir/Accounts/AccountMgr.cpp.o

<command line>:1: fatal error: had to relocate PCH

compilation terminated.

Preprocessed source stored into /tmp/ccKats7p.out file, please attach this to your bugreport.

make[2]: *** [src/server/game/CMakeFiles/game.dir/Accounts/AccountMgr.cpp.o] Error 1

make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2

make: *** [all] Error 2

ive set this up before but for some reason this time it wont work.

Link to comment
Share on other sites

Hello,

First, sorry for my bad english...^^

I've a problem during compilation :

[ 55%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/duskwood.cpp.o

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp: In member function âvoid Spell::SelectSpellTargets()â:

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp:770: error: âSPELL_ATTR0_UNK18â was not declared in this scope

[ 56%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/ScarletMonastery/boss_azshir_the_sleepless.cpp.o

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp: In member function âSpellCastResult Spell::CheckCast(bool)â:

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp:4875: error: âSPELL_ATTR0_UNK18â was not declared in this scope

[ 56%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/ScarletMonastery/boss_mograine_and_whitemane.cpp.o

make[2]: *** [src/server/game/CMakeFiles/game.dir/Spells/Spell.cpp.o] Erreur 1

make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Erreur 2

make[1]: *** Attente des tâches non terminées....
And others errors :

[ 99%] Built target scripts

make: *** [all] Erreur 2

[  2%] Built target jemalloc

[  7%] Built target g3dlib

[  8%] Built target gsoap

[  8%] Built target revision.h

[  9%] Built target shared_pch_dephelp

[  9%] Built target pch_Generate_shared

[ 11%] Built target shared

[ 11%] Built target game_pch_dephelp

[ 12%] Built target pch_Generate_game

[ 12%] Building CXX object src/server/game/CMakeFiles/game.dir/Spells/Spell.cpp.o

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp: In member function âvoid Spell::SelectSpellTargets()â:

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp:770: error: âSPELL_ATTR0_UNK18â was not declared in this scope

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp: In member function âSpellCastResult Spell::CheckCast(bool)â:

/home/trinity/TrinityCore/src/server/game/Spells/Spell.cpp:4875: error: âSPELL_ATTR0_UNK18â was not declared in this scope

make[2]: *** [src/server/game/CMakeFiles/game.dir/Spells/Spell.cpp.o] Erreur 1

make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Erreur 2

make: *** [all] Erreur 2

trinity@server1:~$

I don't understand, i've already do a server without error, 2 days ago,

Today i've done the Debian updates with apt-get upgrade, and there wasn't any packet to remove... Only updates.

Any idea ?

Thanks in advance,

Link to comment
Share on other sites

  • 3 weeks later...

Greetings,

I am not new here, at trinity forums, but this problem has occured me and i cant solve it...

I am having a Windows Web Server 2008 R2 64bit.

I installed Microsoft C++ 2010, and OpenSSL 32bit and 64bit, and all packages from microsoft...

So i get newest revision from Trinity GitHub, i go to CMake, choose where i have put it, and put a Bulid Directory...

I choose option Visual Studio 10 ( Not 64x, because there are errors, when you are doing 64x)

When i press Configure, i get this... Can anyone help me?

Thanks in advance....

Error:

Check for working C compiler using: Visual Studio 10

Check for working C compiler using: Visual Studio 10 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

  The C compiler "cl" is not able to compile a simple test program.


  It fails with the following output:


   Change Dir: C:/World of Warcraft Server/Emulator & Database/TrinityBulid/CMakeFiles/CMakeTmp




  Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\VCExpress.exe

  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec




  Microsoft (R) Visual C++ 2010 Express Version 10.0.30319.1.


  Copyright (C) Microsoft Corp.  All rights reserved.




  Unable to read the project file "ALL_BUILD.vcxproj".


  C:\World of Warcraft Server\Emulator &

  Database\TrinityBulid\CMakeFiles\CMakeTmp\ALL_BUILD.vcxproj(113,121): The

  project file could not be loaded.  An error occurred while parsing

  EntityName.  Line 113, position 121.


  Unable to read the project file "cmTryCompileExec.vcxproj".


  C:\World of Warcraft Server\Emulator &

  Database\TrinityBulid\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj(58,111):

  The project file could not be loaded.  An error occurred while parsing

  EntityName.  Line 58, position 111.


  Invalid project




  Use:


  vcexpress [solutionfile | projectfile | anyfile.ext] [switches]




  The first argument for vcexpress is usually a solution file or project

  file.


  You can also use any other file as the first argument if you want to have

  the


  file open automatically in an editor.  When you enter a project file, the

  IDE


  looks for an .sln file with the same base name as the project file in the


  parent directory for the project file.  If no such .sln file exists, then

  the


  IDE looks for a single .sln file that references the project.  If no such

  single


  .sln file exists, then the IDE creates an unsaved solution with a default

  .sln


  file name that has the same base name as the project file.




  Command line builds:


  vcexpress solutionfile.sln /build [ solutionconfig ] [ /project

  projectnameorfile [ /projectconfig name ] ]


  Available command line switches:




  /Log		Logs IDE activity to the specified file for troubleshooting.


  /ResetSettings	Restores the IDE's default settings, optionally resets to


  		the specified VSSettings file.


  /SafeMode	Launches the IDE in safe mode loading minimal windows.




  Product-specific switches:




  /debugexe	Open the specified executable to be debugged.  The


  	remainder of the command line is passed to this


  		executable as its arguments.


  /useenv		Use PATH, INCLUDE, LIBPATH, and LIB environment variables


  		instead of IDE paths for VC++ builds.




  To attach the debugger from the command line, use:


  	VsJITDebugger.exe -p <pid>






  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:12 (project)



Configuring incomplete, errors occurred!

Kind Regards

Squeezee

Edited by Squeezee
Link to comment
Share on other sites

  • 2 weeks later...

this is the error


4>game.lib(ScriptLoader.obj) : error LNK2019: unresolved external symbol "void __cdecl AddSC_my_script(void)" (?AddSC_my_script@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)

4>C:\Users\User\Desktop\build\bin\Release\worldserver.exe : fatal error LNK1120: 1 unresolved externals

5>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------

5>  Build all projects

6>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------

6>Project not selected to build for this solution configuration

========== Build: 4 succeeded, 1 failed, 9 up-to-date, 1 skipped ==========

How can i fix it ? :X

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...