udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

Build Failure #239

Closed dxprog closed 12 years ago

dxprog commented 12 years ago

Error message from "make c10t":

In file included from /home/matt/c10t/src/c10t/src/mc/world.hpp:13, from /home/matt/c10t/src/c10t/src/engine/engine_base.hpp:9, from /home/matt/c10t/src/c10t/src/engine/isometric_base.hpp:4, from /home/matt/c10t/src/c10t/src/engine/isometric_base.cpp:1: /home/matt/c10t/src/c10t/src/fileutils.hpp: In function âstd::string path_string(boost::filesystem::path)â: /home/matt/c10t/src/c10t/src/fileutils.hpp:17: error: conversion from âboost::filesystem::pathâ to non-scalar type âstd::stringâ requested make[3]: * [src/engine/CMakeFiles/c10t-engine.dir/isometric_base.cpp.o] Error 1 make[2]: * [src/engine/CMakeFiles/c10t-engine.dir/all] Error 2 make[1]: * [CMakeFiles/c10t.dir/rule] Error 2 make: * [c10t] Error 2

System info: Debian Squeeze - kernel 2.6.32-5-amd64 libbost 1.42 cmake 2.8.7 Repository cloned on 2012/02/01

uap-universe commented 12 years ago

Please try again with a libboost version of at least 1.46. There has changed something in the boost API that causes this error.

We should change the requirements info in the README. I think the new filesystem API came with libboost 1.44 but in the README it says something like >= 1.40.

jheiv commented 12 years ago

I had the same error with libboost1.44 (#define BOOST_VERSION 104400) and was able to override the version logic by changing

#if BOOST_FSv2

to

#if 0

in ./src/fileutils.hpp so that it would force the path.string() branch. Doing this allowed me to compile without issue.

uap-universe commented 12 years ago

That's why libboost 1.46 is required by now. You may try again with 1.46 - please reopen this issue if it still does not work with boost 1.46.

oddstr13 commented 12 years ago

I got this error too. I did as jheiv suggested, then it compiled, and ran fine can't see why 1.46 is required

c10t --version version: git 8e9f550, built on Feb 6 2012

libboost1.42-dev

$ uname -a Linux minecraft 2.6.32-5-amd64 #1 SMP Fri Sep 9 20:23:16 UTC 2011 x86_64 GNU/Linux

Edit: Distro: Debian 6 (squeeze)