Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

1 hour ago, Dukla said:

It is all there in my post ... even parameters ...

No, it's not.

 

 cmake ../
-- Detected 64-bit platform
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/clang-3.8
-- Clang: All warnings enabled
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/bin/git

* TrinityCore revision   : 4536846d7d30+ 2017-02-12 05:43:55 -0300 (3.3.5 branch)
* TrinityCore buildtype  : None

* Install core to        : /home/bin/trinity335a
* Install libraries to   : /home/bin/trinity335a/lib
* Install configs to     : /home/bin/trinity335a/etc

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (static)
* 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)
* Show source tree       : Yes (hierarchical)
* Use GIT revision hash  : Yes (default)

-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   program_options
--   iostreams
--   regex
-- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
-- Found OpenSSL headers: /usr/include
-- Found Readline library: /usr/lib/x86_64-linux-gnu/libreadline.so
-- Include dir is: /usr/include

* Script configuration (static):
    |
    +- worldserver
    |   +- Northrend
    |   +- Events
    |   +- OutdoorPvP
    |   +- Commands
    |   +- Kalimdor
    |   +- Outland
    |   +- Pet
    |   +- Custom
    |   +- World
    |   +- Spells
    |   +- EasternKingdoms
    |

-- Configuring done
-- Generating done
-- Build files have been written to: /home/src/produccion/bin
 

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

I get this on the last tool compile for vmap4extractor:

 

[ 98%] Linking CXX executable vmap4extractor
CMakeFiles/vmap4extractor.dir/vmapexport.cpp.o: In function `ExtractSingleWmo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
vmapexport.cpp:(.text+0x4c6): undefined reference to `WMORoot::WMORoot(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
vmapexport.cpp:(.text+0x553): undefined reference to `WMOGroup::WMOGroup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/vmap4extractor.dir/gameobject_extract.cpp.o: In function `ExtractGameobjectModels()':
gameobject_extract.cpp:(.text+0x311): undefined reference to `DBCFile::DBCFile(std::string const&)'
gameobject_extract.cpp:(.text+0x4f6): undefined reference to `ExtractSingleWmo(std::string&)'
collect2: error: ld returned 1 exit status
src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/build.make:279: recipe for target 'src/tools/vmap4_extractor/vmap4extractor' failed
make[2]: *** [src/tools/vmap4_extractor/vmap4extractor] Error 1
CMakeFiles/Makefile2:2005: recipe for target 'src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/all' failed
make[1]: *** [src/tools/vmap4_extractor/CMakeFiles/vmap4extractor.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 

My apologies if I missed notice about this one. On 3.3.5a branch. Ubuntu 16.04, cmake 3.5.2

Link to comment
Share on other sites

  • 2 weeks later...

hy all.

I have a problem with build, i get an error in bnet and World:

Severity

Code

Description

Project

File

Line

Suppression State

Error

LNK1181

cannot open input file 'C:\mysql-5.7.17-winx64\lib.obj'

bnetserver

D:\Servers\WoW\LEGION\bin\src\server\bnetserver\LINK

1

 

Using master branch
Visual Studio 2015 Comm
mysql 5.7.17 64bit

yes, i know, the lib.obj file is missing from mysql dir, where can i get this?


_________________________________________________________________
I SOLVED THIS PROBLEM

Edited by Azzeroth
solved
Link to comment
Share on other sites

Detected 64-bit platform

MSVC: 64-bit platform, enforced -D_WIN64 parameter

MSVC: Enabled increased number of sections in object files

MSVC: Overloaded standard names

MSVC: Disabled NON-SECURE warnings

MSVC: Disabled POSIX warnings

MSVC: Disabled generic compiletime warnings

Found MySQL library: C:/Program Files/MySQL/MySQL Server 5.6/lib/libmysql.lib

Found MySQL headers: C:/Program Files/MySQL/MySQL Server 5.6/include

Found MySQL executable: C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe

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

 

* TrinityCore revision : 6067d19dfc43 2017-03-08 19:22:48 +0100 (master branch)

 

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

 

* Build world/auth : Yes (default)

* Build with scripts : Yes (static)

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

* Show source tree : Yes (hierarchical)

* Use GIT revision hash : Yes (default)

 

Boost version: 1.60.0

Found the following Boost libraries:

system

filesystem

thread

program_options

iostreams

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

CMake Error at cmake/macros/FindOpenSSL.cmake:191 (file):
file STRINGS file "C:/OpenSSL-Win64/openssl/opensslv.h" cannot be read.
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:203 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:204 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:205 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:206 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:213 (math):
math cannot parse the expression: " + 96": syntax error, unexpected
exp_PLUS, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:217 (string):
string Character with code does not exist.
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/EnsureVersion.cmake:76 (MATH):
math cannot parse the expression: "..*10000 + ..*100 + 0": syntax error,
unexpected exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (3)
Call Stack (most recent call first):
cmake/macros/EnsureVersion.cmake:111 (NORMALIZE_VERSION)
cmake/macros/FindOpenSSL.cmake:224 (ENSURE_VERSION_RANGE)
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:226 (message):
TrinityCore needs OpenSSL version 1.0 but found version ..
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

Configuring incomplete, errors occurred!

See also "C:/Build/CMakeFiles/CMakeOutput.log".

See also "C:/Build/CMakeFiles/CMakeError.log".

 

________________________________________________

 

CMake version: 3.7.2

OpenSSL version: 1.0.2k win 64

 

I already searched in the common problems but i didn't find a solution...

I'm trying to generate from "master" branch

Link to comment
Share on other sites

Note #2: While installing OpenSSL, choose The OpenSSL binaries (/bin) directory (NOT "The Windows system directory")
 

I reinstalled OpenSSL 1.0.2k with this option and installed OpenSSL 1.0.2k 32 bits too. Still get this error:

 

_____________________________________________________________________

 

Detected 64-bit platform

MSVC: 64-bit platform, enforced -D_WIN64 parameter

MSVC: Enabled increased number of sections in object files

MSVC: Overloaded standard names

MSVC: Disabled NON-SECURE warnings

MSVC: Disabled POSIX warnings

MSVC: Disabled generic compiletime warnings

Found MySQL library: C:/Program Files/MySQL/MySQL Server 5.6/lib/libmysql.lib

Found MySQL headers: C:/Program Files/MySQL/MySQL Server 5.6/include

Found MySQL executable: C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe

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

 

* TrinityCore revision : 6067d19dfc43 2017-03-08 19:22:48 +0100 (master branch)

 

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

 

* Build world/auth : Yes (default)

* Build with scripts : Yes (static)

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

* Show source tree : Yes (hierarchical)

* Use GIT revision hash : Yes (default)

 

Boost version: 1.60.0

Found the following Boost libraries:

system

filesystem

thread

program_options

iostreams

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

CMake Error at cmake/macros/FindOpenSSL.cmake:191 (file):
file STRINGS file "C:/OpenSSL-Win64/openssl/opensslv.h" cannot be read.
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:203 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:204 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:205 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:206 (list):
list GET given empty list
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:213 (math):
math cannot parse the expression: " + 96": syntax error, unexpected
exp_PLUS, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:217 (string):
string Character with code does not exist.
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/EnsureVersion.cmake:76 (MATH):
math cannot parse the expression: "..*10000 + ..*100 + 0": syntax error,
unexpected exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (3)
Call Stack (most recent call first):
cmake/macros/EnsureVersion.cmake:111 (NORMALIZE_VERSION)
cmake/macros/FindOpenSSL.cmake:224 (ENSURE_VERSION_RANGE)
dep/openssl/CMakeLists.txt:16 (find_package)

 

CMake Error at cmake/macros/FindOpenSSL.cmake:226 (message):
TrinityCore needs OpenSSL version 1.0 but found version ..
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

Configuring incomplete, errors occurred!

See also "C:/Build/CMakeFiles/CMakeOutput.log".

See also "C:/Build/CMakeFiles/CMakeError.log".

Link to comment
Share on other sites

EDIT:

Oh lord, I fked up. When downloading TC with the Github-Client, i didn't merge the two master-branches. I guess I had something from a previous installation on my disc. Obviously, it works now. Sorry for this.

_____

I am sure, I downloaded both the latest (not light) versions of OpenSSL 1.0.2k 64/32bit, as stated on the tutorial, and I set the option to put the binaries not in the windows folder. sxegg's cmake-log says " TrinityCore needs OpenSSL version 1.0 but found version .. ", but mine says "TrinityCore needs OpenSSL version 1.0.0 but found version ..". Maybe a recent update broke something? Do you know where to find older precompiled Windows binaries? I tried, but I only found the sources..

Also, I had an older version of OpenSSL installed, used by a compilation some months ago. Is it possible that the version number is saved in the registry or something, and cmake compares this one, and not the one actually installed?

Edited by Ceriana
Link to comment
Share on other sites

Hi there  i want to compile a 3.3.5a trinitycore and i instaled everithing  All visual studios versioan and i kee get thes  erorr

he C compiler identification is unknown

The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:15 (project):
No CMAKE_C_COMPILER could be found.


 

CMake Error at CMakeLists.txt:15 (project):
No CMAKE_CXX_COMPILER could be found.


 

Configuring incomplete, errors occurred!

See also "C:/build/CMakeFiles/CMakeOutput.log".

See also "C:/build/CMakeFiles/CMakeError.log".

 

Please Help me guys i m new on thes  and i tried everithing if someone can help me  Please

Link to comment
Share on other sites

27 minutes ago, hessor said:

Hi there  i want to compile a 3.3.5a trinitycore and i instaled everithing  All visual studios versioan and i kee get thes  erorr

he C compiler identification is unknown

The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:15 (project):
No CMAKE_C_COMPILER could be found.


 

CMake Error at CMakeLists.txt:15 (project):
No CMAKE_CXX_COMPILER could be found.


 

Configuring incomplete, errors occurred!

See also "C:/build/CMakeFiles/CMakeOutput.log".

See also "C:/build/CMakeFiles/CMakeError.log".

 

Please Help me guys i m new on thes  and i tried everithing if someone can help me  Please

Follow the TC requirements page guide on how to install visual studio.

Link to comment
Share on other sites

Hello all, after going through the core set up for Win, I noticed the wikki says I should have bnetserver.pdb and worldserver.pdb files in my build folder. I do not have those two files. I compiled using VS 2017. I also noticed that it says I need those two files for the 3.3.5 server as well, but I have never seen those 2 files in my 3.3.5 build folder before. Are those 2 files for OS's other than Winblows or did I miss something? I am currently trying to get the master branch up and running.

Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...