Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

  • 2 weeks later...
  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

When installing on a Fresh OS Ubuntu 16.04, every prereq installed, that is in guide. I am running into a small problem.

 

The server compiles fine, but when getting to the tools I get this error:


make: *** [all] Error 2
[  3%] Built target g3dlib
[  3%] Built target Detour
[  4%] Built target Recast
[  5%] Built target fmt
[  7%] Built target jemalloc
[  7%] Built target gsoap
[  9%] Built target protobuf
[ 11%] Built target casc
[ 11%] Built target revision_data.h
[ 11%] Built target commonPCH.cpp_dephelp
[ 11%] Built target generate_commonPCH.cpp
[ 15%] Built target common
[ 15%] Built target databasePCH.cpp_dephelp
[ 15%] Built target generate_databasePCH.cpp
[ 17%] Built target database
[ 18%] Built target protoPCH.cpp_dephelp
[ 19%] Built target generate_protoPCH.cpp
[ 21%] Built target proto
[ 21%] Built target sharedPCH.cpp_dephelp
[ 21%] Built target generate_sharedPCH.cpp
[ 22%] Built target shared
[ 22%] Built target bnetPCH.cpp_dephelp
[ 22%] Built target generate_bnetPCH.cpp
[ 23%] Built target bnetserver
[ 23%] Built target gamePCH.cpp_dephelp
[ 23%] Built target generate_gamePCH.cpp
[ 46%] Built target game
[ 46%] Built target ScriptPCH.cpp_dephelp
[ 46%] Built target generate_ScriptPCH.cpp
[ 97%] Built target scripts
[ 97%] Built target worldPCH.cpp_dephelp
[ 97%] Built target generate_worldPCH.cpp
[ 98%] Built target worldserver
[ 98%] Built target connection_patcher
[ 98%] Built target extractor_common
[ 98%] Linking CXX executable mapextractor
../../../dep/CascLib/libcasc.a(CascDecompress.cpp.o): In function `CascDecompress(unsigned char*, unsigned int*, unsigned char*, unsigned int)':
CascDecompress.cpp:(.text+0x5f): undefined reference to `inflateInit_'
CascDecompress.cpp:(.text+0x96): undefined reference to `inflate'
CascDecompress.cpp:(.text+0xa0): undefined reference to `inflateEnd'
collect2: error: ld returned 1 exit status
src/tools/map_extractor/CMakeFiles/mapextractor.dir/build.make:161: recipe for target 'src/tools/map_extractor/mapextractor' failed
make[2]: *** [src/tools/map_extractor/mapextractor] Error 1
CMakeFiles/Makefile2:2241: recipe for target 'src/tools/map_extractor/CMakeFiles/mapextractor.dir/all' failed
make[1]: *** [src/tools/map_extractor/CMakeFiles/mapextractor.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

 

I thought at first it was me, so i reinstalled Ubuntu, and installed everything the guide said to do, but getting to this phase exactly this phase, it throws a error, I tried removing the tools, and compile right, but need the tools to extract DBC and Map files.

 

Link to comment
Share on other sites

Usually I compile this on Windows and have no issues, but as my new box is Ubuntu (A: I have no choice windows isnt allowed on it, B: Linux is supposed to be more stable), didnt try a earlier rev, as I am currently wanting to support the Master Branch.

 

Link to comment
Share on other sites

2 hours ago, Nikita said:

Usually I compile this on Windows and have no issues, but as my new box is Ubuntu (A: I have no choice windows isnt allowed on it, B: Linux is supposed to be more stable), didnt try a earlier rev, as I am currently wanting to support the Master Branch.

 

Try updating your source, a bug on extractors was fixed early today.

Link to comment
Share on other sites

I also get this exact compile issue. I tried originally on Ubuntu 14.04, then 16.04, and now 16.10 all 64bit.

All compile fine on the 3.3.5a branch, but all end up with this issue on main.

I am gathering through what little I could find on the issue is zlib is not linking correctly or something of that nature?

Cmake is not my strongest suit, so it isn't something I went into any indepth research on.

Link to comment
Share on other sites

On 2/4/2017 at 2:02 PM, Speedz said:

I also get this exact compile issue. I tried originally on Ubuntu 14.04, then 16.04, and now 16.10 all 64bit.

All compile fine on the 3.3.5a branch, but all end up with this issue on main.

I am gathering through what little I could find on the issue is zlib is not linking correctly or something of that nature?

Cmake is not my strongest suit, so it isn't something I went into any indepth research on.
 


Same issue, Ub1604, I have no other apt sources, 3.3.5 recompiles after pull just fine and works great, master TOOLS do not not compile. If I omit tools compiles fine. I did two quick dynamic / static clones for these messages. I have included some package information.

Cheers

$ cmake ../ -DCMAKE_INSTALL_PREFIX="$HOME/tc" -DWITH_WARNINGS=1 -DTOOLS=1 -DSCRIPTS="dynamic" -DWITH_WARNINGS=0 && make

[ 98%] Linking CXX executable mapextractor
../../../dep/CascLib/libcasc.a(CascDecompress.cpp.o): In function `CascDecompress(unsigned char*, unsigned int*, unsigned char*, unsigned int)':
CascDecompress.cpp:(.text+0x5f): undefined reference to `inflateInit_'
CascDecompress.cpp:(.text+0x96): undefined reference to `inflate'
CascDecompress.cpp:(.text+0xa0): undefined reference to `inflateEnd'
collect2: error: ld returned 1 exit status
src/tools/map_extractor/CMakeFiles/mapextractor.dir/build.make:161: recipe for target 'src/tools/map_extractor/mapextractor' failed
make[2]: *** [src/tools/map_extractor/mapextractor] Error 1
CMakeFiles/Makefile2:2241: recipe for target 'src/tools/map_extractor/CMakeFiles/mapextractor.dir/all' failed
make[1]: *** [src/tools/map_extractor/CMakeFiles/mapextractor.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

$ cmake ../ -DCMAKE_INSTALL_PREFIX="$HOME/tc" -DWITH_WARNINGS=1 -DTOOLS=1 -DSCRIPTS="dynamic" -DWITH_WARNINGS=0 && make

[ 19%] Linking CXX executable mapextractor
/usr/bin/ld: ../../../dep/CascLib/libcasc.a(CascDecompress.cpp.o): undefined reference to symbol 'inflate'
/usr/lib/x86_64-linux-gnu/libz.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/tools/map_extractor/CMakeFiles/mapextractor.dir/build.make:161: recipe for target 'src/tools/map_extractor/mapextractor' failed
make[2]: *** [src/tools/map_extractor/mapextractor] Error 1
CMakeFiles/Makefile2:2891: recipe for target 'src/tools/map_extractor/CMakeFiles/mapextractor.dir/all' failed
make[1]: *** [src/tools/map_extractor/CMakeFiles/mapextractor.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

$ sudo apt-get install git cmake make gcc g++ libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mysql-server p7zip libz-dev           
[sudo] password for wow: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
Note, selecting 'zlib1g-dev' instead of 'libz-dev'
g++ is already the newest version (4:5.3.1-1ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
git is already the newest version (1:2.7.4-0ubuntu1).
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).
zlib1g-dev is already the newest version (1:1.2.8.dfsg-2ubuntu4).
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).
libmysqlclient-dev is already the newest version (5.7.17-0ubuntu0.16.04.1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.6).
mysql-server is already the newest version (5.7.17-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ apt show zlib1g-dev
Package: zlib1g-dev
Version: 1:1.2.8.dfsg-2ubuntu4
Priority: optional
Section: libdevel
Source: zlib
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Mark Brown <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 426 kB
Provides: libz-dev
Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4), libc6-dev | libc-dev
Conflicts: zlib1-dev
Homepage: http://zlib.net/
Task: ubuntu-sdk-libs-dev
Supported: 5y
Download-Size: 168 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Description: compression library - development
 zlib is a library implementing the deflate compression method found
 in gzip and PKZIP.  This package includes the development support
 files.

 





 

Link to comment
Share on other sites

CMake Error at cmake/macros/FindOpenSSL.cmake:226 (message):
TrinityCore needs OpenSSL version 1.0 but found too new version ... Any
version different to 1.0.x breaks TrinityCore compatibility (and we cannot
fix this). Please install OpenSSL 1.0.x
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)

 

 

 

I'm using Windows. Current OpenSSL version installed is 1.1.0d. I'm not able to find a compatible version. Any ideas?

 

Edited by tacocore
Link to comment
Share on other sites

No. I tried looking for a older version in the original website but here's what I found:

Stop asking me for versions of OpenSSL that have security vulnerabilities in them! That would be any version of OpenSSL prior to the absolute latest build. This is a security product and yet people regularly ask me for a version with security vulnerabilities in it! Oh the irony. Please punch yourself in the face to knock some common sense into yourself. Thank you.

Link to comment
Share on other sites

7 minutes ago, tacocore said:

No. I tried looking for a older version in the original website but here's what I found:

Stop asking me for versions of OpenSSL that have security vulnerabilities in them! That would be any version of OpenSSL prior to the absolute latest build. This is a security product and yet people regularly ask me for a version with security vulnerabilities in it! Oh the irony. Please punch yourself in the face to knock some common sense into yourself. Thank you.

you missed this: Any version different to 1.0.x breaks TrinityCore compatibility (and we cannot fix this). Please install OpenSSL 1.0.x , if you want to use openssl 1.1 go write your own client.

  • Upvote 1
Link to comment
Share on other sites

Hello.

I am not new to Trinity Core, but yes to compiling, I've normally used already done repacks and the like, and the closest I've gotten to compiling a repack myself is a friend of mine doing it for me.

It's not that errors pop out or anything. It's not any of that.

It's just the fact that I can't even install the first program required in the guide. Nothing. Not a clue. Can't even find tutorials to install it, all guides do things I don't understand or I don't have.

If someone would be oh so kind to help me along the whole way, I wouldn't even know how to repay it. I've been trying for a couple of months now and I'm just fed up.

Thanks in advance to everyone.

Link to comment
Share on other sites

Boost is a set of libraries required to compile the Trinitycore project, its a dependency, nothing needs to be run once you have it - the libraries are portable by nature, they come precompiled and just "exist", nothing to run.

Provided you have the correct files (you do) in the location specified in the guide (can't tell from your screenshot), and have set the BOOST_ROOT environment variable as shown in the guide, you can safely move on without issue - there are instructions in the Trinitycore source that will automatically tell CMake where to look for, and what to do with, the boost files once you get to that step in the installation - you don't need to worry about them so long as they exist on your system and you have followed the guide.

At this point (the requirements step), all you need to do is follow the steps and make sure you have each of the programs and files on your computer - you don't need to worry about doing anything with the files or programs once they're properly installed, just make sure you have them - later on in the guide you'll be told what to do with them.

  • Upvote 1
Link to comment
Share on other sites

Btw. you may have downloaded "wrong" boost. Im saying this because you are missing the lib* folder in the image.

You probably want the precompiled version instead of the plain source code. Otherwise you would need to compile boost before compiling TC.

Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...