Compile or cmake problems

I’m running into the same issue as above. Removed Boost 1.58 and installed 1.65.1 to see if that’d have any effect, but no dice. Compiling using Clang 5.

The thing is travis can compile with 14.04 and boost 1.55…

Im gonna try with ububtu 14.04 and boost 1.55 then… Be back with an edit probably tomorrow.

go debian 9 instead messing things.

Saw that you modified “Not recommanded: Ubnutu older than 16.04”

So 17.10 should work? I find it easier just to update my OS than to replace it. Also just got familiarized with ubuntu… Looking forward for your answer.

I just rebuilt my compile server on Debian 9 and it works well. Using the standard installed packages in the wiki, you won’t need to modify your build script at all.

Aokromes: Very much appreciate the update to the wiki page, that helps to clarify.

It’s faster than being messing with packages and dependences that may break server XD

I have a question, is possible compilation on freebsd?

*BSD compilation used to be very hard idk current status.

Yes, it’s perfectly work on ubuntu 17.10.

Thx, compiled it. But what about the client. Where can I download 3.3.5a (12340). I searched quite a lot and found some working download links for 3.3.5a but I’m not sure if they will work properly since I haven’t seen a patch number (like 12340). Could you provide me a link, I’ll be very grateful !

Edit: Guess I found it.

https://drive.google.com/uc?export=download&confirm=RnM7&id=0B4dwW8TOxn5dckRENjlTa3Uxc2c

https://i.imgur.com/z4PajlZ.jpg

That link is a modified Wrath Client with broken models. However, I Downloaded and tried it. It occasionally crashes when I go into TBC Outland.

Hi I have some trouble compiling trinitycore 64 bits (i had no problem with an old version using msvc 14 (2015) but i want to have the last version of trinitycore)

Here is the error message : https://pastebin.com/Nm0HJsJ1

OS : windows 7 64 bits

The C compiler identification is MSVC 19.12.25831.0

The CXX compiler identification is MSVC 19.12.25831.0

MySQL version : 5.5

Boost version : 1.65.1

OpenSSL version : 1.0.2e (3 dec 2015)

Cmake version : 3.8.2

All my programs are in 64 bits

I followed the instructions step by step but i couldn’t figure it out myself how to solve the problem… Thanks

I suggest you to delete build directory and re-run cmake.

I have already done it like 5 times :smiley: , it’s not possible that the problem comes from my git right? I got an old version (I’m using TortoiseGit 2.1.0.0, git version 2.7.2.windows.1) but I guess it doesn’t change anything.

Try cloning a fresh repository, i see references to no-longer existing files.

This has probably been mentioned, but I was forced to upgrade to Debian 9. I do like the error messages giving more details and suggestions when compiling, but I am having serious linking issues with boost, zlib, etc. Here is my error:

[ 38%] Linking CXX executable authserver
CMakeFiles/authserver.dir/Main.cpp.o: In function GetConsoleArguments(int, char**, boost::filesystem::path&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': /opt/TrinityCore/src/server/authserver/Main.cpp:305: undefined reference to boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int)’
CMakeFiles/authserver.dir/Main.cpp.o: In function basic_command_line_parser': /usr/local/include/boost/program_options/detail/parsers.hpp:40: undefined reference to boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)’
CMakeFiles/authserver.dir/Main.cpp.o: In function boost::program_options::typed_value<boost::filesystem::path, char>::name[abi:cxx11]() const': /usr/local/include/boost/program_options/detail/value_semantic.hpp:18: undefined reference to boost::program_options::arg[abi:cxx11]’
CMakeFiles/authserver.dir/Main.cpp.o: In function void boost::program_options::validate<boost::filesystem::path, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, boost::filesystem::path*, long)': /usr/local/include/boost/program_options/detail/value_semantic.hpp:92: undefined reference to boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
CMakeFiles/authserver.dir/Main.cpp.o: In function validation_error': /usr/local/include/boost/program_options/errors.hpp:373: undefined reference to boost::program_options::validation_error::get_templateabi:cxx11
/usr/local/include/boost/program_options/errors.hpp:373: undefined reference to boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' /usr/local/include/boost/program_options/errors.hpp:373: undefined reference to boost::program_options::validation_error::get_templateabi:cxx11
/usr/local/include/boost/program_options/errors.hpp:373: undefined reference to boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/authserver.dir/Main.cpp.o: In function std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > boost::program_options::to_internal<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)‘:
/usr/local/include/boost/program_options/detail/convert.hpp:79: undefined reference to boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueINS_10filesystem4pathEcEE[_ZTVN5boost15program_options11typed_valueINS_10filesystem4pathEcEE]+0x40): undefined reference to boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, bool) const’
CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE]+0x38): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const’
CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE]+0x38): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const’
CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30): more undefined references to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const’ follow
…/…/common/libcommon.a(StartProcess.cpp.o): In function operator()': /opt/TrinityCore/src/common/Utilities/StartProcess.cpp:83: undefined reference to boost::iostreams::file_descriptor_source::file_descriptor_source(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::_Ios_Openmode)’
/opt/TrinityCore/src/common/Utilities/StartProcess.cpp:83: undefined reference to `boost::iostreams::file_descriptor_source::file_descriptor_source(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::_Ios_Openmode)’
clang: error: linker command failed with exit code 1 (use -v to see invocation)
src/server/authserver/CMakeFiles/authserver.dir/build.make:207: recipe for target ‘src/server/authserver/authserver’ failed
make[2]: *** [src/server/authserver/authserver] Error 1
CMakeFiles/Makefile2:1291: recipe for target ‘src/server/authserver/CMakeFiles/authserver.dir/all’ failed
make[1]: *** [src/server/authserver/CMakeFiles/authserver.dir/all] Error 2
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2

Seen so many similar errors mentioned, and no fixes. If I find a fix, I will post it.

I deleted my folders build and trinitycore and restarted again from the beginning, still no problem with cmake and i got the exact same problem while compiling, am I not cloning it right?

Here is my Cmake output if it can helps : https://pastebin.com/DKvSE5WU

[ATTACH]2283._xfImport[/ATTACH]

I said I would post my fix. It was not fun, nor quick…

I had to remove boost, and compile from source. here are the steps I took: (works for Debian and Ubuntu. Don’t forget sudo in Ubuntu)

[ol][li]apt-get remove libboost-all-dev --purge (I like to purge all files.)[/li]
[li]cd /opt (this is where I store my files. place them wherever you want)[/li]
[li]download boost source latest from sourceforge: SourceForge Boost files[/li]
[li]7za boost-1_66_0.7z (or whatever version is latest)[/li]
[li]cd boost-1_66_0[/li]
[li]./bootstrap.sh[/li]
[li]./b2[/li]
[li]./b2 install[/li]
[/ol]

This fixed my problem, and I could compile. I hope this helps. b2 takes forever to run. by default, is should install boost to /usr/local/include/boost

  • LordPsyan

works for me with default debian 9 boost …