urs-of-the-backwoods / HGamer3D

A tool to use Haskell for game programming.
Other
42 stars 4 forks source link

Linux 64 bit not working #4

Closed urs-of-the-backwoods closed 10 years ago

urs-of-the-backwoods commented 10 years ago

HGamer3D Linux is not working (at least also not tested) on Linux 64 bit

deepfire commented 10 years ago

What is the way to debug that, for somebody who can run GDB/strace, but other than that has no experience in Haskell FFI debugging?

urs-of-the-backwoods commented 10 years ago

My assumption would be that somewhere in the process of creating bindings and compiling them there might be a 32/64 bit missmatch, but this is not secured it is just a vague idea. The process of going into the details of the bindings is pretty involved, some small hints here: http://www.hgamer3d.org/BindingToolchain.html.

Today I tried to start myself wth Ubuntu 14.04, 64 bit, but Ogre 1.8.1 does not compile on it (could not find Freetype although it is present). Working on it.

urs-of-the-backwoods commented 10 years ago

In branch "feature-64bit" you can find a fix, which makes Graphics3D and Ogre Bindings runnable on 64 bit ! Since it is not in the main branch and on hackage, you need to compile HGamer3D-Data and HGamer3D-Graphics3D manually, by entering the respective directories and applying scons. In additions the Ogre bindings needs to be re-build. It has been tested on Ubuntu 14.04 LTS 64 bit successfully. The BlueCube example works.

Note: the other bindings still needs to be tested.

How to debug: you can use ghci to debug HGamer3D. There are a few things to note, before this works:

With all that, you can debug in ghci with :trace, :list, :step and so on.