fiddlerwoaroof / yinjar

YINJAR Is Not Just Another Roguelike
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

64bit Linux support #2

Closed camara-tech closed 12 years ago

camara-tech commented 12 years ago

I tried running yinjar on my Ubuntu 12.04 64bit system, and I received the error: "OSError: ./libtcod.so: wrong ELF class: ELFCLASS32" which means libtcod is compiled for a 32bit system. Below is the full traceback.

Traceback (most recent call last):
  File "main.py", line 4, in <module>
    import libtcodpy as libtcod
  File "/home/owner/Dropbox/Projects/yinjar/libtcodpy.py", line 47, in <module>
    _lib = ctypes.cdll['./libtcod.so']
  File "/usr/lib/python2.7/ctypes/__init__.py", line 440, in __getitem__
    return getattr(self, name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 435, in __getattr__
    dll = self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: ./libtcod.so: wrong ELF class: ELFCLASS32
fiddlerwoaroof commented 12 years ago

yeah, I have to figure out how to do that. Now, if it were Mac OSX, I could compile the file to have both the 32 and the 64 bit versions :).

On Thursday, July 26, 2012, italy-portugal wrote:

I tried running yinjar on my Ubuntu 12.04 64bit system, and I received the error: "OSError: ./libtcod.so: wrong ELF class: ELFCLASS32" which means libtcod is compiled for a 32bit system. Below is the full traceback.

Traceback (most recent call last):
  File "main.py", line 4, in <module>
    import libtcodpy as libtcod
  File "/home/owner/Dropbox/Projects/yinjar/libtcodpy.py", line 47, in
<module>
    _lib = ctypes.cdll['./libtcod.so']
  File "/usr/lib/python2.7/ctypes/__init__.py", line 440, in __getitem__
    return getattr(self, name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 435, in __getattr__
    dll = self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: ./libtcod.so: wrong ELF class: ELFCLASS32

Reply to this email directly or view it on GitHub: https://github.com/fiddlerwoaroof/yinjar/issues/2

fiddlerwoaroof commented 12 years ago

Jonathan, could you re-check it after running 'sh linux64.sh' on a newly downloaded zipfile?

camara-tech commented 12 years ago

I got the same error as before. I am going to make sure that the problem isn't with the library itself. I may need to recompile it for 64bit.

fiddlerwoaroof commented 12 years ago

could you and put them in the 64bit dir

fiddlerwoaroof commented 12 years ago

can you try manually replacing the files in the root directory with those in the 64bit one?

camara-tech commented 12 years ago

I actually did try that earlier and got the same error. I want to make sure that the error is repeatable before I try compiling the source.

fiddlerwoaroof commented 12 years ago

Ugh... Could you compile the SVN version? That's what I'm using on Mac

camara-tech commented 12 years ago

I pulled down just the zip file from bitbucket and it compiled successfully and everything worked.

fiddlerwoaroof commented 12 years ago

could you push it up?

camara-tech commented 12 years ago

I pulled the code using mercurial from bitbucket and recompiled, and everything works. I will put it into the 64bit folder like you had originally done.

fiddlerwoaroof commented 12 years ago

ok, thanks

camara-tech commented 12 years ago

alright it's uploaded, let me make sure it works. and then we can close this issue.

fiddlerwoaroof commented 12 years ago

I did some cleanup on my side, the files and directories: fonts images javascripts params.json index.html stylesheets seemed to have wandered in from the gh-pages branch

camara-tech commented 12 years ago

Testing is done, and I updated the Readme. This issue is closed

fiddlerwoaroof commented 12 years ago

Fixed by commit 9fd5348686a107db9f8e9e50cd0af12f44658bc2