Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

Mine is a bit different, using the following revision (https://github.com/TrinityCore/TrinityCore/commit/03f3a2a6367742895620d8786477a27fcce016b9)

I got the following error during compilation


Error    1    fatal error C1189: #error :  sizeof(void *) is neither sizeof(int) nor sizeof(long) nor sizeof(long long)    D:\Trinity Project\Custom with patches\dep\mysqllite\include\my_global.h    947    libmysql

Error    2    fatal error LNK1181: cannot open input file '..\..\..\dep\mysqllite\Release\libmysql.lib'    authserver    authserver

Error    3    fatal error LNK1181: cannot open input file '..\..\..\dep\mysqllite\Release\libmysql.lib'    worldserver    worldserver

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

Hi, when I try to compile lastest TrinityCore in Ubuntu 10.04 32 bits I get an error while executing make command:

trinity@fyrox-desktop:~/build$ cmake ../TrinityCore/ -DPREFIX=/home/trinity/server -DWITH_WARNINGS=1


-- 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 32-bit platform

-- UNIX: Using default configuration directory

-- UNIX: Using default library directory

-- UNIX: Configuring uninstall target

-- UNIX: Created uninstall target

-- GCC: All warnings enabled

-- 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/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 rev. hash  : cb9985c054ff

* TrinityCore rev. date  : 2011-08-21 19:03:24 +0200

* TrinityCore buildtype  : Release

* Install core to    	: /home/trinity/server

* Install libraries to   : /home/trinity/server/lib

* Install configs to 	: /home/trinity/server/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 all warnings  	: Yes

* Use coreside debug 	: 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/trinity/build

trinity@fyrox-desktop:~/build$ make -j 4

Scanning dependencies of target revision.h

Scanning dependencies of target gsoap

Scanning dependencies of target jemalloc

Scanning dependencies of target g3dlib

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

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

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

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

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

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

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

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

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

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

[  2%] Built target revision.h

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

Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryFormat.cpp.o

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

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

[  2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/mb.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/chunk.c.o

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

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

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

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

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

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

Scanning dependencies of target shared_pch_dephelp

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

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

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

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

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

/home/trinity/TrinityCore/src/server/shared/Debugging/Errors.h:24:29: error: ace/Stack_Trace.h: No existe el fichero o el directorio

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

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

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

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

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

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

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

compilation terminated due to -Wfatal-errors.

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[1]: *** Se espera a que terminen otras tareas....

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

Linking C static library libjemalloc.a

[  5%] Built target jemalloc

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

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

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

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

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

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

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

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

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

Linking CXX static library libgsoap.a

[  6%] Built target gsoap

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

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

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

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

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

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

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

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

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

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

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

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

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

[  7%] 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

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

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

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

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

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

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

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

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

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

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

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

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

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

Linking CXX static library libg3dlib.a

[  9%] Built target g3dlib

make: *** [all] Error 2

trinity@fyrox-desktop:~/build$

I've installed ACE and OpenSSL 1.0.0d. Any ideas? Thank in advance

Link to comment
Share on other sites

Hello,

I've got the same error with Ubuntu 11.04 because I needed more swap.

You can get temporary swap with (you must be in Super-User) :

sudo dd if=/dev/zero of=/tmp/swap bs=1M count=1026

sudo mkswap /tmp/swap

sudo swapon /tmp/swap

1026 = temporary swap size in Mo.

The temporary swap stay until a reboot.

Edited by tuxman
Link to comment
Share on other sites

  • 2 weeks later...

Hi i have problems with visual studo, vusial c++ antd other :-\.. License file error afet 5 reinstall. Is here any other way to compile the source? i think with netbeans, codeblocks ort something else.

i am runing 64bit os,

cmake configured after second click to Configure i get:

Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\

Check for working C compiler using: Visual Studio 10 Win64

and nothing happens. when i click to stop nothing happens....

Help please, Greetings Erik Kubica

------------If somebody have latest rev copiled please send me it to my email to avoid leechers... [email protected] ---------

Edited by Erik Kubica
Link to comment
Share on other sites

ok after 2 hours of tryying to set up minGW with code blocks i success fully done the cmake steps. i needed o rewrite user enviroment, place complimer to other folder and more... why things cannot be so easy like on linux

-------------- Build: all in TrinityCore ---------------

Using makefile: Makefile

Scanning dependencies of target ace

[ 0%]

Building CXX object dep/acelite/ace/CMakeFiles/ace.dir/PrecompiledHeaders/WinAcePCH.cpp.obj

g++.exe: /MP: No such file or directory

make.exe[2]: *** [dep/acelite/ace/CMakeFiles/ace.dir/PrecompiledHeaders/WinAcePCH.cpp.obj] Error 1

make.exe[1]: *** [dep/acelite/ace/CMakeFiles/ace.dir/all] Error 2

make.exe: *** [all] Error 2

Process terminated with status 2 (0 minutes, 9 seconds)

0 errors, 0 warnings

Link to comment
Share on other sites

cl : Command line warning D9002: ignoring unknown option '-ggdb'
cl : Command line warning D9002: ignoring unknown option '-O3'
Hum... something really wrong here. Do you have all required dependency's installed? Check my signature! And follow the wiki step-by-step.
LINK : fatal error LNK1181: cannot open input file '..\..\..\dep\mysqllite\Release\libmysql.lib'
Are you sure you have Mysql library's installed?
c:\users\prometheus\desktop\wow server\source\trinitycore-335a\src\tools\vmap3_extractor\loadlib/loadlib.h(53): warning C4820: 'FileLoader' : '4' bytes padding added after data member 'FileLoader::data_size

Almost all errors are from building extractors... have you tryed to compile without them?

Link to comment
Share on other sites

  • 2 weeks later...

hey,

I am running Mac OSX Snow Leopard 10.6.8

I am trying to use trinitcore Hash "872c2d4d6386+"

I was following the wiki to the letter, and tried applying the patch which gave me


Patching file cmake/compiler/xcode/settings.cmake

Hunk #1 succceeded at 1 with fuzz 2.

patching file cmake/platform/osx/settings.cmake

patching file dep/g3dlite/include/G3D/platform.h

patch unexpectedly ends in the middle of line

patch: **** unexpected end of file in patch

I am using this patch

diff -r 1ca0c2d9d6ca cmake/compiler/xcode/settings.cmake

--- a/cmake/compiler/xcode/settings.cmake       Sun Oct 17 03:09:01 2010 +0200

+++ b/cmake/compiler/xcode/settings.cmake       Tue Oct 19 02:18:07 2010 +0200

@@ -1,3 +1,2 @@

 # Set build-directive (used in core to tell which buildtype we used)

 add_definitions(-D_BUILD_DIRECTIVE="$(CONFIGURATION)")

-

diff -r 1ca0c2d9d6ca cmake/platform/osx/settings.cmake

--- a/cmake/platform/osx/settings.cmake Sun Oct 17 03:09:01 2010 +0200

+++ b/cmake/platform/osx/settings.cmake Tue Oct 19 02:18:07 2010 +0200

@@ -27,3 +27,5 @@

   "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"

 )

 message(STATUS "OSX: Created uninstall target")

+

+include(${CMAKE_SOURCE_DIR}/cmake/compiler/xcode/settings.cmake)


diff -r cbe929b901f8 dep/g3dlite/include/G3D/platform.h

--- a/dep/g3dlite/include/G3D/platform.h        Wed Aug 25 23:21:53 2010 +0300

+++ b/dep/g3dlite/include/G3D/platform.h        Thu Aug 26 02:14:42 2010 +0200

@@ -51,7 +51,7 @@

 #elif defined(__linux__)

        #define G3D_LINUX

 #elif defined(__APPLE__)

-       #define G3D_OSX

+       #define G3D_LINUX

so I decided that the error didn't seem too bad so i figured it might still compile (I know stupid but it was 3 am) but alas, Xcode gives me 46 warnings and 1 error

BoundingIntervalHierarchy.cpp

   '*' was not declared in this scope

   'isnan' was not declared in this scope

Link to comment
Share on other sites

What patch are you trying to apply?

I have tried both the patches provided in the wiki

the latest of which I posted in the topic


diff -r 1ca0c2d9d6ca cmake/compiler/xcode/settings.cmake

--- a/cmake/compiler/xcode/settings.cmake       Sun Oct 17 03:09:01 2010 +0200

+++ b/cmake/compiler/xcode/settings.cmake       Tue Oct 19 02:18:07 2010 +0200

@@ -1,3 +1,2 @@

 # Set build-directive (used in core to tell which buildtype we used)

 add_definitions(-D_BUILD_DIRECTIVE="$(CONFIGURATION)")

-

diff -r 1ca0c2d9d6ca cmake/platform/osx/settings.cmake

--- a/cmake/platform/osx/settings.cmake Sun Oct 17 03:09:01 2010 +0200

+++ b/cmake/platform/osx/settings.cmake Tue Oct 19 02:18:07 2010 +0200

@@ -27,3 +27,5 @@

   "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"

 )

 message(STATUS "OSX: Created uninstall target")

+

+include(${CMAKE_SOURCE_DIR}/cmake/compiler/xcode/settings.cmake)


diff -r cbe929b901f8 dep/g3dlite/include/G3D/platform.h

--- a/dep/g3dlite/include/G3D/platform.h        Wed Aug 25 23:21:53 2010 +0300

+++ b/dep/g3dlite/include/G3D/platform.h        Thu Aug 26 02:14:42 2010 +0200

@@ -51,7 +51,7 @@

 #elif defined(__linux__)

        #define G3D_LINUX

 #elif defined(__APPLE__)

-       #define G3D_OSX

+       #define G3D_LINUX

Link to comment
Share on other sites

Hi, what compiler for windows is best for the current version of TC? vc2008? or vc2010?

anyways i want generate solution for 64 bit version, i already installed all tools, vcsetup (2008 version), vcredist_x64 (2008 too), openssl64... When i run cmake and configure with compiler "Visual Studio 9 2008 Win64" i get errors: Error in configuration process, project files my be invalid.

I followed the howto from wiki page, and used the search buttom :P

but i dont found how to configure for 64 bits :(

Check for working C compiler using: Visual Studio 9 2008 Win64

Check for working C compiler using: Visual Studio 9 2008 Win64 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

The C compiler "cl" is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/Casa/Desktop/TrinityCore/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\VCExpress.exe

CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

Microsoft ® Visual C++ Express Edition, versión 9.0.21022.8.

© Microsoft Corp 2007. Reservados todos los derechos.

El proyecto consta en su totalidad de configuraciones que necesitan soporte

para plataformas que no est n instaladas en este equipo. El proyecto no se

puede cargar.

El proyecto consta en su totalidad de configuraciones que necesitan soporte

para plataformas que no est n instaladas en este equipo. El proyecto no se

puede cargar.

Proyecto no v lido

Utilice:

vcexpress [archivosoluci¢n | archivoproyecto | cualquierarchivo.ext]

[switches]

El primer argumento para devenv es normalmente un archivo de soluci¢n o de

proyecto.

Tambi�n puede utilizar cualquier otro archivo como primer argumento si

desea que

el archivo se abra autom ticamente en un editor. Cuando especifica un

archivo de proyecto, el IDE

busca un archivo .sln con el mismo nombre base que el archivo de proyecto

en el directorio

primario del archivo de proyecto. Si no existe el archivo .sln, el IDE

busca un £nico archivo .sln que haga referencia al proyecto. Si no existe

ese archivo

.sln £nico, el IDE crea una soluci¢n sin guardar con un nombre de archivo

.sln

predeterminado que tenga el mismo nombre base que el archivo de proyecto.

Sintaxis de la l¡nea de comandos:

devenv archivosoluci¢n.sln /build [ configuraci¢nsoluci¢n ] [ /project

nombreproyectooarchivo [ /projectconfig nombre ] ]

Modificadores de la l¡nea de comandos disponibles:

/Log Registra la actividad del IDE en el archivo especificado de

resoluci¢n de problemas.

/ResetSettings Restaura la configuraci¢n predeterminada del IDE y,

opcionalmente,

restablece el archivo de VSSettings especificado.

/SafeMode Inicia el IDE en modo seguro y carga el n£mero m¡nimo de

ventanas.

Modificadores espec¡ficos del producto:

/debugexe Abrir el archivo ejecutable especificado que se va a depurar.

El resto de la l¡nea de comandos se pasa a este

archivo ejecutable como sus argumentos.

/useenv Utilizar las variables de entorno PATH, INCLUDE, LIBPATH y LIB

en lugar de las rutas de acceso IDE para compilaciones de VC++.

Para asociar el depurador desde la l¡nea de comandos, utilice:

VsJITDebugger.exe -p <pid>

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:12 (project)

Configuring incomplete, errors occurred!

cmake needs any configuration for run with openssl64 bits??

need i any more aplication?? http://imageshack.us.../capturasn.jpg/

maybe needs to configure the sdk aplication?

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