On Aug 2, 2016, at 12:41 PM, Hisham <hisham...@gmail.com<mailto:hisham...@gmail.com>> wrote:
On Aug 2, 2016 13:12, "Chen, David (NIH/NLM/LHC) [C]" <dc...@mail.nih.gov<mailto:dc...@mail.nih.gov>> wrote: > > Hello. > > I’ve been working on a rockspec for SimpleITK, which is a interface to ITK, a > toolkit for image segmentation and registration. You can see my rockspec on > github here: > > https://github.com/SimpleITK/SimpleITKLuaRock > > > As it stands now, I can use luarocks to build SimpleITK like so: > > => luarocks make --local simpleitk-0.10-0.rockspec > > That command works without problem. However when I tried to do an install, I > get at error as showed below: > > => luarocks install --local simpleitk-0.10-0.rockspec > Using simpleitk-0.10-0.rockspec... switching to 'build' mode > > Error: Directory SimpleITKLuaRock not found inside archive > SimpleITKLuaRock.git > > > Do you know what I’m doing wrong? In source.url, use "git://github.com/SimpleITK/SimpleITKLuaRock<http://github.com/SimpleITK/SimpleITKLuaRock>" instead of "https://github.com/SimpleITK/SimpleITKLuaRock.git". This should fix it! > Also I’d appreciate any other input on this module. Note that if you try and > build SimpleITK, it is a large project that incorporates a number of other > projects. So I would only attempt to build it on a multicore system with a > decent amount of RAM. Also I’d set MAKEFLAGS to “-j8” or however many cores > you have. The rockspec uses a CMake build, so it will only build on Linux or > OS X. Does this build a self-contained module that links all necessary libraries statically? If it doesn't, it would be more advisable to have the rockspec build only the Lua module and specify any other dependencies of the library as external_dependencies. Yes, the SimpleITK module I build is completely self contained. When it builds SimpleITK it also builds the ITK libraries statically. Everything gets linked into SimpleITK.so, which does not need anything else.
------------------------------------------------------------------------------
_______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers