lua-carbon / hexane

Game development libraries for games in pure LuaJIT
9 stars 0 forks source link

debian jessie not starting #3

Open subject546 opened 9 years ago

subject546 commented 9 years ago

hi, i would like to try hexane but it doesn't work... when i try to start the sample.clua script in the root directoy i get the following message $ luajit sample.clua luajit: sample.clua:218: function arguments expected near '!'

when i run the .lua script in the hexane folder i get this: $ luajit .lua luajit: .lua:11: attempt to index local 'libHexane' (a nil value) stack traceback: .lua:11: in main chunk [C]: at 0x00404d50

the init.lua in the hexane folder does work... i think it doesn't have any output (also no errors)

i installed glfw as followig: $ sudo apt-get install libglfw3 libglfw3-dev libglfw-doc

i have not done anythin with the stb libary becouse it is included

LPGhatguy commented 9 years ago

You'll need to compile the libhexane directory's contents to a shared library. It's used for loading images.

It seems a bit silly now, but I guess I never included a compiled version of the sample file (sample.clua) which is what you'd want to be running.

You should be able to install Callisto 1.2 and then run callisto -e sample.clua to get the sample to run.

subject546 commented 9 years ago

well... would you like to explain to me how i should 'compile the libhexane directory's contents to a shared library'... i'm still kindof a noob when it comes to compiling..

LPGhatguy commented 9 years ago

I'm not sure how you'd do it on a Debian system, and I don't have an image up that I can use to build a makefile for you on. It should be just a few arguments to gcc, since it's just a single file.

subject546 commented 9 years ago

ah i figgured out how to compile a shared lib i think... i followed this guide... (step 1+ 2) do i have to do step 3 + 4 to?

now i just need to work the callisto..