0

我不得不努力让这个图书馆运行。我可以导入它并且 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
4

0 回答 0