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

hello ive installed ZeroMQ 4.0.4

 

but i get these errors

 

Error    1    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\context.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\context.hpp    13    1    zmqpp
Error    2    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\frame.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\exception.hpp    14    1    zmqpp
Error    3    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\poller.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\exception.hpp    14    1    zmqpp
Error    4    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\message.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\exception.hpp    14    1    zmqpp
Error    5    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\zmqpp.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\zmqpp.hpp    51    1    zmqpp
Error    6    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\socket.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\context.hpp    13    1    zmqpp
Error    7    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\src\server\game\Handlers\CharacterHandler.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\compatibility.hpp    24    1    game
Error    8    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\src\server\game\Server\BattlenetServerManager.cpp)    C:\Users\Scape\Documents\Sources\TrinityCore-6.x\dep\zmqpp\zmqpp\zmqpp.hpp    51    1    game
Error    9    error C1083: Cannot open include file: 'zmq.h': No such file or directory (C:\Users\Scape\Documents\Sources\TrinityCore-6.x\src\server\game\Server\WorldSession.cpp)    c:\users\scape\documents\sources\trinitycore-6.x\dep\zmqpp\zmqpp\compatibility.hpp    24    1    game
Error    10    error LNK1181: cannot open input file '..\..\..\dep\zmqpp\Release\zmqpp.lib'    C:\Users\Scape\Documents\Sources\TrinityCore-6.x\build\src\server\bnetserver\LINK    bnetserver
Error    11    error LNK1181: cannot open input file '..\game\Release\game.lib'    C:\Users\Scape\Documents\Sources\TrinityCore-6.x\build\src\server\worldserver\LINK    worldserver

 

Link to comment
Share on other sites

  • 2 weeks later...
Can anyone help me with this problem with cmake ?

I searched the forum but found nothing like that, because when I realize cmake command it me back this error: 

my cmake log :

root@lion:/home/trinity/TrinityCore/build# cmake ../ -DCMAKE_INSTALL_PREFIX=/home/trinity/server
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/cc
-- GCC: Enabled c++11 support
-- GCC: Enabled C99 support
-- GCC: SFMT enabled, SSE2 flags forced
-- GCC: All warnings enabled
-- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
-- Found OpenSSL headers: /usr/include
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   program_options
--   iostreams
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Failed
-- Found Readline library: /usr/lib/x86_64-linux-gnu/libreadline.so
-- Include dir is: /usr/include
-- Found git binary : /usr/bin/git

* TrinityCore revision   : f4cb367c99d0+ 2015-09-14 16:20:48 -0300 (3.3.5 branch)
* TrinityCore buildtype  : Release

* Install core to        : /home/trinity/server
* Install libraries to   : /home/trinity/server/lib
* Install configs to     : /home/trinity/server/etc

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (default)
* Build Eluna LuaEngine   : Yes (default)
* Build map/vmap tools   : Yes
* Build core w/PCH       : Yes (default)
* Build scripts w/PCH    : Yes (default)
* Show all warnings      : Yes
* Use coreside debug     : No  (default)
* Show source tree       : No  (default)
* Use GIT revision hash  : Yes

-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql
-- SCRIPT PREPARATIONS
  -> Prepared: Spells
  -> Prepared: Commands
  -> Prepared: Custom
  -> Prepared: World
  -> Prepared: Outdoor PVP Zones
  -> Prepared: Eastern Kingdoms
  -> Prepared: Kalimdor
  -> Prepared: Outland
  -> Prepared: Northrend
  -> Prepared: Events
  -> Prepared: Pet
-- SCRIPT PREPARATION COMPLETE

-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Configuring done
CMake Error at src/server/scripts/CMakeLists.txt:138 (add_library):
  Cannot find source file:

    <<<<<<<

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/trinity/TrinityCore/build


thanks

Link to comment
Share on other sites

Thank you so much ! I was trying to accomplish this merge with Eluna , but did not succeed . know you how to build trinity core with Eluna ?

Try follow this guide: https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/INSTALL.md
At the top of it is also a link to how you can try merge if you need that.

If your merges fail, TC has done changes or you have some custom changes of your own that need to be manually fitted to the eluna core changes.
Eluna is a fork of TC. The default installation guide instructs to use Eluna repositories so you can easily pull the latest changes from us without having to do manual updating to fit latest TC yourself.
Otherwise some ingenuity and knowledge is needed to be able to fix merge conflicts and other.

Link to comment
Share on other sites

Im working on a x64 build, trying to generate binaries but i get stuck at this error.
 

The C compiler identification is MSVC 18.0.31101.0

The CXX compiler identification is MSVC 18.0.31101.0

Check for working C compiler using: Visual Studio 12 2013 Win64

Check for working C compiler using: Visual Studio 12 2013 Win64 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Check for working CXX compiler using: Visual Studio 12 2013 Win64

Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detecting CXX compile features

Detecting CXX compile features - done

Detected 64-bit platform

MSVC: 64-bit platform, enforced -D_WIN64 parameter

MSVC: Enabled increased number of sections in object files

MSVC: Overloaded standard names

MSVC: Disabled NON-SECURE warnings

MSVC: Disabled POSIX warnings

MSVC: Disabled generic compiletime warnings

Found OpenSSL library: optimized;C:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib

Found OpenSSL headers: C:/OpenSSL-Win64/include

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/CheckIncludeFiles.cmake:63 (configure_file):
configure_file attempted to configure a file:
C:/TrinityCore/TrinityCore/CMakeFiles/CMakeTmp/CheckIncludeFiles.c into a
source directory.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindThreads.cmake:123 (CHECK_INCLUDE_FILES)
CMakeLists.txt:60 (find_package)

 

Configuring incomplete, errors occurred!

See also "C:/TrinityCore/TrinityCore/CMakeFiles/CMakeOutput.log".



Not quite sure what this can mean but its very irittating lol. Is there something Im missing?

Edited by <T>
Link to comment
Share on other sites

Edit: Mods can lock this thread, solved on IRC. Second post contains workaround.

I found a locked thread bearing the same error message, but the problem this time isn't that I have the wrong version of Boost (vs2013 libs, trying to install with vs2015 as in the locked thread). I have the correct version of Boost (1_59_0_msvc-14.0-64)  and the environment variables are correctly configured. Error text from CMake log:

CMake Error at cmake/macros/FindBoost.cmake:1184 (message):
Unable to find the requested Boost libraries.

Boost version: 1.59.0

Boost include path: C:/Boost/boost_1_59_0

Could not find the following static Boost libraries:

boost_system
boost_filesystem
boost_thread
boost_program_options
boost_iostreams

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
cmake/macros/ConfigureBoost.cmake:32 (find_package)
CMakeLists.txt:62 (include)

 

I even tried renaming the directories in my boost install (they have no 'boost_' prefix by default) to no avail. 

Also, IRC is dead for the night so I figured I'd post here.

Any help is appreciated.

Edited by BuffetRaider
Link to comment
Share on other sites

Mods: This thread can be locked.

 

Solved over IRC with help from m3 and tkrokli. A workaround for this is to manually target each relevant library file in the CMake GUI as shown below. Make sure the "Grouped" and "Advanced" boxes are checked, then expand the Boost tree. Click on the Value field and a [...] icon should show up on the right to allow you to browse to the file.

 

Boost Error Solved.png

Edited by BuffetRaider
Link to comment
Share on other sites

Hello, Im trying to recompile it now but I guess its a issue in the core.

Error	1	error C2903: 'result' : symbol is neither a class template nor a function template (C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp)	C:\local\boost_1_55_0\boost\utility\result_of.hpp	186	1	game
Error	2	error C2039: 'result' : is not a member of 'TaxiPathGraph::GetCompleteNodeRoute::<lambda_1a595afb5d7a140e81519f471c226ce7>' (C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp)	C:\local\boost_1_55_0\boost\utility\result_of.hpp	186	1	game
Error	3	error C2504: 'result' : base class undefined (C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp)	C:\local\boost_1_55_0\boost\utility\result_of.hpp	186	1	game
Error	4	error C2143: syntax error : missing ',' before '<' (C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp)	C:\local\boost_1_55_0\boost\utility\result_of.hpp	186	1	game
Error	5	error C2783: 'boost::transform_value_property_map<Func,PM,Ret> boost::make_transform_value_property_map(const Func &,const PM &)' : could not deduce template argument for 'Ret'	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	6	error C2893: Failed to specialize function template 'boost::transform_value_property_map<Func,PM,boost::result_of<const Func(property_traits<PA>::reference)>::type> boost::make_transform_value_property_map(const Func &,const PM &)'	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	7	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,graph_traits<G>::vertex_descriptor,const boost::bgl_named_params<T,Tag,Base> &)' : expects 3 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	8	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,graph_traits<G>::vertex_descriptor,PredecessorMap,DistanceMap,WeightMap,IndexMap,Compare,Combine,DistInf,DistZero,DijkstraVisitor)' : expects 11 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	9	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,SourceInputIter,SourceInputIter,PredecessorMap,DistanceMap,WeightMap,IndexMap,Compare,Combine,DistInf,DistZero,DijkstraVisitor)' : expects 12 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	10	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,graph_traits<G>::vertex_descriptor,PredecessorMap,DistanceMap,WeightMap,IndexMap,Compare,Combine,DistInf,DistZero,DijkstraVisitor,ColorMap)' : expects 12 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	11	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,SourceInputIter,SourceInputIter,PredecessorMap,DistanceMap,WeightMap,IndexMap,Compare,Combine,DistInf,DistZero,DijkstraVisitor,ColorMap)' : expects 13 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	12	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,graph_traits<G>::vertex_descriptor,PredecessorMap,DistanceMap,WeightMap,IndexMap,Compare,Combine,DistInf,DistZero,DijkstraVisitor,const boost::bgl_named_params<T,Tag,Base> &,enable_if_c<(boost::is_base_and_derived<boost::vertex_list_graph_tag,boost::graph_traits<G>::traversal_category>::value,boost::graph::detail::no_parameter>::type)' : expects 13 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	13	error C2780: 'void boost::dijkstra_shortest_paths(const VertexListGraph &,SourceInputIter,SourceInputIter,PredecessorMap,DistanceMap,WeightMap,IndexMap,Compare,Combine,DistInf,DistZero,DijkstraVisitor,const boost::bgl_named_params<T,Tag,Base> &,enable_if_c<(boost::is_base_and_derived<boost::vertex_list_graph_tag,boost::graph_traits<G>::traversal_category>::value,boost::graph::detail::no_parameter>::type)' : expects 14 arguments - 2 provided	C:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	150	1	game
Error	14	error LNK1181: cannot open input file '..\game\Release\game.lib'	C:\TrinityBuild_6.1.2\src\server\worldserver\LINK	worldserver
	15	IntelliSense: no instance of overloaded function "boost::dijkstra_shortest_paths" matches the argument list
            argument types are: (TaxiPathGraph::Graph, TaxiPathGraph::vertex_descriptor, <error-type>)	c:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	146	9	game
	16	IntelliSense: no instance of overloaded function "boost::make_transform_value_property_map" matches the argument list
            argument types are: (unqualified_type, boost::adj_list_edge_property_map<boost::directed_tag, TaxiPathGraph::EdgeCost, TaxiPathGraph::EdgeCost &, size_t, boost::property<boost::edge_weight_t, TaxiPathGraph::EdgeCost, boost::no_property>, boost::edge_weight_t>)	c:\TrinitySource_6.1.2.1\src\server\game\Entities\Taxi\TaxiPathGraph.cpp	148	25	game

 

Link to comment
Share on other sites

Hi.

I'm using Windows 7 Ultimate 32bits.

Visual Studio 2015

Cmake 3.3.2

"I'm following the instalation guide exactly as it is. But when I going to specify the generator on Cmake (Visual studio 14 2015) I get the following error:

The C compiler identification is unknown

The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:12 (project):
No CMAKE_C_COMPILER could be found.


 

CMake Error at CMakeLists.txt:12 (project):
No CMAKE_CXX_COMPILER could be found.


 

Configuring incomplete, errors occurred!

See also "D:/Build/CMakeFiles/CMakeOutput.log".

See also "D:/Build/CMakeFiles/CMakeError.log".

 

 

The instalation guide says: If CMake do not recognize C/C++ compiler, choose Specific Native Compiler, and choose path to target vcvarsall.bat, e.g. C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat.

 

But I can't also find this "vcvarsall.bat." on my Microsoft Visual Studio 2015.

 

Thank you.

Edited by tritadez
Link to comment
Share on other sites

Hey "Nay".

Since you're have been so nice and I don't want to open another stupid tread.

I wonder if you could help me with something really embarassing.

I'm having techical dificulties on changing the console colors! I read tha auth.cfg and world.cfg and can't understand what it says about these color.

I just want to set color to the same example the file gives me: "13 11 9 5 3 1".

What should I type?

Thank you one more time.

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...