我必须努力让这个图书馆运行起来。我可以导入它,samples_cpp工作正常。但是当我运行我的roguelike时,我收到了这个错误:
> python main.py
Traceback (most recent call last):
File "main.py", line 3, in <module>
import libtcodpy as libtcod
File "/home/slumking/Documents/Python/scripts/hm_game-master/libtcodpy.py", line 479, in <module>
_lib.TCOD_console_has_mouse_focus.restype = c_bool
File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: ./libtcod.so: undefined symbol: TCOD_console_has_mouse_focus