lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thank you! I resolved it by patch the Makefile to build lublua.so

On Mon, Dec 7, 2020 at 7:48 PM Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:
>>>>> "Ricky" == Ricky Wu <rickywu1113@gmail.com> writes:

 Ricky> I install Lua by this

 Ricky>     && curl -R -O http://www.lua.org/ftp/lua-5.4.1.tar.gz \
 Ricky>     && tar zxf lua-5.4.1.tar.gz \
 Ricky>     && cd lua-5.4.1 \
 Ricky>     && make MYCFLAGS="-fPIC" linux \
 Ricky>     && make install \

The stock Lua distribution does not build a shared library, but most
packaged distributions for linux or other unix-like OSes do build one.
It is clear that the vis author expected to use a shared library.

 Ricky> But if I add liblua.so in Makefile of Lua as TO_LIB= liblua.a
 Ricky> liblua.so got:

That's not enough, you have to arrange to actually build it, including
using -fPIC.

--
Andrew.


--
______________________________________
http://richiewu.is-programmer.com
Ricky J. Ng