[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lpeg load error: undefined symbol: lua_gettop
- From: Andrew Gierth <andrew@...>
- Date: Mon, 07 Dec 2020 11:47:34 +0000
>>>>> "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.