gdtk-uq/gdtk

shared library missing from eilmer deployment of lua

Closed this issue · 3 comments

When trying to use external libraries with lua that use the C API, the liblua.so is required. This isn't currently built with the eilmer deployment of lua. It may be useful to include this in the lua external library directory. I've managed to cobble something together that gets gdtk to create liblua.so but it leads to failures when compiling the rest e.g eilmer. For now I've just copied liblua.so in and it runs fine for my purposes but could be a nice feature if it isn't too painful to implement.

Hi Kyri,

We should be able to include it in the build of the gas library. Can you post the actual compile commands that you need?

Hi Nick,

the solution I found works fine for my own lua deployment. Changes made to the lua makefile in the root directory and the src directory have the commands in them that lead to building the shared library library file.

For root makefile (see https://gist.github.com/dcarrith/899047f3a2d603b25a58)

For src/makefile (see https://gist.github.com/dcarrith/6095183b8dc60c909779)

When used with the gdtk deployment of lua it crashes the install.

Just to follow up
The shared library work around I posted works to the point of creating the shared library object but crashes the remainder of the build. I just copied the shared library object back in after the build without the hack.

I didn't actually need the shared library so I ended up linking against the static library and my external stuff works fine.