lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 3 November 2011 17:21, Mike Pall <mikelu-1111@mike.de> wrote:
> Michal Kottman wrote:
>> Done, too. However, I do not know what's happening - I still keep
>> getting NULL from the first call lua_open:
>>
>> ~/Code/gsl-shell (x64-build-fix)$ gdb ./gsl-shell
>> GNU gdb 6.3.50-20050815 (Apple version gdb-1700.2) (Thu May 19
>> 20:52:02 UTC 2011)
>
> http://luajit.org/install.html#embed

Thanks for the pointer, I have finally been able to make it work on
Mac OS X Lion (64bit) - I added -pagezero_size 10000 -image_base
100000000 to the linker flags.

Attached is a diff that made it work for me (I also tweaked the
include directories for agg, but they are not included, as they are in
my home folder :). I think it requires more testing for 32-bit builds.

Attachment: gsl-shell.macosx.patch
Description: Binary data