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

No patches, nothing fancy. I ran "hg pull" then "hg update." I run "hg summary," which tells me "parent: 10868:2279a6653bea tip"

I use this command for cmake:

cmake ../ -GXcode \

-DMYSQL_ADD_INCLUDE_PATH=/usr/local/mysql \

-DREADLINE_INCLUDE_DIR=/opt/local/include \

-DREADLINE_LIBRARY=/opt/local/lib/libreadline.dylib \

-DACE_INCLUDE_DIR=/opt/local/include \

-DACE_LIBRARY=/opt/local/lib/libACE.a \

-DPREFIX=/opt/trinitycore \

-DWARNINGS=0
and then open the xcode solution and type command-B to compile. After a few minutes we've got an error: File:
source/trinitycore/src/server/authserver/Main.cpp
Line 101:
sLog->outString("%s (realm-daemon)", _FULLVERSION);
Error:
expected `)' before 'Debug'

I suspect this might be the dreaded gd3 bug... I know someone on the gd3 should fix this "soon" , but until then is there something I can hack together that will make TC compile? I love this project, and I want to keep using it...

Link to comment
Share on other sites

compile trinity on mandriva 2009.0, gcc 4.3.2

have error

CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `RealmList::UpdateRealms(bool)':

RealmList.cpp:(.text+0xfb5): undefined reference to `__sync_fetch_and_sub_4'

I know that can be solved by cpp flag -march=i686

trying

cmake ../ -DCMAKE_C_FLAGS="-O3 -pipe" -DCMAKE_CXX_FLAGS="${CMAKE_C_FLAGS} -march=i686" -DDO_RA=1 -DLARGE_CELL=1 -DPREFIX=~/release

but that is not working

Link to comment
Share on other sites

I assume the hack for this is still on the wiki in the mac install guide.

I'll take a look. I also missed the part where the repo switched over to git. I switched over and am now on commit 8d59953f9372c6876e0cd8078b44de6893082cbe. (How do I get the version number from git? I think this commit is version 11009, but I'm not 100% sure).

Interestingly, my build still fails, but I get a different error:


~/source/TrinityCore/build/src/server/worldserver/Debug/worldserver

Undefined symbols:

  "_Gestalt", referenced from:

      G3D::System::init()    in libg3dlib.a(System.o)

      G3D::System::init()    in libg3dlib.a(System.o)

     (maybe you meant: typeinfo name for ACE_Intrusive_Auto_Ptr<ACE_Service_Gestalt>, 

ld: symbol(s) not found

collect2: ld returned 1 exit status

This is definitely the dreaded G3D bug. I'll try applying my trusty mac patch now, and see if it builds.

diff -r cbe929b901f8 dep/g3dlite/include/G3D/platform.h

--- a/dep/g3dlite/include/G3D/platform.h	Wed Aug 25 23:21:53 2010 +0300

+++ b/dep/g3dlite/include/G3D/platform.h	Thu Aug 26 02:14:42 2010 +0200

@@ -51,7 +51,7 @@

 #elif defined(__linux__)

     #define G3D_LINUX

 #elif defined(__APPLE__)

-    #define G3D_OSX

+    #define G3D_LINUX

Link to comment
Share on other sites

Hello

I have the following problem when compiling the core ( The logs is in the attachement of the topic )

The results of this solution are 13 corrects 2 failed etc etc.

The failed are the Authserver and worldserver

I use Win7/x32, OpenSSL 1.0.0c, Cmake 2.6, GIT installed, Net 4.0, Visual 2009

Hopefully someone can help me .. thank you very much

PD: Sorry for my english

BuildLogWorld.htm

BuildLoglogin.htm

Edited by Spring
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...