ike3 / mangosbot

This is a modification of MaNGOS (Zero, One, R2, Trinity) server which brings a number of bots online and available for any player. Also allows you to use your account/guild characters as bots.
http://ike3.github.io/mangosbot-docs/
GNU General Public License v2.0
183 stars 78 forks source link

CppUnit compile on linux #5

Closed ike3 closed 7 years ago

ike3 commented 10 years ago

Compile errors on linux if TESTS=1 (CppUnit core, not tests themselves). Windows build is fine.

shooter556 commented 10 years ago

I noticed that most errors occur "high/low captials" issues.

krlloyd commented 9 years ago

Can you post the compile errors?

Esserg commented 9 years ago

Cmake error on Debian 7 http://pastebin.com/sbfWsLby

ghost commented 9 years ago

Ah, yes. If your Linux cmake version is above 3.1.0, you will get cmake errors. Just as if your cmake version is below 2.8.9 (but with slightly different errors). It works on Windows, though, even up to 3.2.1 (with patched FindOpenSSL.cmake macro).

The issue in both cases is in the cmake macros.

Esserg commented 9 years ago

Package: cmake Version: 2.8.12.2-0ubuntu3

When i use cmake without precompiled headers, cmake work correctly: -DUSE_SCRIPTPCH =0 -DUSE_COREPCH =0 But in this way appear compile error. http://pastebin.com/dphNe9en

ghost commented 9 years ago

Are you able to compile pure, unchanged, clean TrinityCore 3.3.5 source on Ubuntu and Debian 7? If you can make default TrinityCore source, branch 3.3.5 work, you need to compare the cmake macros and see what is wrong with the macros in ike3's source. (BTW, the Playerbot plugin code needs a real spring cleaning, it causes 80 lines of warnings, even if it works to compile on Windows.)

Edit: compare with my PR here in the ike3 repo: https://github.com/ike3/mangosbot/pull/41 ( Update cmake/macros/FindOpenSSL.cmake )

ghost commented 7 years ago

😃 👍