building luatex with external lua headers/libs
Hi Taco!
First of all, thanks for the rework of the zzlib stuff, now it is easy
to compile luatex with external zlib libs/headers.
Now there is the wish that we compile luatex also with the external lua
(5.1) libs/headers.
Ok, I tried it, but it doesn't work. My first try on Debian was to
replace all references in the source code to
../../lua51/
to
lua5.1
because the header files are found here in /usr/include/lua5.1
This worked out quite well (for luatex-api.c), but it stumbled at
lua/texluac.c
where you try to load several header files which are NOT shipped in our
lua51 devel packages. I took a look into the original source and there
is written:
If you want to install Lua locally, then do "make local". This will
create directories bin, include, lib, man, and install Lua there as
follows:
bin: lua luac
include: lua.h luaconf.h lualib.h lauxlib.h lua.hpp
lib: liblua.a
man/man1: lua.1 luac.1
These are the only directories you need for development.
So it seems that you use more than they assumed to be useful.
Now the simple question: Do you plan to change this, is there a
realistic chance that this can be achieved?
(Note that is the start, next are all the other libs ;-)
In any case thanks a lot and all the best
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
Norbert Preining wrote:
Hi Taco!
First of all, thanks for the rework of the zzlib stuff, now it is easy to compile luatex with external zlib libs/headers.
Now there is the wish that we compile luatex also with the external lua (5.1) libs/headers.
You can't, and shouldn't. I am not using a not-quite stock lua51. Best wishes, Taco
On Do, 27 Sep 2007, Taco Hoekwater wrote:
(5.1) libs/headers.
You can't, and shouldn't. I am not using a not-quite stock lua51.
Ah, good to hear. So you did patch the lua51, too. I didn't know that.
Thanks for pointing this out.
So I assume it is the same with the other luaXXXXX libs.
Well, thanks for the quick feedback.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
Norbert Preining wrote:
On Do, 27 Sep 2007, Taco Hoekwater wrote:
(5.1) libs/headers. You can't, and shouldn't. I am not using a not-quite stock lua51.
Ah, good to hear. So you did patch the lua51, too. I didn't know that. Thanks for pointing this out.
The main reason is that stock lua believes that all text files use the native line ending. That is a big nono in TeX land, where files are often transported to and fro (networked) machines.
So I assume it is the same with the other luaXXXXX libs.
Yes, you are limited to just zziplib and the set of libraries that are also used by pdftex (for now). The other stuff is either modified by me or not really a dynamic library at all. Best wishes, Taco
Taco Hoekwater
Norbert Preining wrote:
Hi Taco!
First of all, thanks for the rework of the zzlib stuff, now it is easy to compile luatex with external zlib libs/headers.
Now there is the wish that we compile luatex also with the external lua (5.1) libs/headers.
You can't, and shouldn't. I am not using a not-quite stock lua51.
I bet you _are_... -- David Kastrup
participants (3)
-
David Kastrup
-
Norbert Preining
-
Taco Hoekwater