Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 10. Mai 2016 at 0:16 AM, diemail32 said:

The above parameters when combined into a full example :

 

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/<username>/server -DWITH_WARNINGS=1
 
Another Example Below:
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/wow/server -DCONF_DIR=/home/wow/server/etc -DTOOLS=1 -DWITH_WARNINGS=1

 

 

sry i don't understand.

When i wan't a normal "basic" installation what command i need to execute?

 

 

·      Configure CMake by doing
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/<username>/<server name> -DCONF_DIR=/home/<username>/<server name>/etc -DTOOLS=1 -DWITH_WARNINGS=1

·      Build the source. This process may take a few hours to complete; depends a lot on your hardware.
make

·      Finalizing the source
make install

Link to comment
Share on other sites

  • 3 weeks later...

Hello everyone, I'm getting this error when I'm generating the build from cmake. I have installed all the software which were told here https://trinitycore.atlassian.net/wiki/display/tc/Windows+Requirements

I am using win10 64bit.

Also i have put an CmakeOutput.log

Could someone guide me with this problem and what to do in order to be alower to generate the build of the source ? Thank you very much and have a nice day.

Error 1.bmp

Errors 2.bmp

CMakeOutput.log

Link to comment
Share on other sites

Every time I try to compile with make, It doesn't finish and gives me an error. I'm assuming I have to set a flag of some sort that has to do with the ISO 2011 C++ standard, but I am not sure how to do that with make. Here is the output from make

I am using ubuntu 15.10

wandelf@floyd:/home/TrinityCore/build$ make
[  9%] Built target g3dlib
[  9%] Built target Detour
[  9%] Built target Recast
[  9%] Built target cppformat
[  9%] Built target jemalloc
[  9%] Built target gsoap
[  9%] Built target mpq
[  9%] Built target revision_data.h
[  9%] Building CXX object src/common/CMakeFiles/common.dir/PrecompiledHeaders/commonPCH.cpp.o
In file included from /usr/include/c++/5/cinttypes:35:0,
                 from /home/TrinityCore/src/common/Define.h:44,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:1,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:1:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Define.h:145:9: error: ‘int64_t’ does not name a type
 typedef int64_t int64;
         ^
/home/TrinityCore/src/common/Define.h:146:9: error: ‘int32_t’ does not name a type
 typedef int32_t int32;
         ^
/home/TrinityCore/src/common/Define.h:147:9: error: ‘int16_t’ does not name a type
 typedef int16_t int16;
         ^
/home/TrinityCore/src/common/Define.h:148:9: error: ‘int8_t’ does not name a type
 typedef int8_t int8;
         ^
/home/TrinityCore/src/common/Define.h:149:9: error: ‘uint64_t’ does not name a type
 typedef uint64_t uint64;
         ^
/home/TrinityCore/src/common/Define.h:150:9: error: ‘uint32_t’ does not name a type
 typedef uint32_t uint32;
         ^
/home/TrinityCore/src/common/Define.h:151:9: error: ‘uint16_t’ does not name a type
 typedef uint16_t uint16;
         ^
/home/TrinityCore/src/common/Define.h:152:9: error: ‘uint8_t’ does not name a type
 typedef uint8_t uint8;
         ^
In file included from /home/TrinityCore/src/common/Common.h:53:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:2,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Threading/LockedQueue.h:29:10: error: ‘mutex’ in namespace ‘std’ does not name a type
     std::mutex _lock;
          ^
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘void LockedQueue<T, StorageType>::readd(Iterator, Iterator)’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:64:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:64:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:64:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘bool LockedQueue<T, StorageType>::next(T&)’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:71:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:71:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:71:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘bool LockedQueue<T, StorageType>::next(T&, Checker&)’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:85:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:85:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:85:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
In file included from /home/TrinityCore/src/common/Common.h:53:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:2,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘void LockedQueue<T, StorageType>::cancel()’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:114:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:114:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:114:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘bool LockedQueue<T, StorageType>::cancelled()’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:122:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:122:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:122:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘void LockedQueue<T, StorageType>::pop_front()’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:141:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:141:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:141:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
/home/TrinityCore/src/common/Threading/LockedQueue.h: In member function ‘bool LockedQueue<T, StorageType>::empty()’:
/home/TrinityCore/src/common/Threading/LockedQueue.h:148:9: error: ‘lock_guard’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:148:25: error: ‘mutex’ is not a member of ‘std’
         std::lock_guard<std::mutex> lock(_lock);
                         ^
/home/TrinityCore/src/common/Threading/LockedQueue.h:148:42: error: ‘_lock’ was not declared in this scope
         std::lock_guard<std::mutex> lock(_lock);
                                          ^
In file included from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:2:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Common.h: In function ‘long unsigned int atoul(const char*)’:
/home/TrinityCore/src/common/Common.h:91:67: error: ‘nullptr’ was not declared in this scope
 inline unsigned long atoul(char const* str) { return strtoul(str, nullptr, 10);
                                                                   ^
/home/TrinityCore/src/common/Common.h: In function ‘long long unsigned int atoull(const char*)’:
/home/TrinityCore/src/common/Common.h:92:74: error: ‘nullptr’ was not declared in this scope
 e unsigned long long atoull(char const* str) { return strtoull(str, nullptr, 10
                                                                     ^
In file included from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:2:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Common.h: At global scope:
/home/TrinityCore/src/common/Common.h:159:1: error: expected unqualified-id before ‘using’
 using Optional = boost::optional<T>;
 ^
/home/TrinityCore/src/common/Common.h:164:35: warning: variadic templates only available with -std=c++11 or -std=gnu++11
     template<typename T, typename ...Args>
                                   ^
/home/TrinityCore/src/common/Common.h:165:10: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
     std::unique_ptr<T> make_unique(Args&& ...args)
          ^
/home/TrinityCore/src/common/Common.h:176:12: error: ‘hash’ is not a class template
     struct hash<std::pair<K, V>>
            ^
/home/TrinityCore/src/common/Common.h:176:31: error: ‘>>’ should be ‘> >’ within a nested template argument list
     struct hash<std::pair<K, V>>
                               ^
In file included from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:3:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Collision/BoundingIntervalHierarchy.h:36:15: error: ‘uint32’ does not name a type
 static inline uint32 floatToRawIntBits(float f)
               ^
/home/TrinityCore/src/common/Collision/BoundingIntervalHierarchy.h:47:36: error: ‘intBitsToFloat’ declared as an ‘inline’ variable
 static inline float intBitsToFloat(uint32 i)
                                    ^
/home/TrinityCore/src/common/Collision/BoundingIntervalHierarchy.h:47:36: error: ‘uint32’ was not declared in this scope
/home/TrinityCore/src/common/Collision/BoundingIntervalHierarchy.h:47:36: note: suggested alternative:
In file included from /home/TrinityCore/dep/g3dlite/include/G3D/Vector3.h:19:0,
                 from /home/TrinityCore/src/common/Collision/BoundingIntervalHierarchy.h:22,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:3,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/dep/g3dlite/include/G3D/g3dmath.h:168:21: note:   ‘G3D::uint32’
 typedef uint32_t    uint32;
                     ^
In file included from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.h:3:0,
                 from /home/TrinityCore/src/common/PrecompiledHeaders/commonPCH.cpp:1:
/home/TrinityCore/src/common/Collision/BoundingIntervalHierarchy.h:48:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^
src/common/CMakeFiles/common.dir/build.make:54: recipe for target 'src/common/CMakeFiles/common.dir/PrecompiledHeaders/commonPCH.cpp.o' failed
make[2]: *** [src/common/CMakeFiles/common.dir/PrecompiledHeaders/commonPCH.cpp.o] Error 1
CMakeFiles/Makefile2:798: recipe for target 'src/common/CMakeFiles/common.dir/all' failed
make[1]: *** [src/common/CMakeFiles/common.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
 

Edited by wandelf
Link to comment
Share on other sites

To be honest I have no idea. This is my first time compiling pretty much anything. I just typed in cmake with some flags and then typed in make.

Edit: here is the cmake command I used. 

cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1
Edited by wandelf
Link to comment
Share on other sites

Output of gcc --version:

wandelf@floyd:/home/TrinityCore/build$ gcc --version
gcc (Ubuntu 5.3.1-14ubuntu2.1) 5.3.1 20160413
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 

also I retried it with the flags as you suggested and it still gives me errors

I switched install guides (to the new one), and I must have accidentally used the cmake from the old guide.
 

Edited by wandelf
Link to comment
Share on other sites

build/CMakeFiles/CMakeOutput.log".
root@nostalriusbr:/home/miguel/build# cmake ../ -DPREFIX=/home/`echo $USER`/server
-- Detected 64-bit platform
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/cc
CMake Error at cmake/compiler/gcc/settings.cmake:7 (message):
  GCC: MagicWoWCore 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!

 

 

System: Ubuntu 14.04
Version TDB 61

Link to comment
Share on other sites

Hi

I am trying to build a windows 32 bit core, my Cmake was successful, but when I try to compile I get 4 errors and the only files that appeared were the vmap4 assembler and extractor. 

The 4 errors are all the same:

811e435a9481510c4ef904e7f6200a69.png

I am not sure if it has been solved, I am sorry for wasting your time if it has.

Link to comment
Share on other sites

Hello all. o got the following errors: Cmake Error c1083 | Cannot open include file: 'pthread.h'

 

 

I am using windows10
VS 2013
i got openssl 32/64
Cmake 3.5.2
Trinity core 5.4



Errorlog:
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Users/donck_000/Desktop/aiyko_release_repack/Core/Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTC_3c545.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.31101.0

[Microsoft .NET Framework, version 4.0.30319.42000]

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 27/06/2016 17:05:41.

Project "C:\Users\donck_000\Desktop\aiyko_release_repack\C ore\Build\CMakeFiles\CMakeTmp\cmTC_3c545.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_3c545.dir\Debug".

Creating directory "C:\Users\donck_000\Desktop\aiyko_release_repack\C ore\Build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_3c545.dir\Debug\cmTC_3c545.tlog".

InitializeBuildStatus:

Creating "cmTC_3c545.dir\Debug\cmTC_3c545.tlog\unsuccessful build" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fptongue.gifrecise /Zc:wchar_t /Zc:forScope /Fo"cmTC_3c545.dir\Debug\" /Fd"cmTC_3c545.dir\Debug\vc120.pdb" /Gd /TC /wd4244 /wd4251 /wd4345 /wd4351 /wd4800 /wd4819 /errorReport:queue /Zm512 C:\Users\donck_000\Desktop\aiyko_release_repack\Co re\Build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64

Copyright (C) Microsoft Corporation. All rights reserved.



cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fptongue.gifrecise /Zc:wchar_t /Zc:forScope /Fo"cmTC_3c545.dir\Debug\" /Fd"cmTC_3c545.dir\Debug\vc120.pdb" /Gd /TC /wd4244 /wd4251 /wd4345 /wd4351 /wd4800 /wd4819 /errorReport:queue /Zm512 C:\Users\donck_000\Desktop\aiyko_release_repack\Co re\Build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



CheckIncludeFile.c

C:\Users\donck_000\Desktop\aiyko_release_repack\Co re\Build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\donck_000\Desktop\aiyko_release_repack\Co re\Build\CMakeFiles\CMakeTmp\cmTC_3c545.vcxproj]

Done Building Project "C:\Users\donck_000\Desktop\aiyko_release_repack\C ore\Build\CMakeFiles\CMakeTmp\cmTC_3c545.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\Users\donck_000\Desktop\aiyko_release_repack\C ore\Build\CMakeFiles\CMakeTmp\cmTC_3c545.vcxproj" (default target) (1) ->

(ClCompile target) -> 

C:\Users\donck_000\Desktop\aiyko_release_repack\Co re\Build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\donck_000\Desktop\aiyko_release_repack\Co re\Build\CMakeFiles\CMakeTmp\cmTC_3c545.vcxproj]



0 Warning(s)

1 Error(s)



Time Elapsed 00:00:00.23





Anyone know what to do to fix it?

Link to comment
Share on other sites

5 hours ago, Cosmos said:

Hello all. o got the following errors: Cmake Error c1083 | Cannot open include file: 'pthread.h'

I am using windows10
VS 2013
i got openssl 32/64
Cmake 3.5.2
Trinity core 5.4

Errorlog:
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Users/donck_000/Desktop/aiyko_release_repack/Core/Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTC_3c545.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.31101.0

[Microsoft .NET Framework, version 4.0.30319.42000]

Copyright (C) Microsoft Corporation. All rights reserved.

Anyone know what to do to fix it?

We don't suport wow 5.4.8.

Link to comment
Share on other sites

  • 2 weeks later...

someone help me with this error

 

CMake Error at cmake/options.cmake:19 (message):
  The value (1) of your SCRIPTS variable is invalid! Allowed values are:
  none;static;dynamic;minimal-static;minimal-dynamic
Call Stack (most recent call first):
  CMakeLists.txt:50 (include)

 

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...