Jump to content
TrinityCore

garam

Plebs
  • Posts

    7
  • Joined

  • Last visited

Everything posted by garam

  1. Thanks a lot One0, Marlichsi and Athena!!! I tried to re.compile trinity by using ace-6.0.2 and cmake-2.8.2 but anything has been changed. As you commented that there were three undesirable WARNING which seems to be related to ACE library linking. My question was that why those warning messages are not disappeared after re.compiling several versions of ACE and OTHER PACKAGES. So I judged that those warning comes from cmake or cmake configuring script, Not from the ACE or OPENSSL. By trying following cmake option, I solved this compile problem. May be someone who install ACE on /usr/local(the default prefix directory) can avoid this kind of trouble. :-) =================================================================================== garam@fermi:build$ cmake ../ -DTOOLS=1 -DACE_LIBRARY=/opt/ace-6.0.2/lib/libACE.so -DACE_INCLUDE_DIR=/opt/ace-6.0.2/include -- 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: /opt/ace-6.0.2/lib/libACE.so -- Found ACE headers: /opt/ace-6.0.2/include -- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/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/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 commithash : b9d6706377b0+ * Build binaries in : Release mode * Install core to : /usr/local * Install libraries to : /usr/local/lib * Install configs to : /usr/local/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) * 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/garam/tmp/Wow/TrinityCore/build garam@fermi:build$ =================================================================================== Compilation was successful. Thanks again guys!! Ciao P.S. by the way, how can I make this topic to [solved] ?? Actually my question was silly one... We can find following line on the wiki tutorial : http://www.trinitycore.org/w/How-to:Linux =================================================================================== -DACE_LIBRARY=<path to ACE library> (full path to your libACE.so file INCLUDING the filename - do not use if you have ACE installed systemwide) ===================================================================================
  2. Thanks for the comments. But after down-grade it to ACE-6.0.1, the same WARNINGs and ERRORs had been occurred. Is it possible that the CMake version is related to above Warnings and Errors?? Mine is 2.8.0 garam@fermi:build$ cmake --version cmake version 2.8.0
  3. Hi, I'm trying to compile trinity, but there is some errors. Following is the information in detail. ================================================== My OS : Ubuntu 10.04 (LTS), 64bit Trinity Revision : commit 27c419a8fe8c234ccd2a8d078658e86c36d0a8fd Author: Shauren <[email protected]> Date: Sat May 7 22:40:02 2011 +0200 (sorry I dont know git well. above is the result of "git log") Referenced Installation Document : http://www.trinitycore.org/w/How-to:Linux Newly Installed softwares: - ace-6.0.2, openssl-1.0.0d at /opt/ace-6.0.2, /opt/openssl by compiling - other require softwares by ubuntu package manager ================================================== Error msg ================================================== [ 15%] [ 15%] [ 15%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Realms/RealmList.cpp.o Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Server/RealmSocket.cpp.o Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Server/AuthSocket.cpp.o Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Main.cpp.o Linking CXX executable authserver CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `RealmList::UpdateRealms(bool)': RealmList.cpp:(.text+0xb56): undefined reference to `ACE_OS::mutex_trylock(pthread_mutex_t*)' RealmList.cpp:(.text+0xb71): undefined reference to `ACE_OS::mutex_unlock(pthread_mutex_t*)' CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `ACE_Singleton<Log, ACE_Thread_Mutex>::ACE_Singleton()': RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexEC1Ev[ACE_Singleton<Log, ACE_Thread_Mutex>::ACE_Singleton()]+0x27): undefined reference to `ACE_Cleanup::~ACE_Cleanup()' CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `ACE_Singleton<Log, ACE_Thread_Mutex>::cleanup(void*)': RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE7cleanupEPv[ACE_Singleton<Log, ACE_Thread_Mutex>::cleanup(void*)]+0x5): undefined reference to `ACE_Object_Manager::instance()' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE7cleanupEPv[ACE_Singleton<Log, ACE_Thread_Mutex>::cleanup(void*)]+0x10): undefined reference to `ACE_Object_Manager::remove_at_exit_i(void*)' CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `ACE_Singleton<Log, ACE_Thread_Mutex>::~ACE_Singleton()': RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexED0Ev[ACE_Singleton<Log, ACE_Thread_Mutex>::~ACE_Singleton()]+0x1c): undefined reference to `ACE_Cleanup::~ACE_Cleanup()' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexED0Ev[ACE_Singleton<Log, ACE_Thread_Mutex>::~ACE_Singleton()]+0x36): undefined reference to `ACE_Cleanup::~ACE_Cleanup()' CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `ACE_Singleton<Log, ACE_Thread_Mutex>::~ACE_Singleton()': RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexED1Ev[ACE_Singleton<Log, ACE_Thread_Mutex>::~ACE_Singleton()]+0x2e): undefined reference to `ACE_Cleanup::~ACE_Cleanup()' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexED1Ev[ACE_Singleton<Log, ACE_Thread_Mutex>::~ACE_Singleton()]+0x21): undefined reference to `ACE_Cleanup::~ACE_Cleanup()' CMakeFiles/authserver.dir/Realms/RealmList.cpp.o: In function `ACE_Singleton<Log, ACE_Thread_Mutex>::instance()': RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x41): undefined reference to `ACE_Object_Manager::starting_up()' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x79): undefined reference to `ACE_Object_Manager::shutting_down()' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x87): undefined reference to `ACE_Object_Manager::get_singleton_lock(ACE_Thread_Mutex*&)' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x9e): undefined reference to `ACE_OS::mutex_lock(pthread_mutex_t*)' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0xb5): undefined reference to `ACE_OS::mutex_unlock(pthread_mutex_t*)' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x109): undefined reference to `ACE_Object_Manager::instance()' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x117): undefined reference to `ace_cleanup_destroyer' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x122): undefined reference to `ACE_Object_Manager::at_exit_i(void*, void (*)(void*, void*), void*, char const*)' RealmList.cpp:(.text._ZN13ACE_SingletonI3Log16ACE_Thread_MutexE8instanceEv[ACE_Singleton<Log, ACE_Thread_Mutex>::instance()]+0x142): undefined reference to `ACE_OS::mutex_unlock(pthread_mutex_t*)' ... ... ... ================================================== My configure ================================================== garam@fermi:build$ cmake ../ -DTOOLS=1 -DACE_LIBRARY=/opt/ace-6.0.2/lib -DACE_INCLUDE_DIR=/opt/ace-6.0.2/include -DPREFIX=/opt/trinity -DOPENSSL_LIBRARIES=/opt/openssl/lib -DOPENSSL_INCLUDE_DIR=/opt/openssl/include -- 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: /opt/ace-6.0.2/lib -- Found ACE headers: /opt/ace-6.0.2/include -- 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 * TrinityCore commithash : Archive * Build binaries in : Release mode * Install core to : /opt/trinity * Install libraries to : /opt/trinity/lib * Install configs to : /opt/trinity/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) * 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 WARNING: Target "shared" requests linking to directory "/opt/ace-6.0.2/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "authserver" requests linking to directory "/opt/ace-6.0.2/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "worldserver" requests linking to directory "/opt/ace-6.0.2/lib". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: /home/garam/tmp/Wow/TrinityCore/build ================================================== I attached the whole screen log as a text file. please look at that file.
×
×
  • Create New...