Magnuss Posted August 26, 2017 Report Share Posted August 26, 2017 On 21.8.2017 at 11:09 PM, Aokromes said: no official support for vs 15.3.1 yet. No official support by what ? CMake, Boost, TC ? VS is updating itself quite fast. Today it's already 15.3.2. Link to comment Share on other sites More sharing options...
Shauren Posted August 26, 2017 Report Share Posted August 26, 2017 That warning indeed comes from boost - there is nothing we can do about it except wait for next boost release Link to comment Share on other sites More sharing options...
Szone Posted August 31, 2017 Report Share Posted August 31, 2017 Hello, When i try to build the core i recive this error (i use ubuntu 16.4.3 and last rev of Trinitycore 335): /home/szone/TrinityCore/TrinityCore/src/common/Collision/Maps/TileAssembler.cpp: In member function ‘bool VMAP::TileAssembler::readMapSpawns()’: /home/szone/TrinityCore/TrinityCore/src/common/Collision/Maps/TileAssembler.cpp:227:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&tileX, sizeof(uint32), 1, dirf); ^ /home/szone/TrinityCore/TrinityCore/src/common/Collision/Maps/TileAssembler.cpp:228:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&tileY, sizeof(uint32), 1, dirf); Thank you! Link to comment Share on other sites More sharing options...
Carbenium Posted September 1, 2017 Report Share Posted September 1, 2017 If you read the message carfully, you'll see that it's just a warning and no build error. Kind regards, Carbenium 2 Link to comment Share on other sites More sharing options...
CDawg Posted September 1, 2017 Report Share Posted September 1, 2017 20 hours ago, Szone said: Hello, When i try to build the core i recive this error (i use ubuntu 16.4.3 and last rev of Trinitycore 335): /home/szone/TrinityCore/TrinityCore/src/common/Collision/Maps/TileAssembler.cpp: In member function ‘bool VMAP::TileAssembler::readMapSpawns()’: /home/szone/TrinityCore/TrinityCore/src/common/Collision/Maps/TileAssembler.cpp:227:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&tileX, sizeof(uint32), 1, dirf); ^ /home/szone/TrinityCore/TrinityCore/src/common/Collision/Maps/TileAssembler.cpp:228:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(&tileY, sizeof(uint32), 1, dirf); Thank you! Are you cancelling out the compile? It should continue. It will say "build failed". Otherwise, just let continue. 1 Link to comment Share on other sites More sharing options...
jempson Posted September 5, 2017 Report Share Posted September 5, 2017 On 6/28/2017 at 7:31 PM, Aokromes said: Or you can simply: apt-get install git cmake make gcc g++ libmariadbclient-dev libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mysql-server p7zip Doesn't appear to be the solutions for me. Please help. I had to switch things up a bit since I'm not using maria, but I also found that on Ubuntu 16.04 libssl1.0-dev and libncurses-dev do not exist. sudo apt-get install git cmake make gcc g++ libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses5-dev libboost-all-dev mysql-server p7zip Reading package lists... Done Building dependency tree Reading state information... Done g++ is already the newest version (4:5.3.1-1ubuntu1). gcc is already the newest version (4:5.3.1-1ubuntu1). libbz2-dev is already the newest version (1.0.6-8). libncurses5-dev is already the newest version (6.0+20160213-1ubuntu1). libreadline-dev is already the newest version (6.3-8ubuntu2). make is already the newest version (4.1-6). libboost-all-dev is already the newest version (1.58.0.1ubuntu1). p7zip is already the newest version (9.20.1~dfsg.1-4.2). cmake is already the newest version (3.5.1-1ubuntu3). git is already the newest version (1:2.7.4-0ubuntu1.2). libmysqlclient-dev is already the newest version (5.7.19-0ubuntu0.16.04.1). mysql-server is already the newest version (5.7.19-0ubuntu0.16.04.1). libssl-dev is already the newest version (1.1.0f-2~ubuntu16.04.1+deb.sury.org+1). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-image-4.4.0-75-generic linux-image-extra-4.4.0-75-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Link to comment Share on other sites More sharing options...
CDawg Posted September 5, 2017 Report Share Posted September 5, 2017 5 hours ago, jempson said: Doesn't appear to be the solutions for me. Please help. I had to switch things up a bit since I'm not using maria, but I also found that on Ubuntu 16.04 libssl1.0-dev and libncurses-dev do not exist. sudo apt-get install git cmake make gcc g++ libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses5-dev libboost-all-dev mysql-server p7zip Reading package lists... Done Building dependency tree Reading state information... Done g++ is already the newest version (4:5.3.1-1ubuntu1). gcc is already the newest version (4:5.3.1-1ubuntu1). libbz2-dev is already the newest version (1.0.6-8). libncurses5-dev is already the newest version (6.0+20160213-1ubuntu1). libreadline-dev is already the newest version (6.3-8ubuntu2). make is already the newest version (4.1-6). libboost-all-dev is already the newest version (1.58.0.1ubuntu1). p7zip is already the newest version (9.20.1~dfsg.1-4.2). cmake is already the newest version (3.5.1-1ubuntu3). git is already the newest version (1:2.7.4-0ubuntu1.2). libmysqlclient-dev is already the newest version (5.7.19-0ubuntu0.16.04.1). mysql-server is already the newest version (5.7.19-0ubuntu0.16.04.1). libssl-dev is already the newest version (1.1.0f-2~ubuntu16.04.1+deb.sury.org+1). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-image-4.4.0-75-generic linux-image-extra-4.4.0-75-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Ubuntu expert here What error are you receiving? What version are you looking for? MariaDB is just an option and your version of libssl (openssl) is just fine. However, you will need to use a newer version of boost for Ubuntu 16.04+ Are you trying to compile 3.3.5 or master? Link to comment Share on other sites More sharing options...
oljik Posted September 15, 2017 Report Share Posted September 15, 2017 Hey There, I am trying to build master branch. I am running Ubuntu Headless Server 16.04. It is old and solved problem with build directory but I can't get past it. I have made directory build inside and outside TrinityCore with cmake ../ -DCMAKE_INSTALL_PREFIX=/home/trinity/server. What am I doing wrong? By the way, if you want to be sure what error message is: configure_file attempted to configure a file: bla bla bla cmake_uninstall.cmake into a source directory. Link to comment Share on other sites More sharing options...
gldssgames Posted September 21, 2017 Report Share Posted September 21, 2017 (edited) First of all, my language is not English, it's Portuguese. I have partially looked at the topic about core compilation errors, I have not found anything that can help me. I do not use MySQL the intalalled version, I use the ".zip" version and start it from the command line. What I pointed out the missing mysql paths to folders of my mysql ".zip"MYSQL_EXECUTABLE = C:/Users/Henrrique/Desktop/SERVER/mysql/bin/mysqlX.exeMYSQL_INCLUDE_DIR = C:/Users/Henrrique/Desktop/SERVER/mysql/includeMYSQL_LIBRARY = C:/Users/Henrrique/Desktop/SERVER/mysql/libNOTE: I also had problems with the paths to boost, pointed the missing paths and did not get any more errors, however I had to point out LINK paths in the vmap4assembler and mmaps_generator project. The error that points to the output is: Error LNK1181 cannot open input file 'C:\Users\Henrrique\Desktop\SERVER\mysql\lib.obj' authserver C:\Users\Henrrique\Desktop\PROJECTWOW\BUILD\src\server\authserver\LINK 1 Error LNK1181 cannot open input file 'C:\Users\Henrrique\Desktop\SERVER\mysql\lib.obj' worldserver C:\Users\Henrrique\Desktop\PROJECTWOW\BUILD\src\server\worldserver\LINK 1 The strange thing is this obj file: "lib.obj" it is part of mysql, I did not find this file in mysql nor in the debug_test version. Edited September 21, 2017 by gldssgames Add information and remove Link to comment Share on other sites More sharing options...
gldssgames Posted September 29, 2017 Report Share Posted September 29, 2017 I installed MySQL on system and now working the build. Link to comment Share on other sites More sharing options...
Aokromes Posted September 30, 2017 Report Share Posted September 30, 2017 --- 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 More sharing options...
Levcsu Posted October 15, 2017 Report Share Posted October 15, 2017 Dear Users! I followed all of the steps, but heres an error named: ~/TrinityCore/build# cmake ../ CMake Error at cmake/compiler/gcc/settings.cmake:7 (message): GCC: TrinityCore requires version 4.9.0 to build but found 4.8.4 Call Stack (most recent call first): cmake/platform/unix/settings.cmake:29 (include) cmake/macros/CheckPlatform.cmake:13 (include) CMakeLists.txt:58 (include) -- Configuring incomplete, errors occurred! See also "/root/TrinityCore/build/CMakeFiles/CMakeOutput.log". See also "/root/TrinityCore/build/CMakeFiles/CMakeError.log". Plus, I tried to do following these steps: http://www.ac-web.org/forums/showthread.php?175234-How-to-compile-Trinity-Core-on-Ubuntu&p=2286499#post2286499 But theres an error aswell, named: root@user:~/TrinityCore/build# make make: *** No targets specified and no makefile found. Stop. root@user:~/TrinityCore/build# make install make: *** No rule to make target `install'. Stop. Anyone have any ideas? OR anyone have a compiled linux files from master (7.1.5). Id like to do this to work, please help me out! Link to comment Share on other sites More sharing options...
Aokromes Posted October 16, 2017 Report Share Posted October 16, 2017 we don't support 7.1.5 nor gcc 4.8.4. GCC: TrinityCore requires version 4.9.0 to build but found 4.8.4 Link to comment Share on other sites More sharing options...
ggadea Posted October 25, 2017 Report Share Posted October 25, 2017 After a fierce and lengthy battle in which CMake for Windows won by refusing to find the BOOST folders no matter what I did, I decided to switch to Mac where I was successful in getting past compiling with Xcode, so I have everything compiled. Unfortunately, I don't have the original 7.2.5 client and I am unable to extract maps, vmaps, etc. Not a huge problem since I already have them anyway downloaded from DevApex. And everything works. Is it possible to run cmake in Mac but have the results made for Visual Studio? the command line has an "xcode" argument in it and given that there was no SLN file made, I gather the cmake command will have to have something like "visualstudio" or something similar. In the Trinity server for Windows tutorial, there is no reference to running cmake from the command line, I thought that if I knew what the command line looked like, I would be able to interpolate/translate for Mac, then run it on a Mac and then compile from Visual Studio. Thanks Link to comment Share on other sites More sharing options...
endruil Posted October 30, 2017 Report Share Posted October 30, 2017 Hey, its been a while that i worked with a trinitycore but after playing some time on retail i wanted to start working with a TC 3.3.5 I installed visual 2015 and all programms i need for compilie i installed git like the tutorial said, and also checked if the path is in but i am getinng this cmake error: CMake Error at cmake/macros/EnsureVersion.cmake:95 (NORMALIZE_VERSION): NORMALIZE_VERSION Macro invoked with incorrect arguments for macro named: NORMALIZE_VERSION Call Stack (most recent call first): cmake/macros/FindGit.cmake:37 (ensure_version) CMakeLists.txt:67 (find_package) Git version too old : CMake Error at cmake/macros/FindGit.cmake:42 (message): Git was found but is OUTDATED - did you forget to install a recent version, or setting the path to it? Observe that for revision hash/date to work you need at least version 1.7 Call Stack (most recent call first): CMakeLists.txt:67 (find_package) Link to comment Share on other sites More sharing options...
JzJad Posted November 1, 2017 Report Share Posted November 1, 2017 Besides the basic/default BOOST_ROOT variable did you also add a BOOST_LIBRARYDIR variable on windows? Curious. Link to comment Share on other sites More sharing options...
Magnuss Posted November 2, 2017 Report Share Posted November 2, 2017 The error found was: Git was found but is OUTDATED So, what is your GIT version ? You can open a Git Bash console in Git Extensions and type there git version. Link to comment Share on other sites More sharing options...
endruil Posted November 2, 2017 Report Share Posted November 2, 2017 (edited) git version 2.13.2.windows.1 " Besides the basic/default BOOST_ROOT variable did you also add a BOOST_LIBRARYDIR variable on windows? Curious. " No Edited November 2, 2017 by endruil Link to comment Share on other sites More sharing options...
Magnuss Posted November 2, 2017 Report Share Posted November 2, 2017 CMAKE fails in FindGit.cmake: # make sure we're using minimum the required version of git, so the "dirty-testing" will work properly ensure_version( "${_REQUIRED_GIT_VERSION}" "${_GIT_VERSION}" _GIT_VERSION_OK) # throw an error if we don't have a recent enough version of git... if(NOT _GIT_VERSION_OK) message(STATUS "Git version too old : ${_GIT_VERSION}") message(FATAL_ERROR " Git was found but is OUTDATED - did you forget to install a recent version, or setting the path to it? Observe that for revision hash/date to work you need at least version ${_REQUIRED_GIT_VERSION}") endif() endif() CMAKE can't find a value for ${_GIT_VERSION}. Seems to by empty in your case. Don't know why. May it helps to reinstall Git Extensions and/or CMake following exactly the guide in TC Wiki. BTW: Can you show the full message log of CMake before the error message ? Link to comment Share on other sites More sharing options...
endruil Posted November 2, 2017 Report Share Posted November 2, 2017 (edited) Well i did it, still same error. I am working on a new computer so i didnt had any programms installed before but i deinstalled all and installed it again. Edited November 2, 2017 by endruil Link to comment Share on other sites More sharing options...
Magnuss Posted November 2, 2017 Report Share Posted November 2, 2017 Before the error there should be a line like: Found git binary : C:/Program Files (x86)/Git/cmd/git.exe You can test it in a windows console with : "C:/Program Files (x86)/Git/cmd/git.exe" --version That's more or less what the CMake script is checking to determine the version. Link to comment Share on other sites More sharing options...
endruil Posted November 2, 2017 Report Share Posted November 2, 2017 Found git binary : E:/Daniel/Programme/Git/cmd/git.exe CMake Error at cmake/macros/EnsureVersion.cmake:95 (NORMALIZE_VERSION): NORMALIZE_VERSION Macro invoked with incorrect arguments for macro named: NORMALIZE_VERSION Call Stack (most recent call first): cmake/macros/FindGit.cmake:37 (ensure_version) CMakeLists.txt:67 (find_package) Git version too old : CMake Error at cmake/macros/FindGit.cmake:42 (message): Git was found but is OUTDATED - did you forget to install a recent version, or setting the path to it? Observe that for revision hash/date to work you need at least version 1.7 Call Stack (most recent call first): CMakeLists.txt:67 (find_package) Configuring incomplete, errors occurred! See also "E:/Daniel/Developing/TrinityCore-Cmake/CMakeFiles/CMakeOutput.log". Link to comment Share on other sites More sharing options...
Magnuss Posted November 2, 2017 Report Share Posted November 2, 2017 Looks for me like a bug. In your case the variable ${_GIT_VERSION} in FindGit.cmake is empty. That why there is nothing written behind "Git version too old : " May you can wait till somebody else knows something or open a bug in the issue tracker with a link to this forum. Link to comment Share on other sites More sharing options...
labaouici Posted November 3, 2017 Report Share Posted November 3, 2017 Hello! I got a problem about compiling it's that Visual Studio stay on ServiceWin32.cpp is there a fix? I'm on Windows 10 Link to comment Share on other sites More sharing options...
basketballkid Posted November 5, 2017 Report Share Posted November 5, 2017 (edited) I compiled the core succefully and when i configured in cmake i get these errors Edited November 5, 2017 by basketballkid Link to comment Share on other sites More sharing options...
Recommended Posts