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

I did download that.. 

 

If you installed both then it is probably confusing CMake and you need to set the LIBs manually:

  1. Open CMake and set your build / source directories
  2. Click File -> Delete Cache and answer Yes
  3. Click Tools -> Configure
  4. Choose Specify Native Compilers and click Next
  5. Browse to "cl.exe" for both the C and C++ compiler
  6. Click Finish
  7.  
  8. When it's done configuring, go to step 10
  9.  
  10. Uncheck USE_MYSQL_SOURCES and click Configure again
  11. Check the Advanced option
  12. Look for MYSQL_INCLUDE_DIR and point this to C:/Program Files/MySQL/5.5/include or wherever you installed MySQL Community Edition
  13. Look for MYSQL_LIBRARY and point this to C:/Program Files/MySQL/5.5/lib/libmysql.lib or wherever you installed MySQL Community Edition
  14. Click Configure
  15. Click Generate

 

You're done!

  • Upvote 1
Link to comment
Share on other sites

Yes i do. 

 

 

But...

Ok, so here's the deal. I already had Service pack 1 installed, but as anyone knows..

That doesn't mean anything as crap magically just gets corrupt in windows. (big shocker there)

So instead of doing a complete reinstall, i just tried to reinstall the Service pack and it seemed to resolve everything just fine.

 

If you're getting this error, then just reinstall the Service pack. Even if you think everything "should" work.

Link to comment
Share on other sites

Hello!

 

theese are the errors im getting from compiling, the latest source A.K.A Rev51

 

Error	1	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	collision
Error	2	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	game
Error	3	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	scripts
Error	4	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceBox.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	5	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceCapsule.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	6	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceBinaryInput.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	7	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceBinaryOutput.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	8	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceAny.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	9	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceAABox.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	10	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceCollisionDetection.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	11	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceCoordinateFrame.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	12	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceFileSystem.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	13	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceCylinder.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	14	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourcefileutils.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	15	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceformat.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	16	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceLine.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	17	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceLineSegment.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	18	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceLog.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	19	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceMatrix3.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	20	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceMatrix4.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	21	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceMemoryManager.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	22	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourcePlane.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	23	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourcePhysicsFrame.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	24	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceQuat.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	25	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceRay.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	26	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceRegistryUtil.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	27	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceSphere.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	28	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourcestringutils.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	29	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceSystem.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	30	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceTextInput.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	31	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceTriangle.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	32	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceTextOutput.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	33	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceVector2.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	34	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceUprightFrame.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	35	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceVector3.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	36	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcedepg3dlitesourceVector4.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	g3dlib
Error	37	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcesrcserverworldserverCommandLineCliRunnable.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	worldserver
Error	38	error C1083: Cannot open include file: 'sys/socket.h': No such file or directory (C:UsersRobertDesktopsourcesrcserverworldserverWorldThreadWorldRunnable.cpp)	C:UsersRobertDesktopsourcedepg3dliteincludeG3DSystem.h	22	1	worldserver

 

Hope someone got a answer for this :P

 

sincerly

OMGhixD

Link to comment
Share on other sites

Okei...so i was able to fix this, by actually uninstalling GIT, and continueing compiling....

This has nothing to do with Git. What compiler are you using? MSVC is the only compiled supported on Windows.

Link to comment
Share on other sites

Hi, Nay. I'm using Visual Studio 10. I had no problems with Cmake. I already changed the "Configuration Manager" to Release and platform to Win32, as it says in this tutorial. http://collab.kpsn.org/display/tc/How-to_Win (Compiling the Source). Never had a problem compiling other core emulators.

 

There is also the need of adding "-DWIN32" to the tools projects(mkdir bug).

Edited by Ricky
Link to comment
Share on other sites

  • 2 weeks later...

Hello!

 

Im having some problems compiling the last revision of TrinityCore on Linux (Archlinux).

 

Running CMake gives:

 


cmake ../TrinityCore/ -DPREFIX=/home/wowserv/server -DWITH_WARNINGS=1 -DTOOLS=1 -DUSE_COREPCH=0 -DUSE_SCRIPTPCH=0
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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 jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- Found ACE library: /usr/lib64/libACE.so
-- Found ACE headers: /usr/include
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so  
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib64/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found Readline library: /usr/lib64/libreadline.so
-- Include dir is: /usr/include
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7") 
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- Found git binary : /usr/bin/git

* TrinityCore revision   : 3b9ab08029a2+ 2013-03-15 23:02:11 +0100 (master branch)
* TrinityCore buildtype  : Release

* Install core to        : /home/wowserv/server
* Install libraries to   : /home/wowserv/server/lib
* Install configs to     : /home/wowserv/server/etc

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (default)
* Build map/vmap tools   : Yes
* Build core w/PCH       : No
* Build scripts w/PCH    : No
* Show all warnings      : Yes
* Use coreside debug     : No  (default)
* Use GIT revision hash  : Yes

-- 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
  -> Prepared: Events
-- SCRIPT PREPARATION COMPLETE

-- Configuring done
-- Generating done
-- Build files have been written to: /home/wowserv/build

 

When im trying to make (make -j 4) it gives me the following: 

 


[ 18%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/ReactorAI.cpp.o
[ 18%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_mage.cpp.o
[ 18%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/GameObjectAI.cpp.o
[ 19%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_paladin.cpp.o
[ 19%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/TotemAI.cpp.o
[ 19%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/PetAI.cpp.o
[ 19%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_item.cpp.o
[ 19%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/GuardAI.cpp.o
Scanning dependencies of target authserver
[ 19%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Authentication/AuthCodes.cpp.o
[ 19%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Realms/RealmList.cpp.o
[ 19%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_holiday.cpp.o
[ 19%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Server/RealmSocket.cpp.o
[ 19%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/CombatAI.cpp.o
[ 20%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Server/AuthSocket.cpp.o
[ 20%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Spells/spell_pet.cpp.o
[ 20%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_account.cpp.o
[ 21%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/UnitAI.cpp.o
[ 21%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Main.cpp.o
/home/wowserv/TrinityCore/src/server/authserver/Main.cpp: In function ‘int main(int, char**)’:
/home/wowserv/TrinityCore/src/server/authserver/Main.cpp:106:61: error: expected ‘)’ before ‘_BUILD_DIRECTIVE’
make[2]: *** [src/server/authserver/CMakeFiles/authserver.dir/Main.cpp.o] Error 1
make[1]: *** [src/server/authserver/CMakeFiles/authserver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 21%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_achievement.cpp.o
[ 21%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_ban.cpp.o
[ 21%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_bf.cpp.o
[ 21%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/PassiveAI.cpp.o
[ 21%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CreatureAI.cpp.o
[ 21%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_cast.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_character.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/AuctionHouse/AuctionHouseMgr.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlefield/Battlefield.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_cheat.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_debug.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_deserter.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_disable.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlefield/Zones/BattlefieldWG.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlefield/BattlefieldMgr.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/BattlegroundMgr.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_event.cpp.o
[ 22%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundNA.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_gm.cpp.o
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_go.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundRV.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundAB.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundDS.cpp.o
[ 23%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_gobject.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundEY.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundWS.cpp.o
[ 23%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_guild.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundBE.cpp.o
[ 23%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundAV.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_honor.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_instance.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_learn.cpp.o
[ 24%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundIC.cpp.o
[ 24%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundSA.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_lfg.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_list.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_lookup.cpp.o
[ 24%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_message.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Zones/BattlegroundRL.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Battleground.cpp.o
/home/wowserv/TrinityCore/src/server/scripts/Commands/cs_message.cpp: In static member function ‘static bool message_commandscript::HandleWhispersCommand(ChatHandler*, const char*)’:
/home/wowserv/TrinityCore/src/server/scripts/Commands/cs_message.cpp:216:81: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’
/home/wowserv/TrinityCore/src/server/scripts/Commands/cs_message.cpp:221:73: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_message.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/ArenaTeam.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/BattlegroundQueue.cpp.o
make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/ArenaTeamMgr.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Calendar/CalendarMgr.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Chat/Channels/ChannelMgr.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Chat/Channels/Channel.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Chat/ChatLink.cpp.o
[ 25%] Building CXX object src/server/game/CMakeFiles/game.dir/Chat/Chat.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/Combat/HostileRefManager.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/Combat/ThreatManager.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/Conditions/DisableMgr.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/Conditions/ConditionMgr.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/DataStores/DBCStores.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGScripts.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGQueue.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGGroupData.cpp.o
[ 26%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGPlayerData.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGMgr.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFG.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Player/SocialMgr.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Player/Player.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Transport/Transport.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Totem/Totem.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Unit/Unit.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Unit/StatSystem.cpp.o
[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Pet/Pet.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Vehicle/Vehicle.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Object/Object.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Object/ObjectPosSelector.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Object/Updates/UpdateData.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Object/Updates/UpdateFieldFlags.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/DynamicObject/DynamicObject.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Item/Container/Bag.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Item/ItemEnchantmentMgr.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Item/Item.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Creature/CreatureGroups.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Creature/TemporarySummon.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Creature/GossipDef.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Creature/Creature.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Corpse/Corpse.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/GameObject/GameObject.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Events/GameEventMgr.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Globals/ObjectMgr.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Globals/ObjectAccessor.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Grids/GridStates.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Grids/Notifiers/GridNotifiers.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Grids/ObjectGridLoader.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Groups/GroupReference.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Groups/Group.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Groups/GroupMgr.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Guilds/GuildMgr.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Guilds/Guild.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/SpellHandler.cpp.o
[ 30%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/TaxiHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/MovementHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/GroupHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/BattlefieldHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/ItemHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/GuildHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/MiscHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/SkillHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/CharacterHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/TradeHandler.cpp.o
[ 31%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/ArenaTeamHandler.cpp.o
/home/wowserv/TrinityCore/src/server/game/Handlers/CharacterHandler.cpp: In member function ‘void WorldSession::HandlePlayerLogin(LoginQueryHolder*)’:
/home/wowserv/TrinityCore/src/server/game/Handlers/CharacterHandler.cpp:863:33: error: expected ‘)’ before ‘_BUILD_DIRECTIVE’
[ 32%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/VoiceChatHandler.cpp.o
make[2]: *** [src/server/game/CMakeFiles/game.dir/Handlers/CharacterHandler.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2

 

No errors before the first one. 

 

Any suggestions?

Link to comment
Share on other sites

totally agree

 

compiling under Ubuntu server 12.04

 

 
[ 28%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_lookup.cpp.o
[ 28%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_message.cpp.o
/home/trinity/TrinityCore/src/server/scripts/Commands/cs_message.cpp: In static member function ‘static bool message_commandscript::HandleWhispersCommand(ChatHandler*, const char*)’:
/home/trinity/TrinityCore/src/server/scripts/Commands/cs_message.cpp:216:81: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka struct std::basic_string<char>}’ through ‘...’
/home/trinity/TrinityCore/src/server/scripts/Commands/cs_message.cpp:221:73: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka struct std::basic_string<char>}’ through ‘...’
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_message.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Grids/GridStates.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Grids/Notifiers/GridNotifiers.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Grids/ObjectGridLoader.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Groups/Group.cpp.o
[ 28%] Building CXX object src/server/game/CMakeFiles/game.dir/Groups/GroupMgr.cpp.o
[ 29%] Building CXX object src/server/game/CMakeFiles/game.dir/Groups/GroupReference.cpp.o
make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
 
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...