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

Hi!

I'm trying since yesterday to compile TrinityCore in Debug (does not work in Release too). I let Visual Studio 2013 open all night but this morning the compilation was still blocked on the file wave.c... in deplibmpq project.

I just get the following files:

ace.dll
ace.ilk
ace.pdb
authserver.conf.dist
authserver.exe
authserver.ilk
authserver.pdb
libmysql.dll
libmysql.ilk
libmysql.pdb
vmap4assembler.exe
vmap4assembler.ilk
vmap4assembler.pdb
worldserver.conf.dist
worldserver.exe
worldserver.ilk
worldserver.pdb

I tried to compile without TrinityTools for maps, vmaps, dbc and mmaps and it works, but if I do not have maps, etc : I can not start the server.

 

mpq.log : http://pastebin.com/x0CH8DLm

mpq.pdb : http://fbe.am/sby in ZiP file.

 

Thank you for your response. I am at your disposal for further information.

Edited by Belitharian
Link to comment
Share on other sites

The C compiler identification is unknown
The CXX compiler identification is unknown

I found it : http://cmake.3232098.n2.nabble.com/Visual-Studio-10-compiler-identification-unknown-td7585120.html

Don't forget to clean your cMake Cache before rebuild.

 

Maybe it could help you.

 

PS : Have you solutions for my compilation problem?

Edited by Belitharian
Link to comment
Share on other sites

The C compiler identification is unknown
The CXX compiler identification is unknown

I found it : http://cmake.3232098.n2.nabble.com/Visual-Studio-10-compiler-identification-unknown-td7585120.html

Don't forget to clean your cMake Cache before rebuild.

 

Maybe it could help you.

 

PS : Have you solutions for my compilation problem?

 

No dice, friend.

Link to comment
Share on other sites

I am about run trinity on a centos machine, and the system is centos 6.2

 

the compile process is as flows:

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/local/bin/cc
-- Check for working C compiler: /usr/local/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/local/bin/cc
-- GCC: Enabled c++11 support
-- GCC: Enabled C99 support
-- GCC: SFMT enabled, SSE2 flags forced
-- Found ACE library: /usr/local/lib/libACE.so
-- Found ACE headers: /usr/local/include
-- Found OpenSSL library: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so
-- Found OpenSSL headers: /usr/include
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib64/mysql/libmysqlclient.so
-- Found MySQL headers: /usr/include/mysql
-- Found Readline library: /usr/lib64/libreadline.so
-- Include dir is: /usr/include
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3") 
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.5") 
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- Found git binary : /usr/bin/git

* TrinityCore revision   : b717ce0edaf2+ 2014-04-07 09:56:06 +0200 (master branch)
* TrinityCore buildtype  : Release

* Install core to        : /home/trinity/server
* Install libraries to   : /home/trinity/server/lib
* Install configs to     : /home/trinity/server/conf

* 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)
* Show compile-warnings  : No  (default)
* 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 done
-- Generating done
-- Build files have been written to: /home/trinity/forcompile/build

make -j 4 

 

then it has errors as:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/trinity/forcompile/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec3516515598/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3516515598.dir/build.make CMakeFiles/cmTryCompileExec3516515598.dir/build
gmake[1]: Entering directory `/home/trinity/forcompile/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake28 -E cmake_progress_report /home/trinity/forcompile/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3516515598.dir/CheckSymbolExists.c.o
/usr/local/bin/cc   -std=gnu99     -o CMakeFiles/cmTryCompileExec3516515598.dir/CheckSymbolExists.c.o   -c /home/trinity/forcompile/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3516515598
/usr/bin/cmake28 -E cmake_link_script CMakeFiles/cmTryCompileExec3516515598.dir/link.txt --verbose=1
/usr/local/bin/cc    -std=gnu99      CMakeFiles/cmTryCompileExec3516515598.dir/CheckSymbolExists.c.o  -o cmTryCompileExec3516515598 -rdynamic 
CMakeFiles/cmTryCompileExec3516515598.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: Leaving directory `/home/trinity/forcompile/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3516515598] Error 1
gmake: *** [cmTryCompileExec3516515598/fast] Error 2

File /home/trinity/forcompile/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: /home/trinity/forcompile/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2355673569/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2355673569.dir/build.make CMakeFiles/cmTryCompileExec2355673569.dir/build
gmake[1]: Entering directory `/home/trinity/forcompile/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake28 -E cmake_progress_report /home/trinity/forcompile/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2355673569.dir/CheckFunctionExists.c.o
/usr/local/bin/cc   -std=gnu99  -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2355673569.dir/CheckFunctionExists.c.o   -c /usr/share/cmake28/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2355673569
/usr/bin/cmake28 -E cmake_link_script CMakeFiles/cmTryCompileExec2355673569.dir/link.txt --verbose=1
/usr/local/bin/cc    -std=gnu99  -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2355673569.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2355673569 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: Leaving directory `/home/trinity/forcompile/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2355673569] Error 1
gmake: *** [cmTryCompileExec2355673569/fast] Error 2

if I compile without  DTOOLS then this whole thing runs smooth without problem, however when I add  -DTOOLS=1 , the error occurs,

 

 

coould anyone give me some help on how to solve this. thanks!

Link to comment
Share on other sites

Hi !
 
I have restore my computer today and reinstalled all the software for build trinitycore but today CMake will not build the source. I have build with new sources from the trintycore repository and here's the CMake logs :
 
 
Configuration :
 
Windows 8.1
CMake 2.8.12.2
Visual Studio 2012
Openssl 1.0.1g
Edited by Frøøzen
Link to comment
Share on other sites

When i hit configure, and choose Visual Studio 10, and default native compilers,

then it comes up with an error: Error in configuration process, project files may be invalid

 

It's really annoying, and i cant find a fix for it, please help..

 

I've attached a screenshot.

post-20422-0-86357900-1398098116_thumb.p

Link to comment
Share on other sites

visual studio 2013 is required, afaik.

 

Same error with Visual Studio 2013 (I've choose Visual Studio 12 on CMake)

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:12 (project)
 
 
The C compiler identification is unknown
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:12 (project)
Configuration :
 
Windows 8.1
CMake 2.8.12.2
Visual Studio 2012 - Visual Studio 2013
Openssl 1.0.1g
Edited by Frøøzen
Link to comment
Share on other sites

Hey Smellbee,

What version of g++ & gcc & cmake are you running?

I haven't compiled on my CentOS box for quite some time and will try it out since TC changed the cmake configuration to allow newer compilers.

 

Also something that I noticed before you ran anything...

-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
Link to comment
Share on other sites

 

Hey Smellbee,

What version of g++ & gcc & cmake are you running?

I haven't compiled on my CentOS box for quite some time and will try it out since TC changed the cmake configuration to allow newer compilers.

 

Also something that I noticed before you ran anything...

-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found

 

gcc is 4.7.2 , you can see in my previous post as:

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2

cmake :  2.8

 

 

I think pthread is there, and you can see it as :

-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found

it found pthread in pthread 

 

I dont know what is wrong :(

Link to comment
Share on other sites

Nop... doesn't work :(

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:12 (project)


The C compiler identification is unknown
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:12 (project)


The CXX compiler identification is unknown
Link to comment
Share on other sites

Visual Studio 12 (Visual Studio 2013)

 

Configuration :

 

Windows 7 (64bits)

Visual Studio 2013

CMake 2.8.12 (32bits)

GitExtension (2.47.03) > GitVersion 1.8.3 > KDiff3

.NET Framework 4.5 and 4.5.1 (+ SDK)

Visual C++ 2008 (x86)

Visual C++ 2010 (x86 & x64)

Visual C++ 2012 (x86 & x64)

Openssl 1.0.1g (32bits)

Microsoft Windows SDK for Windows 7(7.1)

Microsoft Visual C++ Compilers 2010 SP1 (x86 & x64)

WampServer 2.4

Edited by Frøøzen
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...