User Tools

Site Tools


compile tshark with custom lua

Linking with liblua failed.

lua: 5.1.4 wireshark: 1.12.2

1. download lua sources, download wireshark sources; 2. build shared library for lua Edit Makefile fo building You'll have to complete src/Makefile. Name the target, add it to the main list, and add a build rule, like this: 
  ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
  $(LUA_SO): $(CORE_O) $(LIB_O)
      $(CC) -o $@ -shared $?

Also in the main Makefile, have the shared library installed along with the static one:

  TO_LIB= liblua.a

3. run ./configure for wireshark with special flag for linker:

  LDFLAGS="-ldl" ./configure --disable-wireshark --with-lua=/usr/local/


original url:

wiki/blog/compile_tshark_with_custom_lua.txt · Last modified: 2019/01/05 13:04 by kpc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki