On Thu, Oct 7, 2010 at 11:18 AM, Gunnar Zötl <[email protected]> wrote:
> my problem was with Tcl rather than lua, so it was actually tk/tcl.h vs.
> tcl.h, but I have also seen this with other libraries. This lua.h thing was
> just meant to be an example of how header files can lie at just slightly
> different positions on different systems.
Sure, I remember hitting that one. Here is the relevant frustration
from ltcltk-0.9-1.rockspec ;)
[[
-- does not work because at least on ubuntu tcl.h is in /usr/include/tk, whereas
-- everywhere else it seems to be in /usr/include. I found no way to
deal with this
-- in a civil manner, so I resort to a hack. Part 2 at the end of the file.
-- Bad thing is, I lose luarocks' dependency check :(
--external_dependencies = {
-- TCL = {
-- header = "tcl.h"
-- }
--}
]]
What if we could say?
header = {"tcl.h","tk/tcl.h"}
> I agree that the "burden" of hinting where to find stuff would be better
> placed on the module packager. I know that a lot of people using lua and lua
> modules on linux or Mac OS don't know the first thing about compiling, header
> files and such stuff.
Yes, especially now that even grannies are using Ubuntu. And synaptic
really lowers the barrier to entry - which is a good thing.
steve d.
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers