Welcome to AC Web.
Results 1 to 4 of 4
  1. #1

    Trinitycore 335 cmake problem error


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Hi Guys,

    Have a problem with Cmake
    I want to compile a new Trinitycore 3.3.5

    I have installed that

    Visual Studio 2017 x64
    cmake-3.9.6
    boost_1_65_1
    Mysql 5.6.39
    Windows 10 x64

    that is the mistake maybe one can me
    say what I did wrong




    The C compiler identification is MSVC 19.13.26129.0
    The CXX compiler identification is MSVC 19.13.26129.0
    Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe
    Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe -- works
    Detecting C compiler ABI info
    Detecting C compiler ABI info - done
    Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe
    Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe -- works
    Detecting CXX compiler ABI info
    Detecting CXX compiler ABI info - done
    Detecting CXX compile features
    Detecting CXX compile features - done
    CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy):
    The OLD behavior for policy CMP0005 will be removed from a future version
    of CMake.

    The cmake-policies(7) manual explains that the OLD behaviors of all
    policies are deprecated and that a policy should be set to OLD only under
    specific short-term circumstances. Projects should be ported to the NEW
    behavior and not rely on setting a policy to OLD.


    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
    cotire 1.8.0 loaded.
    Found MySQL library: C:/MySQL/lib/debug/libmysql.lib
    Found MySQL headers: C:/MySQL/include
    Found git binary : C:/Program Files (x86)/Git/cmd/git.exe

    * TrinityCore revision : 7c5b69d18bb3+ 2018-03-21 10:05:17 +0100 (3.3.5 branch)

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

    * Build world/auth : Yes (default)
    * Build with scripts : Yes (static)
    * Build map/vmap tools : Yes (default)
    * 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)

    Looking for pthread.h
    Looking for pthread.h - not found
    Found Threads: TRUE
    Boost version: 1.65.1
    Found the following Boost libraries:
    system
    filesystem
    thread
    program_options
    iostreams
    regex
    Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
    Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
    Looking for open
    Looking for open - found
    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/include
    CXX target common cotired without unity build.
    CMake Error at dep/cotire/CMake/cotire.cmake:2637 (add_custom_command):
    add_custom_command called with OUTPUT containing a "#". This character is
    not allowed.
    Call Stack (most recent call first):
    dep/cotire/CMake/cotire.cmake:3002 (cotire_setup_unity_generation_commands)
    dep/cotire/CMake/cotire.cmake:3383 (cotire_process_target_language)
    dep/cotire/CMake/cotire.cmake:3567 (cotire_target)
    cmake/macros/FindPCHSupport.cmake:26 (cotire)
    src/common/CMakeLists.txt:98 (add_cxx_pch)


    CMake Error at dep/cotire/CMake/cotire.cmake:2637 (add_custom_command):
    add_custom_command called with OUTPUT containing a "#". This character is
    not allowed.
    Call Stack (most recent call first):
    dep/cotire/CMake/cotire.cmake:3002 (cotire_setup_unity_generation_commands)
    dep/cotire/CMake/cotire.cmake:3383 (cotire_process_target_language)
    dep/cotire/CMake/cotire.cmake:3567 (cotire_target)
    cmake/macros/FindPCHSupport.cmake:26 (cotire)
    src/common/CMakeLists.txt:98 (add_cxx_pch)


    CMake Error at dep/cotire/CMake/cotire.cmake:2637 (add_custom_command):
    add_custom_command called with OUTPUT containing a "#". This character is
    not allowed.
    Call Stack (most recent call first):
    dep/cotire/CMake/cotire.cmake:3002 (cotire_setup_unity_generation_commands)
    dep/cotire/CMake/cotire.cmake:3383 (cotire_process_target_language)
    dep/cotire/CMake/cotire.cmake:3567 (cotire_target)
    cmake/macros/FindPCHSupport.cmake:26 (cotire)
    src/server/database/CMakeLists.txt:76 (add_cxx_pch)


    CMake Error at dep/cotire/CMake/cotire.cmake:2637 (add_custom_command):
    add_custom_command called with OUTPUT containing a "#". This character is
    not allowed.
    Call Stack (most recent call first):
    dep/cotire/CMake/cotire.cmake:3002 (cotire_setup_unity_generation_commands)
    dep/cotire/CMake/cotire.cmake:3383 (cotire_process_target_language)
    dep/cotire/CMake/cotire.cmake:3567 (cotire_target)
    cmake/macros/FindPCHSupport.cmake:26 (cotire)
    src/server/database/CMakeLists.txt:76 (add_cxx_pch)

    CMake Error at dep/cotire/CMake/cotire.cmake:2637 (add_custom_command):
    add_custom_command called with OUTPUT containing a "#". This character is
    not allowed.
    Call Stack (most recent call first):
    dep/cotire/CMake/cotire.cmake:3007 (cotire_setup_unity_generation_commands)
    dep/cotire/CMake/cotire.cmake:3383 (cotire_process_target_language)
    dep/cotire/CMake/cotire.cmake:3567 (cotire_target)
    cmake/macros/FindPCHSupport.cmake:26 (cotire)
    src/server/worldserver/CMakeLists.txt:101 (add_cxx_pch)


    CMake Error at dep/cotire/CMake/cotire.cmake:2528 (add_custom_command):
    add_custom_command called with OUTPUT containing a "#". This character is
    not allowed.
    Call Stack (most recent call first):
    dep/cotire/CMake/cotire.cmake:2727 (cotire_setup_combine_command)
    dep/cotire/CMake/cotire.cmake:3015 (cotire_setup_prefix_generation_from_provided_comm and)
    dep/cotire/CMake/cotire.cmake:3383 (cotire_process_target_language)
    dep/cotire/CMake/cotire.cmake:3567 (cotire_target)
    cmake/macros/FindPCHSupport.cmake:26 (cotire)
    src/server/worldserver/CMakeLists.txt:101 (add_cxx_pch)


    Configuring incomplete, errors occurred!
    Last edited by Mario=zelda; 03-21-2018 at 05:21 PM.

  2. #2
    Boost 1.63 (1.65.1 recommended)
    MySQL ≥ 5.1.0
    OpenSSL = 1.0.x
    CMake ≥ 3.8.2
    MS Visual Studio (Community) ≥ 15 (2017) (Desktop)

    Windows Requirements

    Once you have all of the above, set up as described in the windows requirements.

    1.
    -Open up Git Extensions
    -Clone: https://github.com/TrinityCore/TrinityCore.git
    *Make sure you select the branch you need (335 for me)*
    *Any additions to the source folder by you will need to be commited in Git Extenstion (custom scripts)*

    2.
    -Open CMake (I run as administrator)
    -Configure it for - Visual Studio 15 2017 Win64
    -Once configure is finished you can choose to include or exclude tools (map extractors)
    -Generate once config finishes

    3.
    -Open build folder and locate TrinityCore.sln, open with Visual Studio 2017
    -Once open, click Build - Configuration Manager -, on the Activation Solution Configuration drop down menu you can choose Release or Release with Debug Info (RelWithDebInfo)
    -Right click on ALL_BUILD, hit Clean
    -Right Click on ALL_BUILD, hit Build

    4.
    -Once you have finished building in VS 2017, close it and locate your build folder, once insider open bin, you will have your finished compile.

    I hope this helps, as this is how I pull/cmake/build every time with no issues.
    Last edited by do0dles; 03-21-2018 at 07:03 PM. Reason: Layout

  3. #3
    Thanks do0dles for the time I'll test it tomorrow and let them know tomorrow if it works. Many Thanks

    - - - Updated - - -

    Quote Originally Posted by do0dles View Post
    Boost 1.63 (1.65.1 recommended)
    MySQL ≥ 5.1.0
    OpenSSL = 1.0.x
    CMake ≥ 3.8.2
    MS Visual Studio (Community) ≥ 15 (2017) (Desktop)

    Windows Requirements

    Once you have all of the above, set up as described in the windows requirements.

    1.
    -Open up Git Extensions
    -Clone: https://github.com/TrinityCore/TrinityCore.git
    *Make sure you select the branch you need (335 for me)*
    *Any additions to the source folder by you will need to be commited in Git Extenstion (custom scripts)*

    2.
    -Open CMake (I run as administrator)
    -Configure it for - Visual Studio 15 2017 Win64
    -Once configure is finished you can choose to include or exclude tools (map extractors)
    -Generate once config finishes

    3.
    -Open build folder and locate TrinityCore.sln, open with Visual Studio 2017
    -Once open, click Build - Configuration Manager -, on the Activation Solution Configuration drop down menu you can choose Release or Release with Debug Info (RelWithDebInfo)
    -Right click on ALL_BUILD, hit Clean
    -Right Click on ALL_BUILD, hit Build

    4.
    -Once you have finished building in VS 2017, close it and locate your build folder, once insider open bin, you will have your finished compile.

    I hope this helps, as this is how I pull/cmake/build every time with no issues.
    Thanks do0dles for the time I'll test it tomorrow and let them know tomorrow if it works. Many Thanks

  4. #4


    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.com | Coming Soon! |
    Posts
    790

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Follow the guide extensively:
    https://trinitycore.atlassian.net/wi...ew?mode=global

    Kind Regards,
    Nerc

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •