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

--- Canned message start

It appears the issue in the original post was solved, so this thread shall be closed. Should you encounter any other difficulties, please open a new thread.

--- Canned message end ---

Link to comment
Share on other sites

Did not want to create another topic about mysql problems but when compiling on 64bit i get this:

[ 16%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector2.cpp.o

Linking CXX executable authserver

/usr/local/mysql/lib/libmysqlclient_r.so: file not recognized: File truncated

collect2: ld returned 1 exit status

make[2]: *** [src/server/authserver/authserver] Error 1

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

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

[ 16%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector3.cpp.o

[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/ReactorAI.cpp

Am using mysql 5.5.9 as mention in the git revisions.

Link to comment
Share on other sites

ok neverming. If i say what the error was it will look weird. It happen that i downloaded again the 5.5.9 from another source (the first time it was from a university in the US). Somehow the university did not have the compressed file with the correct permissions inside so the libraries were not pointing to the correct files. I downloaded again from another source (Belgium this time) and it works all good. Some weird thing.

Link to comment
Share on other sites

  • 2 weeks later...

Well iv been trying to compile trinity for about a day now but i keep getting the same Error

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (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:252 (_FPHSA_FAILURE_MESSAGE)

  cmake/macros/FindOpenSSL.cmake:175 (find_package_handle_standard_args)

I have Openssl and tbh i dont see the DIR file in the Include iv read the Wiki about 14 times and i still dont know why i cant get it to work. iv download about 15 of the OpenSSL and NONE of them have the DIR File. Could i get some help.

Link to comment
Share on other sites

When trying to compile on 64bit Ubuntu i get the following error:

am doing a clean clone, no patches.


-- 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/libssl.so;/usr/lib/libcrypto.so

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

-- Found MySQL library: /usr/local/mysql-5.5.10-linux2.6-x86_64/lib/libmysqlclient_r.so

-- Found MySQL headers: /usr/local/mysql-5.5.10-linux2.6-x86_64/include

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

-- Include dir is: /usr/include

-- Found ZLIB: /usr/lib/libz.so

-- 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 revision   : 11513 (606c8909605d)

* Build binaries in      : Release mode


* Install core to        : /usr/trinity

* Install libraries to   : /usr/trinity/lib

* Install configs to     : /usr/trinity/etc


* Build world/auth       : Yes (default)

* Build with scripts     : Yes (default)

* Build map/vmap tools   : No  (default)

* 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)

* Install SQL-files      : 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/test/build


CONFIGURING TRINITY


Scanning dependencies of target jemalloc

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_dss.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/base.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/stats.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/arena.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/hash.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/mb.c.o

[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/ctl.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_swap.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/prof.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/ckh.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/huge.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/mutex.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/jemalloc.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/extent.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/tcache.c.o

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_mmap.c.o

[  3%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/rtree.c.o

Linking C static library libjemalloc.a

[  3%] Built target jemalloc

Scanning dependencies of target g3dlib

[  3%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o

[  3%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Any.cpp.o

[  3%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryFormat.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryInput.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryOutput.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Box.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Capsule.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/CollisionDetection.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/CoordinateFrame.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Crypto.cpp.o

[  4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Cylinder.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/debugAssert.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/FileSystem.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/fileutils.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/format.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/g3dfnmatch.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/g3dmath.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Line.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/LineSegment.cpp.o

[  5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Log.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Matrix3.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Matrix4.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/MemoryManager.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/PhysicsFrame.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Plane.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/prompt.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Quat.cpp.o

[  6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Random.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Ray.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/ReferenceCount.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/RegistryUtil.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Sphere.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/stringutils.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/System.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/TextInput.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/TextOutput.cpp.o

[  7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Triangle.cpp.o

[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/uint128.cpp.o

[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/UprightFrame.cpp.o

[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector2.cpp.o

[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector3.cpp.o

[  8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector4.cpp.o

Linking CXX static library libg3dlib.a

[  8%] Built target g3dlib

Scanning dependencies of target gsoap

[  8%] Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/soapServer.cpp.o

[  8%] Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/soapC.cpp.o

[  8%] Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/stdsoap2.cpp.o

Linking CXX static library libgsoap.a

[  8%] Built target gsoap

Scanning dependencies of target revision.h

[  8%] Built target revision.h

Scanning dependencies of target shared_pch_dephelp

[  9%] Building CXX object src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o

In file included from /home/test/trinity/src/server/shared/Threading/LockedQueue.h:26,

                 from /home/test/trinity/src/server/shared/Common.h:88,

                 from /home/test/trinity/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/build/src/server/shared/shared_pch_dephelp.cxx:1:

/home/test/trinity/src/server/shared/Debugging/Errors.h:24:29: error: ace/Stack_Trace.h: No such file or directory

In file included from /home/test/trinity/src/server/shared/Database/SQLOperation.h:24,

                 from /home/test/trinity/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/build/src/server/shared/shared_pch_dephelp.cxx:1:

/home/test/trinity/src/server/shared/Database/QueryResult.h: In member function ‘const Field& ResultSet::operator[](uint32) const’:

/home/test/trinity/src/server/shared/Database/QueryResult.h:46: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:46: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:46: error: ‘st’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h: In member function ‘Field* PreparedResultSet::Fetch() const’:

/home/test/trinity/src/server/shared/Database/QueryResult.h:75: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:75: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:75: error: ‘st’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h: In member function ‘const Field& PreparedResultSet::operator[](uint32) const’:

/home/test/trinity/src/server/shared/Database/QueryResult.h:81: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:81: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:81: error: ‘st’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:82: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:82: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:82: error: ‘st’ was not declared in this scope

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

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

make: *** [all] Error 2


CREATING BIN FILES (Executables, Libraries, Conf files, SQL Files)


[  3%] Built target jemalloc

[  8%] Built target g3dlib

[  8%] Built target gsoap

[  8%] Built target revision.h

[  9%] Building CXX object src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o

In file included from /home/test/trinity/src/server/shared/Threading/LockedQueue.h:26,

                 from /home/test/trinity/src/server/shared/Common.h:88,

                 from /home/test/trinity/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/build/src/server/shared/shared_pch_dephelp.cxx:1:

/home/test/trinity/src/server/shared/Debugging/Errors.h:24:29: error: ace/Stack_Trace.h: No such file or directory

In file included from /home/test/trinity/src/server/shared/Database/SQLOperation.h:24,

                 from /home/test/trinity/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/build/src/server/shared/shared_pch_dephelp.cxx:1:

/home/test/trinity/src/server/shared/Database/QueryResult.h: In member function ‘const Field& ResultSet::operator[](uint32) const’:

/home/test/trinity/src/server/shared/Database/QueryResult.h:46: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:46: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:46: error: ‘st’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h: In member function ‘Field* PreparedResultSet::Fetch() const’:

/home/test/trinity/src/server/shared/Database/QueryResult.h:75: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:75: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:75: error: ‘st’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h: In member function ‘const Field& PreparedResultSet::operator[](uint32) const’:

/home/test/trinity/src/server/shared/Database/QueryResult.h:81: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:81: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:81: error: ‘st’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:82: error: ‘ACE_Stack_Trace’ was not declared in this scope

/home/test/trinity/src/server/shared/Database/QueryResult.h:82: error: expected ‘;’ before ‘st’

/home/test/trinity/src/server/shared/Database/QueryResult.h:82: error: ‘st’ was not declared in this scope

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

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

Link to comment
Share on other sites

Hi there,

Yesterday I tried to compile the core on linux ubuntu server, kernel 2.6.32-24, but the process broke off. The error log is in the spoiler:

Scanning dependencies of target shared_pch_dephelp

[ 9%] Building CXX object src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o

In file included from /opt/trinity/prova/TrinityCore/src/server/shared/Threading/LockedQueue.h:26,

from /opt/trinity/prova/TrinityCore/src/server/shared/Common.h:88,

from /opt/trinity/prova/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

from /opt/trinity/prova/build/src/server/shared/shared_pch_dephelp.cxx:1:

/opt/trinity/prova/TrinityCore/src/server/shared/Debugging/Errors.h:24:29: error: ace/Stack_Trace.h: No such file or directory

In file included from /opt/trinity/prova/TrinityCore/src/server/shared/Database/SQLOperation.h:24,

from /opt/trinity/prova/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

from /opt/trinity/prova/build/src/server/shared/shared_pch_dephelp.cxx:1:

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h: In member function âconst Field& ResultSet::operator[](uint32) constâ:

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:46: error: âACE_Stack_Traceâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:46: error: expected â;â before âstâ

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:46: error: âstâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h: In member function âField* PreparedResultSet::Fetch() constâ:

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:75: error: âACE_Stack_Traceâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:75: error: expected â;â before âstâ

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:75: error: âstâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h: In member function âconst Field& PreparedResultSet::operator[](uint32) constâ:

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:81: error: âACE_Stack_Traceâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:81: error: expected â;â before âstâ

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:81: error: âstâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:82: error: âACE_Stack_Traceâ was not declared in this scope

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:82: error: expected â;â before âstâ

/opt/trinity/prova/TrinityCore/src/server/shared/Database/QueryResult.h:82: error: âstâ was not declared in this scope

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

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

make: *** [all] Error 2

Any ideas about it? Thanks!

Edited by Gin88
Link to comment
Share on other sites

[ 33%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Main.cpp.o

Linking CXX executable authserver

../shared/libshared.a(Threading.cpp.o): In function `ACE_TSS<ACE_Based::Thread>::ts_init()':

Threading.cpp:(.text._ZN7ACE_TSSIN9ACE_Based6ThreadEE7ts_initEv[ACE_TSS<ACE_Based::Thread>::ts_init()]+0x5a): undefined reference to `ACE_OS::thr_keycreate(unsigned int*, void (*)(void*))'

../shared/libshared.a(Threading.cpp.o): In function `ACE_TSS<ACE_Based::Thread>::ACE_TSS(ACE_Based::Thread*)':

Threading.cpp:(.text._ZN7ACE_TSSIN9ACE_Based6ThreadEEC1EPS1_[ACE_TSS<ACE_Based::Thread>::ACE_TSS(ACE_Based::Thread*)]+0xd2): undefined reference to `ACE_OS::thr_keycreate(unsigned int*, void (*)(void*))'

../shared/libshared.a(Threading.cpp.o): In function `ACE_TSS<ACE_Based::Thread>::~ACE_TSS()':

Threading.cpp:(.text._ZN7ACE_TSSIN9ACE_Based6ThreadEED0Ev[ACE_TSS<ACE_Based::Thread>::~ACE_TSS()]+0x7a): undefined reference to `ACE_OS::thr_key_detach(unsigned int)'

../shared/libshared.a(Threading.cpp.o): In function `ACE_TSS<ACE_Based::Thread>::~ACE_TSS()':

Threading.cpp:(.text._ZN7ACE_TSSIN9ACE_Based6ThreadEED1Ev[ACE_TSS<ACE_Based::Thread>::~ACE_TSS()]+0x7a): undefined reference to `ACE_OS::thr_key_detach(unsigned int)'

../shared/libshared.a(Util.cpp.o): In function `ACE_TSS<MTRand>::ts_init()':

Util.cpp:(.text._ZN7ACE_TSSI6MTRandE7ts_initEv[ACE_TSS<MTRand>::ts_init()]+0x5a): undefined reference to `ACE_OS::thr_keycreate(unsigned int*, void (*)(void*))'

../shared/libshared.a(Util.cpp.o): In function `ACE_TSS<MTRand>::ACE_TSS(MTRand*)':

Util.cpp:(.text._ZN7ACE_TSSI6MTRandEC1EPS0_[ACE_TSS<MTRand>::ACE_TSS(MTRand*)]+0xd2): undefined reference to `ACE_OS::thr_keycreate(unsigned int*, void (*)(void*))'

../shared/libshared.a(Util.cpp.o): In function `ACE_TSS<MTRand>::~ACE_TSS()':

Util.cpp:(.text._ZN7ACE_TSSI6MTRandED0Ev[ACE_TSS<MTRand>::~ACE_TSS()]+0x4f): undefined reference to `ACE_OS::thr_key_detach(unsigned int)'

../shared/libshared.a(Util.cpp.o): In function `ACE_TSS<MTRand>::~ACE_TSS()':

Util.cpp:(.text._ZN7ACE_TSSI6MTRandED1Ev[ACE_TSS<MTRand>::~ACE_TSS()]+0x4f): undefined reference to `ACE_OS::thr_key_detach(unsigned int)'

collect2: ld returned 1 exit status

make[2]: *** [src/server/authserver/authserver] Error 1

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

make: *** [all] Error 2

vistawow3:/opt/trinity/compilar#

please help

Link to comment
Share on other sites

I upgrade to ACE-6.0.1.tar.gz , and openssl-1.0.0d.tar.gz

never had problems in compiling. but yesterday after trying to compile the new patches I had this error. Today I tried to update the ACE and OPENSSL but still giving the same error

Edited by amsjunior
Link to comment
Share on other sites

operation system: windows xp sp3

compiler: mingw for windows 5.1.6

cmake: cmake-2.8.4-win32-x86.exe

db: mysql 5.1.4

openssl: openssl-0.9.8h-1-bin.zip

=======================================

cmake option:

source code folder: H:/TrinityCore-TrinityCore-63508fd

binaries folder: H:/Temp/TC

Mingw Makefiles

...

the first time configure:

one error: "cmake/xxxx.c" file not exists! (don't exists at all!)

but when i configure again,that error not appear……

So i use the mingw to compile it:

cmd line:mingw32-make -C H:/Temp/TC -f Makefile

...

but one error occur:

...

[ 0%]Building CXX object dep/acelite/ace/CMakeFiles/ace.dir/PrecompiledHeaders/WinAcePCH.cpp.obj

G__~1.EXE: /MP: No such file or directory

...

why it happen?

just not on linux?

Thank you very much!

(The How-to:Win only use Visual C++, i don't want to install such huge and slow IDE...)

Edited by yinxumin
Link to comment
Share on other sites

Yeah it started happening to me too using an older version of ACE (Same kernel). What i did was download the latest microkernel. I downloaded this one: http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.1.tar.gz

1. Decompress tar xfvz ACE-6.0.1.tar.gz

2. Go to the folder cd ACE-6.0.1.tar.gz and create a build folder mkdir build and go to it cd build.

3. do the normal procedure for compilation ../configure make make install

That is all. I also did openssl just in case with the same procedure.

Link to comment
Share on other sites

(The How-to:Win only use Visual C++, i don't want to install such huge and slow IDE...)

You can use Visual Studio command line compiling

MSBuild TrinityCore.sln /t:ALL_BUILD /p:Configuration=Release /m:3 /clp:Summary /v:normal /fl

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