Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Confirm the problem on ubuntu and this works to me too https://github.com/f...7adab2a0fe4d22c

Erm, ok? One note here, since libmpq requires both the libbz2-library and zlib-library objects to already exist before it will do anything...

The entire linking is controlled by the sequence given in the original file, meaning libmpq will be linked in AFTER the other two has been compiled/linked in, and thus allowing for libMPQ itself to find the requested functions.

Why this alledgedly happens for you beats me, but for the sake of it, post the parameters you use for make during compilation (that means -j flags and whatnot). I can't see the reason for moving libMPQ -up- in the chain, it kind of counters the entire link-sequence. Unless they changed CMake somewhere and never posted it in their changelogs... :P

(Also, supply the entire cmake-configuration phase output so I can see where CMake actually grabs the headers from - it might be that it finds something you've installed locally, ie. not systemwide).

Link to comment
Share on other sites


-- The C compiler identification is GNU

-- The CXX compiler identification is GNU

-- Check for working C compiler: /usr/bin/gcc

-- Check for working C compiler: /usr/bin/gcc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detected 64-bit platform

-- UNIX: Using default configuration directory

-- UNIX: Using default library directory

-- UNIX: Configuring uninstall target

-- UNIX: Created uninstall target

-- GCC: All warnings disabled

-- Found ACE library: /usr/lib/libACE.so

-- Found ACE headers: /usr/include

-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so

-- Using mysql-config: /usr/bin/mysql_config

-- Found MySQL library: /usr/lib/libmysqlclient_r.so

-- Found MySQL headers: /usr/include/mysql

-- Found Readline library: /usr/lib/libreadline.so

-- Include dir is: /usr/include

-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4")

-- Found BZip2: /usr/lib/libbz2.so

-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so

-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found

* TrinityCore rev. hash  : 231b849ac4b2

* TrinityCore rev. date  : 2012-02-11 11:05:37 -0500

* TrinityCore buildtype  : Release

* Install core to		: /home/user/server

* Install libraries to   : /home/user/server/lib

* Install configs to	 : /home/user/server/etc

* Build world/auth	   : Yes (default)

* Build with scripts	 : Yes (default)

* Build map/vmap tools   : Yes

* Build core w/PCH	   : Yes (default)

* Build scripts w/PCH	: Yes (default)

* Use SFMT for RNG	   : No  (default)

* Show compile-warnings  : No  (default)

* Use coreside debug	 : No  (default)

-- SCRIPT PREPARATIONS

  -> Prepared: Spells

  -> Prepared: Commands

  -> Prepared: Examples

  -> Prepared: Custom

  -> Prepared: World

  -> Prepared: Outdoor PVP Zones

  -> Prepared: Eastern Kingdoms

  -> Prepared: Kalimdor

  -> Prepared: Outland

  -> Prepared: Northrend

-- SCRIPT PREPARATION COMPLETE

-- Configuring done

-- Generating done

-- Build files have been written to: /home/user/build

Link to comment
Share on other sites

Hi, I have a problem ... during compilation i´ve got this error ... please how fix it ? Thank you.


In file included from /home/mino/wow/tc/TrinityCore/src/server/game/Maps/MapManager.h:26,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/PrecompiledHeaders/gamePCH.h:7,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/game_pch_dephelp.cxx:1:

/home/mino/wow/tc/TrinityCore/src/server/game/Maps/Map.h:169: error: declaration of ‘uint16 GridMap::_liquidType’

/home/mino/wow/tc/TrinityCore/src/server/game/Maps/Map.h:166: error: conflicts with previous declaration ‘uint8* GridMap::_liquidType’

In file included from /home/mino/wow/tc/TrinityCore/src/server/game/Entities/Unit/Unit.h:33,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/Entities/Pet/Pet.h:23,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/Entities/Player/Player.h:33,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/Globals/ObjectAccessor.h:31,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/PrecompiledHeaders/gamePCH.h:9,

                 from /home/mino/wow/tc/TrinityCore/src/server/game/game_pch_dephelp.cxx:1:

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:85: error: ‘_Ty’ was not declared in this scope

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:85: error: template argument 1 is invalid

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:85: error: template argument 2 is invalid

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:88: error: ‘_Ty’ has not been declared

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:109: error: ‘_Ty’ does not name a type

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:110: error: ‘_Ty’ does not name a type

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:112: error: ‘_Ty’ has not been declared

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:113: error: ‘_Ty’ has not been declared

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h: In member function ‘void MotionMaster::push(int)’:

/home/mino/wow/tc/TrinityCore/src/server/game/Movement/MotionMaster.h:88: error: invalid conversion from ‘int’ to ‘MovementGenerator*’

make[2]: *** [src/server/game/CMakeFiles/game_pch_dephelp.dir/game_pch_dephelp.cxx.o] Error 1

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

make: *** [all] Error 2

Link to comment
Share on other sites

  • 2 weeks later...

4>------ Build started: Project: worldserver, Configuration: Release Win32 ------

4>Build started 2/23/2012 4:41:59 PM.

4>InitializeBuildStatus:

4> Touching "worldserver.dir\Release\worldserver.unsuccessfulbuild".

4>CustomBuild:

4> All outputs are up-to-date.

4>ClCompile:

4> All outputs are up-to-date.

4> All outputs are up-to-date.

4>ResourceCompile:

4> All outputs are up-to-date.

4>Link:

4> Creating library C:/Users/N A T U R A L/Desktop/Build/src/server/worldserver/Release/worldserver.lib and object C:/Users/N A T U R A L/Desktop/Build/src/server/worldserver/Release/worldserver.exp

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

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

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

4>C:\Users\N A T U R A L\Desktop\Build\bin\Release\worldserver.exe : fatal error LNK1120: 3 unresolved externals

4>

4>Build FAILED.

Link to comment
Share on other sites

Hi Team, i found an Error in your rSource-Code, here it goes:


[ 15%] Building CXX object src/server/game/CMakeFiles/game.dir/Calendar/CalendarMgr.cpp.o

In file included from /home/wow_trinity/TrinityCore/src/server/game/Calendar/CalendarMgr.h:22,

from /home/wow_trinity/TrinityCore/src/server/game/Calendar/CalendarMgr.cpp:49:

/home/wow_trinity/TrinityCore/src/server/game/Calendar/Calendar.h: In constructor 'CalendarAction::CalendarAction()':

/home/wow_trinity/TrinityCore/src/server/game/Calendar/Calendar.h:219: error: class 'CalendarAction' does not have any field named '_guid'

compilation terminated due to -Wfatal-errors.

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

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

make: *** [all] Error 2

wow_trinity@***************:~/TrinityCore$ git pull

Already up-to-date.

wow_trinity@***************:~/TrinityCore$

Compiled with (Folders existing):

cmake ../TrinityCore/ -DSERVERS=1 -DSCRIPTS=1 -DTOOLS=1 -DWITH_WARNINGS=1 -DPREFIX=/home/wow_trinity/0_auth -DCONF_DIR=/home/wow_trinity/0_auth/conf -DLIBSDIR=/home/wow_trinity/0_auth/libs

System Debian Squeeze 64bit (vServer) -> All Depencies installed

Edited by Izze
Link to comment
Share on other sites

Greetings community, Im wondering if there is a way so that, when I clone the trinity source, I can do it from an specific date or commit number, for.example. Clone the source updated up to Jan-31, (It's February now) so that i can avoid certain recent updates that have been breaking important stuff in the game.

Thanks in advance.

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