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

Sorry if something wrong, I'm new here.

OS: Windows 7 64-bit

In CMake I unchecked USE_MYSQL_SOURCES beacause I have everything for 32 bit and MYSQL is 64bit

 

When I try to compile I get a lot of errors like these:

 

shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_..................................................

 

Maybe it's something very simple, I'm sorry, just wanted to give it a go today, to see how everything works...

 

Another think, I know some C++, about two year ago I worked as web developer, since then I left programming, was thinking maybe I should try to do something for Trinity, and I was thinking if my knowledge is enough, and where to start off... Or if I can't do something simple like compiling the source for Trinity, then I don't have a chance :)

Edited by 0000000100
Link to comment
Share on other sites

  • 3 weeks later...

Hello,

 

 For some reason when ever I try to generate the project files I keep getting this error

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "c:/Program Files (x86)/Microsoft Visual Studio
  10.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Trinity/CMakeFiles/CMakeTmp

  

  Run Build Command:C:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild.exe
  cmTryCompileExec2796812712.vcxproj /p:Configuration=Debug
  /p:VisualStudioVersion=10.0

  Microsoft (R) Build Engine version 4.0.30319.17929

  [Microsoft .NET Framework, version 4.0.30319.18034]

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  Build started 6/6/2013 4:56:19 PM.

  Project "C:TrinityCMakeFilesCMakeTmpcmTryCompileExec2796812712.vcxproj"
  on node 1 (default targets).

  PrepareForBuild:

    Creating directory "cmTryCompileExec2796812712.dirDebug".
    Creating directory "C:TrinityCMakeFilesCMakeTmpDebug".

  InitializeBuildStatus:

    Creating "cmTryCompileExec2796812712.dirDebugcmTryCompileExec2796812712.unsuccessfulbuild" because "AlwaysCreate" was specified.

  ClCompile:

    c:Program Files (x86)Microsoft Visual Studio 10.0VCbinCL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2796812712.dirDebug" /Fd"C:/Trinity/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2796812712.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2796812712.dirDebug" /Fd"C:/Trinity/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2796812712.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
    
    testCCompiler.c

  ManifestResourceCompile:

    C:Program Files (x86)Microsoft SDKsWindowsv7.0Abinrc.exe /nologo /fo"cmTryCompileExec2796812712.dirDebugcmTryCompileExec2796812712.exe.embed.manifest.res" cmTryCompileExec2796812712.dirDebugcmTryCompileExec2796812712_manifest.rc 

  Link:

    c:Program Files (x86)Microsoft Visual Studio 10.0VCbinlink.exe /ERRORREPORT:QUEUE /OUT:"C:TrinityCMakeFilesCMakeTmpDebugcmTryCompileExec2796812712.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec2796812712.dirDebugcmTryCompileExec2796812712.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/Trinity/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2796812712.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Trinity/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2796812712.lib" /MACHINE:X86 cmTryCompileExec2796812712.dirDebugcmTryCompileExec2796812712.exe.embed.manifest.res
    cmTryCompileExec2796812712.dirDebugtestCCompiler.obj  /machine:X86 /debug 

  LINK : fatal error LNK1123: failure during conversion to COFF: file invalid
  or corrupt
  [C:TrinityCMakeFilesCMakeTmpcmTryCompileExec2796812712.vcxproj]

  Done Building Project
  "C:TrinityCMakeFilesCMakeTmpcmTryCompileExec2796812712.vcxproj"
  (default targets) -- FAILED.

  

  Build FAILED.

  

  "C:TrinityCMakeFilesCMakeTmpcmTryCompileExec2796812712.vcxproj"
  (default target) (1) ->

  (Link target) -> 

    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:TrinityCMakeFilesCMakeTmpcmTryCompileExec2796812712.vcxproj]

  

      0 Warning(s)
      1 Error(s)

  

  Time Elapsed 00:00:00.42

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:12 (project)


Configuring incomplete, errors occurred!

Is there a problem with my Visual Studio or is it something different?

Link to comment
Share on other sites

Make sure you have applied any Service packs that are available for your compiler, make sure you have installed all of the necessary runtimes, etc. and, also make sure you are using a C++ version of VS .NET and not, say, C# or VB .NET only version...

 

 

Edit:

 

Just noticed

 

 


Microsoft ® 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

 

so, it is a C/C++ version. :)

 

make sure some of your dependencies (such as mysql or openssl) are not 64 bit, since you are using a 32 bit compiler...

Link to comment
Share on other sites

  • 2 weeks later...

Hi. I'm trying to compile TrinityCore on Linux, which is my first time to do it on Linux. When I attempt to cmake before the compiling of the core, I get the rather "famous" Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES) error. I've looked through much of my system, and I have found a ssl folder with a lib folder and include folder, and more folders.

I've used -DOPENSSL_LIBRARIES= to point to the libraries folder

But it doesn't work

I have of course searched on the forums, but none of the already existing threads have helped me.

PENSSL_INCLUDE_DIR=/usr/local/ssl
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- GCC: SFMT enabled, SSE2 flags forced
-- Found ACE library: /usr/local/lib/libACE.so
-- Found ACE headers: /usr/local/include
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES)
Call Stack (most recent call first):
/usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
cmake/macros/FindOpenSSL.cmake:175 (find_package_handle_standard_args)
CMakeLists.txt:53 (find_package)


-- Configuring incomplete, errors occurred!
I'm on Ubuntu Desktop 12.04 "Precise Pangolin" LTS + x2go (64Bits)
Link to comment
Share on other sites

Good evening,

 

 

I´m trying to setup Trinitycore on my arch linux server.

Just followed the generic linux instructions, but the compiler stops with the following errors:

[ 27%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/CharacterHandler.cpp.o
In file included from /home/trinity/TrinityCore/src/server/game/Handlers/CharacterHandler.cpp:43:0:
/home/trinity/TrinityCore/src/server/game/Handlers/CharacterHandler.cpp: In member function 'void WorldSession::HandlePlayerLogin(LoginQueryHolder*)':
/home/trinity/TrinityCore/src/server/shared/SystemConfig.h:42:80: error: expected ')' before '_BUILD_DIRECTIVE'
 #  define _FULLVERSION _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Unix, " _BUILD_DIRECTIVE ")"
                                                                                ^
/home/trinity/TrinityCore/src/server/game/Handlers/CharacterHandler.cpp:862:33: note: in expansion of macro '_FULLVERSION'
             chH.PSendSysMessage(_FULLVERSION);
                                 ^
make[2]: *** [src/server/game/CMakeFiles/game.dir/Handlers/CharacterHandler.cpp.o] Error 1
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2
[root@homebase build]# 

And here´s my configure output:

[root@homebase build]# cmake ../ -DPREFIX=/home/trinity/server
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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 jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- Found ACE library: /usr/local/lib/libACE.so
-- Found ACE headers: /usr/local/include
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so  
-- 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/libmysqlclient_r.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.8") 
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.6") 
-- 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   : 7e01ac23db0d 2013-06-22 17:24:23 +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/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 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
-- SCRIPT PREPARATION COMPLETE

-- Configuring done
-- Generating done
-- Build files have been written to: /home/trinity/TrinityCore/build

any tips / hints for me?

 

Thank you.

 

Best regards, kc

 

 

 

Link to comment
Share on other sites

https://github.com/TrinityCore/TrinityCore/blob/master/README#L65

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

--- Canned message start ---

Please Look in upper right hand corner of the forum, there is a button labeled search field, feel free to search for your issues first before posting, most questions like this one have already been answered.

If you still cannot find the answers you seek feel free to make a post and tell us the steps you took to resolve this issue and we will do our best to help you.

--- Canned message end ---

Link to comment
Share on other sites

  • 2 weeks later...

Hi All,

 

I had configured the IP-address 192.168.1.17 in the realmlist table in the auth database. For testing purposes (it's running in a Linux VM) I changed the entry to reflect 192.168.226.18 (internal VMware LAN), but when I start authserver it still displays:

 

Using configuration file /data/trinity/server/etc/authserver.conf.
OpenSSL 1.0.0 29 Mar 2010 (Library: OpenSSL 1.0.0-fips 29 Mar 2010)
Opening DatabasePool 'auth'. Asynchronous connections: 1, synchronous connection                                                                                                          s: 1.
MySQL client library: 5.1.69
MySQL server ver: 5.1.69
Connected to MySQL database at 127.0.0.1
MySQL client library: 5.1.69
MySQL server ver: 5.1.69
Connected to MySQL database at 127.0.0.1
DatabasePool 'auth' opened successfully. 2 total connections running.
Started auth database connection pool.
Updating Realm List...
Added realm "Trinity" at 192.168.1.17:8085.
 

Have I missed something somewhere, I cannot find any references to 192.168.1.17 anywhere.

 

Richard.

Link to comment
Share on other sites

Protip: Don't use HeidiSQL


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

Hello there.
 
I've installed CMake 2.8.1, Open SSL (64 and 32 bits), Visual Studio 10 and Visual 10 Redistributable's Package and Git Extensions (with PATH setup), and I'm getting an error when I'm configuring (in CMake) the 4.3.4 tree's.

Detected 64-bit platform
Using supplied MySQL sources
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
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CheckIncludeFiles.cmake:44 (configure_file):
  configure_file attempted to configure a file:
  C:/TrinitySource/TrinityCore-4.3.4/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
  into a source directory.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindThreads.cmake:39 (CHECK_INCLUDE_FILES)
  CMakeLists.txt:54 (find_package)


Configuring incomplete, errors occurred!

There's something missing or something that I've to change?

 

Thanks for any help.

Edited by Dany
Link to comment
Share on other sites

When I open authserver It just closes after a little bit. I get this in my auth.txt file:

TrinityCore rev. 6dbd574a6907 2013-04-24 03:02:56 -0700 (master branch) (Win32, Release) (authserver)

<Ctrl-C> to stop.
 
Using configuration file authserver.conf.
OpenSSL 1.0.1e 11 Feb 2013 (Library: OpenSSL 1.0.1e 11 Feb 2013)
Opening DatabasePool 'auth'. Asynchronous connections: 1, synchronous connections: 1.
MySQL client library: 5.5.9
MySQL server ver: 5.5.32 
Connected to MySQL database at 127.0.0.1
MySQL client library: 5.5.9
MySQL server ver: 5.5.32 
Connected to MySQL database at 127.0.0.1
In mysql_stmt_prepare() id: 14, sql: "SELECT country FROM ip2nation WHERE ip < ? ORDER BY ip DESC LIMIT 0,1"
Table 'auth.ip2nation' doesn't exist
In mysql_stmt_prepare() id: 68, sql: "SELECT c.country FROM ip2nationCountries c, ip2nation i WHERE i.ip < ? AND c.code = i.country ORDER BY i.ip DESC LIMIT 0,1"
Table 'auth.ip2nationcountries' doesn't exist
DatabasePool auth NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to database

 

Link to comment
Share on other sites

In mysql_stmt_prepare() id: 14, sql: "SELECT country FROM ip2nation WHERE ip < ? ORDER BY ip DESC LIMIT 0,1"

Table 'auth.ip2nation' doesn't exist

In mysql_stmt_prepare() id: 68, sql: "SELECT c.country FROM ip2nationCountries c, ip2nation i WHERE i.ip < ? AND c.code = i.country ORDER BY i.ip DESC LIMIT 0,1"

Table 'auth.ip2nationcountries' doesn't exist

Link to comment
Share on other sites

  • 3 weeks later...

I get this error, when i try to compile the core:

 

/home/TrinityCore/src/server/worldserver/RemoteAccess/RARunnable.cpp:78: /home/TrinityCore/src/server/worldserver/RemoteAccess/RARunnable.cpp: In member function âvirtual void RARunnable::run()â:
/home/hitox/TrinityCore/src/server/worldserver/RemoteAccess/RARunnable.cpp:78: error: no matching function for call to âACE_Reactor::run_reactor_event_loop(ACE_Time_Value)â
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/RemoteAccess/RARunnable.cpp.o] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2

 

rev 3330239

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