vmangos / core

Progressive Vanilla Core aimed at all versions from 1.2 to 1.12
GNU General Public License v2.0
676 stars 484 forks source link

unable to build on centos 7 #38

Closed Ann0n closed 5 years ago

Ann0n commented 5 years ago

Current behavior: Building the source on centos 7 using devtoolset-7 fails when building game/Camera.cpp

screenshot 2018-11-18 at 03 27 33

Expected behavior: The build completes without errors.

Steps to reproduce:

  1. clone the repo git clone https://github.com/vmangos/core.git
  2. make a directory for out of source building mkdir build cd build
  3. call cmake to make the makefiles cmake3 ../core
  4. call cmake to build the project cmake3 --build .

Operating system: centos 7 using devtoolset-7

ratkosrb commented 5 years ago

It looks like there is something wrong with your version of tbb. Try using another version, or compiling without tbb by selecting USE_STD_MALLOC in cmake.

Ann0n commented 5 years ago

Thanks for taking a look. I was able to get to compile 100% by selecting USE_STD_MALLOC. Do you recommend compiling using tbb, if so which version are you using?

The packaged version available from the distribution is: tbb-4.1-9.20130314.el7.x86_64 tbb-devel-4.1-9.20130314.el7.x86_64

ratkosrb commented 5 years ago

TBB is used by default, but it should work fine without it. The version i have is tbb2017_20161128oss_win.

CansecoDev commented 5 years ago

I'm using this libtbb-dev/xenial 4.4~20151115-0ubuntu3

Ann0n commented 5 years ago

I was not able to find a packaged version for centos 7 that worked.

I downloaded tbb2019_20181010oss_lin.tgz from the ttb release page and was able to compile against it without issues.

Now that I have both versions compiled and running, I noticed you are correct. I don't really see any noticeable difference at run time.