[luatex] Using a Lua C .so module with LuaLaTeX
luigi.scarso at gmail.com
Tue Nov 17 16:26:21 CET 2015
On Tue, Nov 17, 2015 at 4:05 PM, Deepak Jois <deepak.jois at gmail.com> wrote:
> On Tue, Nov 17, 2015 at 8:09 PM, luigi scarso <luigi.scarso at gmail.com>
> > good. To be sure:
> > if you
> > 1) comment these lines
> > if [ "$STRIP_LUATEX" = "FALSE" ]
> > then
> > export CFLAGS
> > export CXXFLAGS
> > fi
> > and
> > 2) modify
> > STRIP=strip
> > in
> > STRIP=strip -u -r
> > and run build.sh
> > then the osx binary loads the dso .
> I had to change
> STRIP="strip -u -r"
> (note the quotes)
> Once I do this, and compile normally (ie just running ./build.sh
> without any options), it does load the .so file successfully.
> $> ./build.sh
> $> du -sh build/texk/web2c/luatex
> 8.2M build/texk/web2c/luatex
> $> ~/code/personal/luatex/v-0.80/trunk/build/texk/web2c/luatex
> --luaonly test.lua
> > Are you sure that in this case the size is 12938864 bytes ?
> > I dont see why in linux we have 8MByte and in osx 13MByte .
> In which case?
> As you can see above, once I made the changes you asked, the binary
> size went down to 8.2M on my system, which seems consistent with how
> it is on Linux.
> ok, this is what I expect too. Can you send me your build.sh ?
Concerning obj-c : are you able to make a simple dso with obj-c to be
loaded with luatex ?
I suspect that 5.2 can have a seg. fault here.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the luatex