Jump to content
TrinityCore

Recommended Posts

Have an error on configure with CMake. Not sure if it's significant or not. I have tried configuring 32 and 64 bit and both have this warning.

Getting this error on CMake configure with latest git pull:

CMake Warning (dev) at cmake/macros/FindOpenSSL.cmake:220 (math):
Unexpected character in expression at position 2: c

Share this post


Link to post
Share on other sites

Hello there, i am new here and i hope some one can help me to understand this error. I am a little noob at compiling but in debian i can do alot.

So i have a Debian 10 VM that run Trinitycore. I want Compile the new Version of 3.3.5a on it but its stuck. I dont know its a Error at my Server or not?

Can some on Explain whats going wrong?

-- 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/cc
-- Clang: All warnings enabled
-- cotire 1.7.10 loaded.
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmariadb.so
-- Found MySQL headers: /usr/include/mariadb
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/bin/git

* TrinityCore revision   : 7450be4cfd3f 2020-02-10 22:33:38 +0100 (3.3.5 branch)
* TrinityCore buildtype  : RelWithDebInfo

* Install core to        : /home/t2k/server
* Install libraries to   : /home/t2k/server/lib
* Install configs to     : /home/t2k/server/etc

* 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 all warnings      : Yes
* Use coreside debug     : No  (default)
* Show source tree       : Yes (hierarchical)
* Use GIT revision hash  : Yes (default)

-- Boost version: 1.67.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
    |   +- Commands
    |   +- Custom
    |   +- EasternKingdoms
    |   +- Events
    |   +- Kalimdor
    |   +- Northrend
    |   +- OutdoorPvP
    |   +- Outland
    |   +- Pet
    |   +- Spells
    |   +- World
    |

-- Configuring done
-- Generating done
-- Build files have been written to: /home/t2k/TrinityCore/build
[  0%] Built target Detour
[  0%] Built target fmt
[  1%] Built target Recast
[  5%] Built target g3dlib
[  5%] Built target sfmt
[  6%] Built target argon2
[  6%] Built target gsoap
[  7%] Built target mpq
[ 10%] Built target jemalloc
[ 10%] Built target revision_data.h
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/Common.cpp.o
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/Collision/BoundingIntervalHierarchy.cpp.o
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/GitRevision.cpp.o
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/Banner.cpp.o
fatal error: C++17 was disabled in PCH file but is currently enabled
fatal error: 1 error generated.
C++17 was disabled in PCH file but is currently enabled
1 error generated.
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:120: src/common/CMakeFiles/common.dir/Collision/BoundingIntervalHierarchy.cpp.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:106: src/common/CMakeFiles/common.dir/GitRevision.cpp.o] Fehler 1
fatal error: C++17 was disabled infatal error:  PCHC++17  filewas  butdisabled  isin  currently enabled
PCH file but is currently enabled
1 error generated.
1 error generated.
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:78: src/common/CMakeFiles/common.dir/Banner.cpp.o] Fehler 1
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:92: src/common/CMakeFiles/common.dir/Common.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:1032: src/common/CMakeFiles/common.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2

 

Edited by t2k

Share this post


Link to post
Share on other sites
try to set cmake prefixes manually, as me:

cmake ../ \
 -DCMAKE_INSTALL_PREFIX="$SRVPATH/$EMU_VER" \
 -DCONF_DIR="$SRVPATH/$EMU_VER/etc" \
 -DLIBSDIR="$SRVPATH/$EMU_VER/libs" \
 -DMYSQL_EXECUTABLE="/usr/bin/mysql" \
 -DMYSQL_INCLUDE_DIR="/usr/include/mariadb" \
 -DMYSQL_LIBRARY="/usr/lib/x86_64-linux-gnu/libmariadbclient.so" \
 -DSCRIPTS=static \
 -DTOOLS=1 \
 -DWITH_WARNINGS=0 \
&> $LOG_FILE \
&& make -j $CPU
&>> $LOG_FILE

It also seems that you have lost ZLIB1g-DEV

 

 

Share this post


Link to post
Share on other sites

@Lucian_by tahnks for your hint. I found a way to build.

Simple delete all old Git and Build Files you store on your HDD. Than Build new and tadaaaa error is gone

Edited by t2k

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Deer_Hunter
      Hello all,
      I just updated from the latest Git 
      Trinity Core REV. ac6baa547376 + 2020-02-21  3.3.5 Branch.
      I'm getting this error after crash.
      Problem signature:
        Problem Event Name:    APPCRASH
        Application Name:    worldserver.exe
        Application Version:    0.0.0.0
        Application Timestamp:    5e50a462
        Fault Module Name:    StackHash_f12f
        Fault Module Version:    6.3.9600.19629
        Fault Module Timestamp:    5e2fdc0d
        Exception Code:    c0000374
        Exception Offset:    PCH_9E_FROM_ntdll+0x0000000000090D0A
        OS Version:    6.3.9600.2.0.0.272.7
        Locale ID:    1033
        Additional Information 1:    f12f
        Additional Information 2:    f12f0934d3e965f73c68e60f20f2cd40
        Additional Information 3:    7595
        Additional Information 4:    7595e4d8d703db9dcd3d2f6ea540e357
      the exception code says its a Heap error,  I'm not sure how to troubleshoot this.
      Thanks
    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
    • By Wark
      I'd just like to get a little insight to why so much of the current Trinitycore code doesn't match up to a few years ago.
      Now I know I'm not a pro at coding on Trinitycore and I understand that the core is open sourced but these just seem so significant and doesn't seem right to remove this stuff.
       
      Let me give an example. Lets say I'm watching this tutorial to get a little information about classes and methods that I can use when making a script. (I've also been using the Trinitycore Code Documentation as reference as well but it also seems to show the same issues)
      Although the tutorial is a little out of date, I don't see why OnGossipSelect doesn't exist anywhere in CreatureScript and that when I try to link the script to the core code it spits out this error.
      object of abstract class type "GossipTeleporter" is not allowed:
      pure virtual function "CreatureScript::GetAI" has no overrider
      The DEFINES of "ADD_GOSSIP_ITEM" and many more don't exist either.
       
      Am I missing something? All I want to know is if the core is mean't to be this way and if not should I download an older version of the core before I put to much working into my current core.
      (I downloaded my core right from the Trinitycore website tutorial)
       
      I'm currently trying to write a simple gossipteleporter that will let you talk to an npc and teleport to the given location. It's very hard to do this when so many things just don't exist within my core.
       
      EXTRA: I pasted this into a new custom script just to see if I would get errors and I got a lot of different errors: http://pastebin.com/raw/G62e0t49
      This was obtained from here: http://www.ac-web.org/forums/showthread.php?129885-Request-Teleporter-NPC-for-TrinityCore
      By no means am I looking to copy the code from the two links above, I was using them as a test to see if my core accepted them.
       
      Thanks,
      Wark
×
×
  • Create New...