Andres6936 / GoblinCamp

Goblin Camp aims to be a roguelike city builder with an emphasis on macromanaging the economy and military. I've drawn inspiration from games such as Anno 1404, Dwarf Fortress and Dungeon Keeper. Goblins camp is Dwarf Fortress-like game.
17 stars 2 forks source link

Can't build goblin camp: Source/Task/CMakeFiles/Goblin.Task.dir/build.make:82: Source/Task/CMakeFiles/Goblin.Task.dir/Job.cpp.o #6

Open systemdfan opened 2 years ago

systemdfan commented 2 years ago

I can't build goblin camp on linux.

[ 31%] Building CXX object Source/Task/CMakeFiles/Goblin.Task.dir/Job.cpp.o
In file included from /home/anon/git/GoblinCamp/Source/Task/Job.cpp:25:
/usr/include/boost/serialization/list.hpp: In function ‘void boost::serialization::load(Archive&, std::__cxx11::list<_ValT, _Allocator>&, unsigned int)’:
/usr/include/boost/serialization/list.hpp:53:33: error: ‘library_version_type’ in namespace ‘boost::serialization’ does not name a type; did you mean ‘item_version_type’?
   53 |     const boost::serialization::library_version_type library_version(
      |                                 ^~~~~~~~~~~~~~~~~~~~
      |                                 item_version_type
/usr/include/boost/serialization/list.hpp:60:30: error: ‘library_version_type’ is not a member of ‘boost::serialization’; did you mean ‘item_version_type’?
   60 |     if(boost::serialization::library_version_type(3) < library_version){
      |                              ^~~~~~~~~~~~~~~~~~~~
      |                              item_version_type
/usr/include/boost/serialization/list.hpp:60:56: error: ‘library_version’ was not declared in this scope
   60 |     if(boost::serialization::library_version_type(3) < library_version){
      |                                                        ^~~~~~~~~~~~~~~
In file included from /home/anon/git/GoblinCamp/Include/Goblin/Entity/Entity.hpp:26,
                 from /home/anon/git/GoblinCamp/Include/Goblin/Mechanism/Construction.hpp:27,
                 from /home/anon/git/GoblinCamp/Include/Goblin/Task/Job.hpp:27,
                 from /home/anon/git/GoblinCamp/Source/Task/Job.cpp:28:
Andres6936 commented 2 years ago

Which version of Boost do you have installed? The version needed to compile this project is Boost 55 (A bit old, I'm trying to remove this dependency).

systemdfan commented 2 years ago

@Andres6936 I have installed libboost-all-dev 1.74.0.3. In order to build GC I have used simple way (cmake + make) without debootstrap, because debootstrap isn't working and debian jessie isn't supported anymore. Btw, I use devuan 4 (chimaera) that is associated as debian 11 bullseye.

Andres6936 commented 2 years ago

How feasible is it for you to try to compile it with Boost version 64 - 66 ?