adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] compilation & test problems


From: Michał Kaliński
Subject: [Adonthell-devel] compilation & test problems
Date: Mon, 11 Jul 2011 13:58:46 +0200

Hi.

While trying to compile adonthell on a x86_64 Fedora 15 machine I run
into the following error:

---
In file included from
/usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/list:64:0,
                 from /home/MK/Compileable/adonthell/src/gfx/drawing_area.h:37,
                 from /home/MK/Compileable/adonthell/src/gui/decoration.h:33,
                 from /home/MK/Compileable/adonthell/src/gui/decoration.cc:26:
/usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/bits/stl_list.h:105:32:
error: reference to ‘__detail’ is ambiguous
/usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/bits/stl_list.h:66:3:
error: candidates are: namespace std::__detail { }
/usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../../include/c++/4.6.0/tr1/hashtable_policy.h:36:1:
error:                 namespace std::tr1::__detail { }
---

I found that the error pops up whenever "base/hash_map.h" is included
before <list>, because of the line "namespace std { using namespace
tr1; }" in hash_map.h.
So I worked around that by modifying lines 35-38 in hash_map.h like that:

---
#define hash_map tr1::unordered_map
#define hash_set tr1::unordered_set

namespace std { using tr1::hash; }
---

The "using tr1::hash" is there, because an error saying "hash is not a
member of std" popped when I commented out the offending line.
Still, I'm not sure if that is an acceptable solution for you.

By the way, is it possible to force cmake to install python modules
with a given prefix and not in the default python directory? I'd like
to be able to make install without root privileges.

After compilation and installation, I tried to run worldtest as per
instructions on the site, but it didn't quite work:
---
$ test/worldtest -g ../adonthell/test/data/
E0710 22:15:39.068200 18285 screen.cc:132] *** info: Set internal view
to 683 x 384.
E0710 22:15:39.068614 18285 screen.cc:133] *** info: Set display size
to 1366 x 768.
E0710 22:15:39.068703 18285 savegame.cc:300] *** savegame::get: slot
-3 out of range [-3, 4294967293[.
E0710 22:15:39.068749 18285 worldtest.cc:155] No map loaded, exiting
---

Any ideas what could be wrong?

Michal



reply via email to

[Prev in Thread] Current Thread [Next in Thread]