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

Are you sure you copied the right version of the DLL to the right folder?

 

I tried one version (32 bit), then the other when it didn't work (64 bit). Not sure what folder to copy to if that is needed, since it is not in the guide, but I tried it just like how we do with libeay32.dll, libmysql.dll, and ssleay.dll. So, in the release folder, same as the worldserver.exe and bnetserver.exe.

Link to comment
Share on other sites

hi all

i have an little problem with mapextractor. they compiled very well with the server no errors.but when i will extract the map files and the dbc it comes this error

chaos0ne@chaos0ne-Rechner ~/World of Warcraft $ ./mapextractor
Map & DBC Extractor
===================
Error 2
chaos0ne@chaos0ne-Rechner ~/World of Warcraft $ 

i dont know what is wrong with these files. compiled on an debian server used by linut mint 17 . maybe this is the problem or i am wrong?

Link to comment
Share on other sites

Hello, I am running the cmake on the TrinityCore on Ubunutu 14.04.....I wanted to get the extraction tools so I ran 

 

cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1

 

It runs until 100% then gives me:

 

Linking CXX executable mapextractor

../../../dep/CascLib/libcasc.a(CascDecompress.cpp.o): In function 'CascDecompress(void*, unsigned int*, void*, unsigned int)':

CascDecompress.cpp:(.text+0x79): undefined refrence to 'inflateInit_'

CascDecompress.cpp:(.text+0xbe): undefined refrence to 'inflate'

CascDecompress.cpp:(.text+0xc8): undefined refrence to 'inflateEnd'

 

I have downloaded libmpq from other server repositories because it isn't in TrinityCore's branch in /dep/ and have installed it.

 

:D thanks in advanced

 
Link to comment
Share on other sites

Hello, I am running the cmake on the TrinityCore on Ubunutu 14.04.....I wanted to get the extraction tools so I ran 

 

cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1

 

It runs until 100% then gives me:

 

Linking CXX executable mapextractor

../../../dep/CascLib/libcasc.a(CascDecompress.cpp.o): In function 'CascDecompress(void*, unsigned int*, void*, unsigned int)':

CascDecompress.cpp:(.text+0x79): undefined refrence to 'inflateInit_'

CascDecompress.cpp:(.text+0xbe): undefined refrence to 'inflate'

CascDecompress.cpp:(.text+0xc8): undefined refrence to 'inflateEnd'

 

I have downloaded libmpq from other server repositories because it isn't in TrinityCore's branch in /dep/ and have installed it.

 

:D thanks in advanced

 
Link to comment
Share on other sites

 

Hello, I am running the cmake on the TrinityCore on Ubunutu 14.04.....I wanted to get the extraction tools so I ran 

 

cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1

 

It runs until 100% then gives me:

 

Linking CXX executable mapextractor

../../../dep/CascLib/libcasc.a(CascDecompress.cpp.o): In function 'CascDecompress(void*, unsigned int*, void*, unsigned int)':

CascDecompress.cpp:(.text+0x79): undefined refrence to 'inflateInit_'

CascDecompress.cpp:(.text+0xbe): undefined refrence to 'inflate'

CascDecompress.cpp:(.text+0xc8): undefined refrence to 'inflateEnd'

 

I have downloaded libmpq from other server repositories because it isn't in TrinityCore's branch in /dep/ and have installed it.

 

:D thanks in advanced

 

 

Fixed in https://github.com/TrinityCore/TrinityCore/commit/521ff3dffe67d1202125b7458bc6b5a0850eaaff

You do not need MPQ, it has been replaced by CascLib.

Link to comment
Share on other sites

I installed everything, but when cmake USE_MYSQL_SOURCES is not recognized. What am I doing wrong?

 

 

Detected 64-bit platform
MSVC
: 64-bit platform, enforced -D_WIN64 parameter
MSVC
: Enabled extended object-support for debug-compiles
MSVC
: Overloaded standard names
MSVC
: Disabled NON-SECURE warnings
MSVC
: Disabled POSIX warnings
MSVC
: Disabled generic compiletime warnings
Found OpenSSL library: optimized;C:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/OpenSSL-Win64/include
Found ZMQ library: C:/Program Files/ZeroMQ 4.0.4/lib/libzmq-v120-mt-4_0_4.lib
Found ZMQ headers: C:/Program Files/ZeroMQ 4.0.4/include
Boost version: 1.55.0
Found the following Boost libraries:
system
filesystem
thread
program_options

Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
Found MySQL library: C:/mysql_lib/lib_64/libmysql.lib
Found MySQL headers: C:/mysql_lib/include
Found git binary : C:/Program Files (x86)/Git/cmd/git.exe

* TrinityCore revision : 6733dc9d885c 2014-11-02 01:22:24 -0200 (6.x branch)

* Install core to : C:/Program Files/TrinityCore

* 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)
* Show compile-warnings : No (default)
* Use coreside debug : No (default)
* Use GIT revision hash : Yes

SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: Custom
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: Northrend
-> Prepared: The Maelstrom
-> Prepared: Events
-> Prepared: Pet
SCRIPT PREPARATION COMPLETE

Configuring doneDetected 64-bit platform
MSVC
: 64-bit platform, enforced -D_WIN64 parameter
MSVC
: Enabled extended object-support for debug-compiles
MSVC
: Overloaded standard names
MSVC
: Disabled NON-SECURE warnings
MSVC
: Disabled POSIX warnings
MSVC
: Disabled generic compiletime warnings
Found OpenSSL library: optimized;C:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/OpenSSL-Win64/include
Found ZMQ library: C:/Program Files/ZeroMQ 4.0.4/lib/libzmq-v120-mt-4_0_4.lib
Found ZMQ headers: C:/Program Files/ZeroMQ 4.0.4/include
Boost version: 1.55.0
Found the following Boost libraries:
system
filesystem
thread
program_options

Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
Found MySQL library: C:/mysql_lib/lib_64/libmysql.lib
Found MySQL headers: C:/mysql_lib/include
Found git binary : C:/Program Files (x86)/Git/cmd/git.exe

* TrinityCore revision : 6733dc9d885c 2014-11-02 01:22:24 -0200 (6.x branch)

* Install core to : C:/Program Files/TrinityCore

* 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)
* Show compile-warnings : No (default)
* Use coreside debug : No (default)
* Use GIT revision hash : Yes

SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: Custom
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: Northrend
-> Prepared: The Maelstrom
-> Prepared: Events
-> Prepared: Pet
SCRIPT PREPARATION COMPLETE

Configuring done

Link to comment
Share on other sites

ah ok thanks.


then i Compile the trinitycore.sln this with vs 2013 i have in the release folder 6 files is this ok ?

 

authserver.conf and .exe

bnetserver.conf and .exe

worldserver.conf and .exe

 

what ist with maps and vmaps ?

 

And I have MYSQL Update fail then i Start worldserver.exe

 

In mysql_stmt_prepare() id: 8, sql: "INSERT INTO graveyard_zone (ID, GhostZone, Faction) VALUES (?, ?, ?)"
Table 'world.graveyard_zone' doesn't exist
In mysql_stmt_prepare() id: 9, sql: "DELETE FROM graveyard_zone WHERE ID = ? AND GhostZone = ? AND Faction = ?"
Table 'world.graveyard_zone' doesn't exist
In mysql_stmt_prepare() id: 12, sql: "INSERT INTO npc_vendor (entry, item, maxcount, incrtime, extendedcost, type) VALUES(?, ?, ?, ?, ?, ?)"
Unknown column 'type' in 'field list'
In mysql_stmt_prepare() id: 13, sql: "DELETE FROM npc_vendor WHERE entry = ? AND item = ? AND type = ?"
Unknown column 'type' in 'where clause'
 

Edited by Parado
Link to comment
Share on other sites

Hi,

 

 

Im trying to compile the core following the guide from http://collab.kpsn.org/display/tc/TrinityCore+Home

On a Debian 7.5 stable (Wheezy) (32bits) dedicated server

 

I use this code before make && make install

cmake ../ -DPREFIX=/home/tcore/server -DTOOLS=1 -DWITH_WARNINGS=1

 

And I get this report which seems to have an error in the BOOST test but the build seems to be fine...

Determining if the pthread_create exist failed with the following output:


Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3427186960/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3427186960.dir/build.make CMakeFiles/cmTryCompileExec3427186960.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3427186960.dir/CheckSymbolExists.c.o
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -o CMakeFiles/cmTryCompileExec3427186960.dir/CheckSymbolExists.c.o -c /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3427186960
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3427186960.dir/link.txt --verbose=1
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors CMakeFiles/cmTryCompileExec3427186960.dir/CheckSymbolExists.c.o -o cmTryCompileExec3427186960 -rdynamic
CMakeFiles/cmTryCompileExec3427186960.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0xa): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3427186960] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3427186960/fast] Error 2

File /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec4089004340/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4089004340.dir/build.make CMakeFiles/cmTryCompileExec4089004340.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec4089004340.dir/CheckFunctionExists.c.o
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec4089004340.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec4089004340
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4089004340.dir/link.txt --verbose=1
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec4089004340.dir/CheckFunctionExists.c.o -o cmTryCompileExec4089004340 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec4089004340] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec4089004340/fast] Error 2


Performing C++ SOURCE FILE Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM failed with the following output:
Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec709050981/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec709050981.dir/build.make CMakeFiles/cmTryCompileExec709050981.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec709050981.dir/src.cxx.o
/usr/bin/c++ -std=c++11 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -Woverloaded-virtual -Dboost_filesystem_copy_links_without_NO_SCOPED_ENUM -std=c++11 -o CMakeFiles/cmTryCompileExec709050981.dir/src.cxx.o -c /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec709050981
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec709050981.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -Woverloaded-virtual -Dboost_filesystem_copy_links_without_NO_SCOPED_ENUM -std=c++11 CMakeFiles/cmTryCompileExec709050981.dir/src.cxx.o -o cmTryCompileExec709050981 -rdynamic -lboost_system-mt -lboost_filesystem-mt
CMakeFiles/cmTryCompileExec709050981.dir/src.cxx.o: In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&)':
src.cxx:(.text._ZN5boost11filesystem39copy_fileERKNS0_4pathES3_[_ZN5boost11filesystem39copy_fileERKNS0_4pathES3_]+0x24): undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec709050981] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec709050981/fast] Error 2

Source file was:

#include
#include
int main() { boost::filesystem::copy_file(boost::filesystem::path(), boost::filesystem::path()); }
Performing C++ SOURCE FILE Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM failed with the following output:
Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec39910208/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec39910208.dir/build.make CMakeFiles/cmTryCompileExec39910208.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec39910208.dir/src.cxx.o
/usr/bin/c++ -std=c++11 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -Woverloaded-virtual -Dboost_filesystem_copy_links_without_NO_SCOPED_ENUM -std=c++11 -o CMakeFiles/cmTryCompileExec39910208.dir/src.cxx.o -c /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec39910208
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec39910208.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -Woverloaded-virtual -Dboost_filesystem_copy_links_without_NO_SCOPED_ENUM -std=c++11 CMakeFiles/cmTryCompileExec39910208.dir/src.cxx.o -o cmTryCompileExec39910208 -rdynamic -lboost_system-mt -lboost_filesystem-mt
CMakeFiles/cmTryCompileExec39910208.dir/src.cxx.o: In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&)':
src.cxx:(.text._ZN5boost11filesystem39copy_fileERKNS0_4pathES3_[_ZN5boost11filesystem39copy_fileERKNS0_4pathES3_]+0x24): undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec39910208] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec39910208/fast] Error 2

Source file was:

#include
#include
int main() { boost::filesystem::copy_file(boost::filesystem::path(), boost::filesystem::path()); }

 

 

If I ignore that error and I try to compile it with make and then make install I get an error:

 

make: *** [all] Error 2

 

 

And I get it when the core is compiled 88%

Here is an image once I get the error

(Nothing else is beyond Error 2, just a new line to insert commands).

E7B8nLK.png

 

 

 

Does anybody know what happens here?

It possible to get a best specified error while compiling?

Does the BOOST error has anything about this?

 

 

 

Thanks you.

Link to comment
Share on other sites

I just installed right now libpthread-stubs0 and libpthread-stubs0-devel

But still getting errors related to those packages:

 

Determining if the pthread_create exist failed with the following output:


Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec573720301/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec573720301.dir/build.make CMakeFiles/cmTryCompileExec573720301.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec573720301.dir/CheckSymbolExists.c.o
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -o CMakeFiles/cmTryCompileExec573720301.dir/CheckSymbolExists.c.o -c /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec573720301
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec573720301.dir/link.txt --verbose=1
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors CMakeFiles/cmTryCompileExec573720301.dir/CheckSymbolExists.c.o -o cmTryCompileExec573720301 -rdynamic
CMakeFiles/cmTryCompileExec573720301.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0xa): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec573720301] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec573720301/fast] Error 2

File /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3061535333/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3061535333.dir/build.make CMakeFiles/cmTryCompileExec3061535333.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3061535333.dir/CheckFunctionExists.c.o
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3061535333.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3061535333
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3061535333.dir/link.txt --verbose=1
/usr/bin/gcc -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3061535333.dir/CheckFunctionExists.c.o -o cmTryCompileExec3061535333 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3061535333] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3061535333/fast] Error 2


Performing C++ SOURCE FILE Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM failed with the following output:
Change Dir: /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec1590360322/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1590360322.dir/build.make CMakeFiles/cmTryCompileExec1590360322.dir/build
make[1]: se ingresa al directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1590360322.dir/src.cxx.o
/usr/bin/c++ -std=c++11 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -Woverloaded-virtual -Dboost_filesystem_copy_links_without_NO_SCOPED_ENUM -std=c++11 -o CMakeFiles/cmTryCompileExec1590360322.dir/src.cxx.o -c /home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1590360322
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1590360322.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -Woverloaded-virtual -Dboost_filesystem_copy_links_without_NO_SCOPED_ENUM -std=c++11 CMakeFiles/cmTryCompileExec1590360322.dir/src.cxx.o -o cmTryCompileExec1590360322 -rdynamic -lboost_system-mt -lboost_filesystem-mt
CMakeFiles/cmTryCompileExec1590360322.dir/src.cxx.o: In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&)':
src.cxx:(.text._ZN5boost11filesystem39copy_fileERKNS0_4pathES3_[_ZN5boost11filesystem39copy_fileERKNS0_4pathES3_]+0x24): undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec1590360322] Error 1
make[1]: se sale del directorio `/home/tcore/TrinityCore/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec1590360322/fast] Error 2

Source file was:

#include
#include
int main() { boost::filesystem::copy_file(boost::filesystem::path(), boost::filesystem::path()); }

Link to comment
Share on other sites

From: http://www.trinitycore.org/f/topic/1518-trouble-with-your-trinity-install-readme-1st-faqs/#entry47706

 

I can't compile TC i get:

/usr/bin/ld: cannot find -lpthreads

undefined reference to `pthread_create'

declare -x CFLAGS="-m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g3 -ggdb3 -pipe -msse3 -fno-strength-reduce -fno-delete-null-pointer-checks -fno-strict-aliasing -frename-registers -rdynamic -fno-fast-math -lpthread"

declare -x CXXFLAGS="-m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g3 -ggdb3 -pipe -msse3 -fno-strength-reduce -fno-delete-null-pointer-checks -fno-strict-aliasing -frename-registers -rdynamic -fno-fast-math -lpthread"

cmake ../ -DCMAKE_BUILD_TYPE=None -DPREFIX=/your/installation/path

Another fix can be:

If you didn't install mysql from an apt package like me, tc might not find you mysql client lib also if it says it has found it. "-DMYSQL_LIBRARY=/usr/lib/x86_64-linux-gnu/libmysqlclient.so" will get it working

Still, since you failed to write what branch you are trying to use, 6.x compile is broken on linux.

Link to comment
Share on other sites

I can help myself and someone with this error? I use debian 7
Linking CXX executable connection_patcher
CMakeFiles/connection_patcher.dir/Program.cpp.o: In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&)':
Program.cpp:(.text._ZN5boost11filesystem39copy_fileERKNS0_4pathES3_[_ZN5boost11filesystem39copy_fileERKNS0_4pathES3_]+0x24): undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/tools/connection_patcher/connection_patcher] Error 1
make[1]: *** [src/tools/connection_patcher/CMakeFiles/connection_patcher.dir/all] Error 2
make: *** [all] Error 2
Link to comment
Share on other sites

 

I can help myself and someone with this error? I use debian 7
Linking CXX executable connection_patcher
CMakeFiles/connection_patcher.dir/Program.cpp.o: In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&)':
Program.cpp:(.text._ZN5boost11filesystem39copy_fileERKNS0_4pathES3_[_ZN5boost11filesystem39copy_fileERKNS0_4pathES3_]+0x24): undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/tools/connection_patcher/connection_patcher] Error 1
make[1]: *** [src/tools/connection_patcher/CMakeFiles/connection_patcher.dir/all] Error 2
make: *** [all] Error 2

 

 

This has been fixed in https://github.com/TrinityCore/TrinityCore/commit/1034b4d460d3a931dfa14a64194f0176cba73bd7 (11 Nov)

Link to comment
Share on other sites

Hi, 

 

Im trying to compile on linux but I cant, I googled for 2 days... read every article but it wasnt working.. any idea what to do with >

root@vm3195:/servery/tc434# cd core
root@vm3195:/servery/tc434/core# cd build
root@vm3195:/servery/tc434/core/build# cmake ../ -DPREFIX=/servery/tc434/server -DCONF_DIR=/servery/tc434/server/etc -DWITH_WARNINGS=1
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default library directory
CMake Error at cmake/platform/unix/settings.cmake:22 (configure_file):
  configure_file attempted to configure a file:
  /servery/tc434/core/cmake_uninstall.cmake into a source directory.
Call Stack (most recent call first):
  cmake/macros/CheckPlatform.cmake:15 (include)
  CMakeLists.txt:51 (include)


-- Configuring incomplete, errors occurred!
root@vm3195:/servery/tc434/core/build# root@vm3195:/servery/tc434#

Aswell another user wont work.. also tried :)

 

Thanks for help and any idea

Link to comment
Share on other sites

Not working anyway :(

root@vm3195:/servery/tc434# cd build
root@vm3195:/servery/tc434/build# cmake ../ -DPREFIX=/servery/tc434/server -DCONF_DIR=/servery/tc434/server/etc -DWITH_WARNINGS=1
CMake Error: The source directory "/servery/tc434" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
root@vm3195:/servery/tc434/build# cmake ../core/ -DPREFIX=/servery/tc434/server -DCONF_DIR=/servery/tc434/server/etc -DWITH_WARNINGS=1
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default library directory
CMake Error at cmake/platform/unix/settings.cmake:22 (configure_file):
  configure_file attempted to configure a file:
  /servery/tc434/core/cmake_uninstall.cmake into a source directory.
Call Stack (most recent call first):
  cmake/macros/CheckPlatform.cmake:15 (include)
  CMakeLists.txt:51 (include)


-- Configuring incomplete, errors occurred!
root@vm3195:/servery/tc434/build#

Link to comment
Share on other sites

Ok i am using cmake 3.1.0-rc2  When i run cmake i get a error about ZMQ files ? And i cant seem to find any info on this

 

The C compiler identification is MSVC 18.0.30501.0

The CXX compiler identification is MSVC 18.0.30501.0

Check for working C compiler using: Visual Studio 12 2013

Check for working C compiler using: Visual Studio 12 2013 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Check for working CXX compiler using: Visual Studio 12 2013

Check for working CXX compiler using: Visual Studio 12 2013 -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detected 32-bit platform

MSVC: Enabled large address awareness

MSVC: Enabled SSE2 support

MSVC: Disabled Safe Exception Handlers for debug builds

MSVC: Overloaded standard names

MSVC: Disabled NON-SECURE warnings

MSVC: Disabled POSIX warnings

MSVC: Disabled generic compiletime warnings

Found OpenSSL library: optimized;C:/OpenSSL-Win32/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win32/lib/VC/libeay32MDd.lib

Found OpenSSL headers: C:/OpenSSL-Win32/include

Looking for include file pthread.h

Looking for include file pthread.h - not found

Found Threads: TRUE

CMake Error at cmake/macros/FindZMQ.cmake:80 (message):
Could not find ZMQ libraries/headers! Please install ZMQ with libraries and
headers
Call Stack (most recent call first):
CMakeLists.txt:59 (find_package)

 

Configuring incomplete, errors occurred!

See also "D:/Games Cores/WoW/WoW Files 6.0.3/TrinityCore_Build/CMakeFiles/CMakeOutput.log".

See also "D:/Games Cores/WoW/WoW Files 6.0.3/TrinityCore_Build/CMakeFiles/CMakeError.log".

 

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