Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

The "for Web" version doesn't have a C++ compiler so that can't work.

I'm pretty sure that the VS 2013 with Updated 2 would work.

 

Glad you got it fixed.


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

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Anybody compile trinitycore with boosts on Debian?

This is my Cmake errors.

Cmake find boost library. but can't find 

          boost_system

          boost_thread
          boost_program_options.
I find it - it's exist
 

 Boost version: 1.55.0

 
  Boost include path: /usr/local/include/boost
 
  Could not find the following Boost libraries:
 
          boost_system
          boost_thread
          boost_program_options
 
  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  cmake/macros/ConfigureBoost.cmake:28 (find_package)
  CMakeLists.txt:57 (include)
 

 

 

Help me please.  Boost root folder lib is in /usr/local/include/boost

Edited by Esserg
Link to comment
Share on other sites

-- Detected 32-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/gcc
-- GCC: Enabled c++11 support
-- GCC: Enabled C99 support
-- GCC: SFMT enabled, SSE2 flags forced
-- GCC: All warnings enabled
-- Found OpenSSL library: /usr/lib/i386-linux-gnu/libssl.so;/usr/lib/i386-linux-                                                                                                 gnu/libcrypto.so
-- Found OpenSSL headers: /usr/include
CMake Error at cmake/macros/FindBoost.cmake:1113 (message):
  Unable to find the requested Boost libraries.
 
  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  cmake/macros/ConfigureBoost.cmake:28 (find_package)
  CMakeLists.txt:60 (include)
 
 
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/i386-linux-gnu/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found Readline library: /usr/lib/i386-linux-gnu/libreadline.so
-- Include dir is: /usr/include
-- Found git binary : /usr/bin/git
 
* TrinityCore revision   : aa46a8e79425+ 2014-08-06 21:03:40 +0300 (master branch)
* TrinityCore buildtype  : Release
 
* Install core to        : /home/frozen-wow/SevernaDze
* Install libraries to   : /home/frozen-wow/SevernaDze/lib
* Install configs to     : /home/frozen-wow/SevernaDze/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)
* 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
  -> Prepared: Pet
-- SCRIPT PREPARATION COMPLETE
 
-- Configuring incomplete, errors occurred!
 

 

Help please, before a 1-2 month on this linux debian 7.5 i do the Core without error and now when you update on 54 i got only errors idk how to fix it.

Link to comment
Share on other sites

First I want to apologize for using a translator, but my English is quite poor. 
 
At Trinity Core compile gives me the following error: 
 
/usr/bin/ld: no se puede encontrar -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2085435913] Error 1
make[1]: se sale del directorio «/TrinityCore/build/CMakeFiles/CMakeTmp»
make: *** [cmTryCompileExec2085435913/fast] Error 2
 
Under the archive CMakeError.log
 
CMakeError.log
 

 

Determining if the pthread_create exist failed with the following output:

Change Dir: /TrinityCore/build/CMakeFiles/CMakeTmp
 
Run Build Command:/usr/bin/make "cmTryCompileExec2531903625/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2531903625.dir/build.make CMakeFiles/cmTryCompileExec2531903625.dir/build
make[1]: se ingresa al directorio «/TrinityCore/build/CMakeFiles/CMakeTmp»
/usr/bin/cmake -E cmake_progress_report /TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2531903625.dir/CheckSymbolExists.c.o
/usr/bin/cc   -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors    -o CMakeFiles/cmTryCompileExec2531903625.dir/CheckSymbolExists.c.o   -c /TrinityCore/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2531903625
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2531903625.dir/link.txt --verbose=1
/usr/bin/cc   -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors     CMakeFiles/cmTryCompileExec2531903625.dir/CheckSymbolExists.c.o  -o cmTryCompileExec2531903625 -rdynamic 
CMakeFiles/cmTryCompileExec2531903625.dir/CheckSymbolExists.c.o: En la función `main':
CheckSymbolExists.c:(.text+0xa): referencia a `pthread_create' sin definir
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2531903625] Error 1
make[1]: se sale del directorio «/TrinityCore/build/CMakeFiles/CMakeTmp»
make: *** [cmTryCompileExec2531903625/fast] Error 2
 
File /TrinityCore/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
 
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: /TrinityCore/build/CMakeFiles/CMakeTmp
 
Run Build Command:/usr/bin/make "cmTryCompileExec2085435913/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2085435913.dir/build.make CMakeFiles/cmTryCompileExec2085435913.dir/build
make[1]: se ingresa al directorio «/TrinityCore/build/CMakeFiles/CMakeTmp»
/usr/bin/cmake -E cmake_progress_report /TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2085435913.dir/CheckFunctionExists.c.o
/usr/bin/cc   -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2085435913.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2085435913
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2085435913.dir/link.txt --verbose=1
/usr/bin/cc   -std=gnu99 -msse2 -mfpmath=sse -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2085435913.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2085435913 -rdynamic -lpthreads 
/usr/bin/ld: no se puede encontrar -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2085435913] Error 1
make[1]: se sale del directorio «/TrinityCore/build/CMakeFiles/CMakeTmp»
make: *** [cmTryCompileExec2085435913/fast] Error 2
 

 

Link to comment
Share on other sites

I hope this is in the right thread

"Compile or cmake problems"

it's what I have

 

I have all the requirements:

I've searched the net for the boost eerror, and there are thousads of post regarding it - little to no solutions.

The solutions they do give (including here) I have already done.

 

Eviroment vars set: YES.

boost installed to its own folder: Yes.

 

error produced by cmake:

 

CMake Error at cmake/macros/FindBoost.cmake:1113 (message):
Unable to find the requested Boost libraries.

Boost version: 1.55.0

Boost include path: J:/_boost

Could not find the following static Boost libraries:

boost_system
boost_thread
boost_program_options

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.

 

I been on pc's for sometime (and compiling wow servers for over 5yrs - first time with trinity - I hear trinity is pretty active vs mangos), never had issues like this. Just Express + DB's compile and your done. Trinity on the other hand, 3rd party apps.. makes things messy - too many cooks in the kitchen as they say.

 

Anyways. not sure what else to do,

Currently Enviroment var is set to BOOT_ROOT -> J:_boost

and yet cmake can only see some of the folder (as seen above)

 

 

I just changed everything over to c: (as per friend suggestion) and still fails with the above error.

So posting here, to see if I can get another suggestion, if not, i'll prob head back to mangos. I really want this to work, but sometimes things are just not meant to be

 

Link to comment
Share on other sites

 

Detected 32-bit platform

Using supplied MySQL sources

MSVC: Enabled large address awareness

MSVC: Enabled SSE2 support

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

Boost version: 1.56.0

Found the following Boost libraries:

system

thread

program_options

Found git binary : C:/Program Files (x86)/Git/cmd/git.exe

* TrinityCore revision : 1d2313391f15 2014-08-16 21:55:00 +0200 (master branch)

* Install core to : C:/Program Files (x86)/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 MySQL sourcetree : Yes (default)

* Use GIT revision hash : Yes

-- MySQL 5.5.9

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

-> Prepared: Pet

SCRIPT PREPARATION COMPLETE

Configuring done

CMake Error at src/server/scripts/CMakeLists.txt:148 (add_library):

Cannot find source file:

HEAD

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

.hxx .in .txx

 

Not been updating my server in a long time; I've updated the source (with quite a lot of conflicts), installed and configured Boost and started Cmake...but this error keeps popping up.

Link to comment
Share on other sites

I won't bitch about Boost because everyone hates it.

 

However.

I get issue:

CMake Error at cmake/macros/FindBoost.cmake:1113 (message):
Unable to find the requested Boost libraries.

Boost version: 1.55.0

Boost include path: C:/local/boost_1_55_0

Could not find the following static Boost libraries:

boost_system
boost_thread
boost_program_options

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.

 

 

Why?  I don't know, I made boost_root a system var to the path

I even make a boost_librarydir and set it to c:localboost_1_55_0libs

No work. =[

Link to comment
Share on other sites

Hello everyone,

 

I have this problem when Linking CXX with make in src/server/worldserver:

/usr/bin/ld: failed to set dynamic section sizes: Memory exhausted

make[2]: *** [src/server/worldserver/worldserver] Erreur 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Erreur 2
make: *** [all] Erreur 2

 

I do make to another first folder authserver, collison, game, scripts, and shared but i don't have this problem...

 

I search on google and i find http://forums.mozillazine.org/viewtopic.php?f=42&t=2750117 but that can't solve my problem...

 

I have a serveur but I want to develop on my local.

 

On local I have 4gb on physics ram and 4gb on swap.

 

When do linking the make process memory demand up to 3,8gb (2g on physics and rest on swap) and crash with error: Memory exhausted...

 

Please help me :)!

Edited by theludovyc
Link to comment
Share on other sites

Why?

 

I lost two days now to resolve this problem!

 

I try modulary, so I use submake in subdirectory

 

I try to use make LC_ALL=C for more allocated memory

 

I try to create custom group to use swap and I have the same problem!

 

So why is it useless?

 

Sorry if i am nervous but i don't see the solution now, and i don't like this...

Link to comment
Share on other sites

Ok I add more informations in my first post.

 

I have a serveur but I want to develop on my local.

 

On local I have 4gb on physics ram and 4gb on swap.

 

When do linking the make process memory demand up to 3,8gb (2g on physics and rest on swap) and crash with error: Memory exhausted...

Link to comment
Share on other sites

Requirements

Platform: Linux, Windows or Mac

Processor with SSE2 support

ACE ≥ 5.8.3 (included for Windows)

MySQL ≥ 5.1.0 (included for Windows)

CMake ≥ 2.8.11.2 / 2.8.9 (Windows / Linux)

OpenSSL ≥ 1.0.0

GCC ≥ 4.7.2 (Linux only)

MS Visual Studio ≥ 12 (2013) (Windows only)

"MS Visual Studio ≥ 12 (2013) (Windows only)"

 

Most people ether cant afford to go past xp/vista  so there highest MSVS is 2010

 

In other words this "MS Visual Studio ≥ 12 (2013) (Windows only)" should be saying this "MS Visual Studio ≥ 12 (2013) (Windows 7/8)"

 

Windows Only would be considered MSVS 2010 guys should really do your homework as most server machines run better off of xp/vist and MSVS 2010 what your doing is forcing an upgrade.

 

And no i well not turn off my ad blockers because asking such a thing is considered against the law in 7 Continents.

Link to comment
Share on other sites

Windows Only would be considered MSVS 2010 guys should really do your homework as most server machines run better off of xp/vist and MSVS 2010 what your doing is forcing an upgrade.

Sorry, but we don't go to stay on VS2010 because core devs wanna use lambas and other c++11 only features, if you can't afford W7/8 machine, install Linux, but we don't go to stay on a 13 years old unsuported OS, and if next year VS2014 is released and GCC 4.9 becomes final and we see c++14 can help us we will force again compiler minimum requirement ussing c++14 only features, if you don't wanna have gunship battle, stay on VS2010 or switch to mangos.

Ah, btw, "as most server machines run better off of xp/vist and MSVS 2010" you can also switch into linux and there it will run even better.

  • Upvote 1
Link to comment
Share on other sites

Sorry, but we don't go to stay on VS2010 because core devs wanna use lambas and other c++11 only features, if you can't afford W7/8 machine, install Linux, but we don't go to stay on a 13 years old unsuported OS, and if next year VS2014 is released and GCC 4.9 becomes final and we see c++14 can help us we will force again compiler minimum requirement ussing c++14 only features, if you don't wanna have gunship battle, stay on VS2010 or switch to mangos.

Ah, btw, "as most server machines run better off of xp/vist and MSVS 2010" you can also switch into linux and there it will run even better.

 

I'm so sorry that you have to deal with people that think XP/Vista should be used to run servers, ever.

  • Upvote 1
Link to comment
Share on other sites

linux would be the best choice but btw, anyone who knows a little bit about windows server architecture, would tell that win 2008 server + are 100 times better then old versions of win server or winxp) btw. winxp is not even a server OS, shure, trinity is working but the os is "outdated crap"
sorry but its the true!

Link to comment
Share on other sites

Been compiling no problem for awhile now. I did a pull of the master about a half hour ago (last pull was 2 days ago, no problems) and ~100 files appeared to be updated. When I run cmake I get an SQL error I have never seen before. Nothing in my setup has changed.

 

 

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;P:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;P:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;P:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;P:/OpenSSL-Win64/lib/VC/libeay32MDd.lib

Found OpenSSL headers: P:/OpenSSL-Win64/include

Boost version: 1.55.0

Found the following Boost libraries:

system

thread

program_options

CMake Error at cmake/macros/FindMySQL.cmake:175 (message):
Could not find the MySQL libraries! Please install the development
libraries and headers
Call Stack (most recent call first):
CMakeLists.txt:61 (find_package)

 

Configuring incomplete, errors occurred!

See also "D:/Trinity Core/Build/CMakeFiles/CMakeOutput.log".

See also "D:/Trinity Core/Build/CMakeFiles/CMakeError.log".

 

 

Determining if files pthread.h exist failed with the following output:
Change Dir: D:/Trinity Core/Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTryCompileExec1764667153.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
Microsoft ® Build Engine version 12.0.21005.1

[Microsoft .NET Framework, version 4.0.30319.18444]

Copyright © Microsoft Corporation. All rights reserved.



Build started 8/26/2014 2:56:46 PM.

Project "D:Trinity CoreBuildCMakeFilesCMakeTmpcmTryCompileExec1764667153.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTryCompileExec1764667153.dirDebug".

  Creating directory "D:Trinity CoreBuildCMakeFilesCMakeTmpDebug".

  Creating directory "cmTryCompileExec1764667153.dirDebugcmTryCom.97E3F1F5.tlog".

InitializeBuildStatus:

  Creating "cmTryCompileExec1764667153.dirDebugcmTryCom.97E3F1F5.tlogunsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:Program Files (x86)Microsoft Visual Studio 12.0VCbinx86_amd64CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1764667153.dirDebug" /Fd"cmTryCompileExec1764667153.dirDebugvc120.pdb" /Gd /TC /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512 /errorReport:queue CheckIncludeFiles.c

  Microsoft ® C/C++ Optimizing Compiler Version 18.00.21005.1 for x64

  Copyright © Microsoft Corporation.  All rights reserved.

 

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1764667153.dirDebug" /Fd"cmTryCompileExec1764667153.dirDebugvc120.pdb" /Gd /TC /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512 /errorReport:queue CheckIncludeFiles.c

 

  CheckIncludeFiles.c

CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [D:Trinity CoreBuildCMakeFilesCMakeTmpcmTryCompileExec1764667153.vcxproj]

Done Building Project "D:Trinity CoreBuildCMakeFilesCMakeTmpcmTryCompileExec1764667153.vcxproj" (default targets) -- FAILED.



Build FAILED.



"D:Trinity CoreBuildCMakeFilesCMakeTmpcmTryCompileExec1764667153.vcxproj" (default target) (1) ->

(ClCompile target) ->

  CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [D:Trinity CoreBuildCMakeFilesCMakeTmpcmTryCompileExec1764667153.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.30


Source:
/* */
#include <pthread.h>


int main(){return 0;}

Edited by llars
Link to comment
Share on other sites

MySQL sources have been removed from the repository.

 

Like OpenSSL, you need to set MYSQL_LIBRARY and MYSQL_INCLUDE_DIR to where you have mysql installed.

 

In my case, it's LIB=D:webservermysqlliblibmysqld.lib and INCLUDE_DIR=D:webservermysqlinclude

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