danielga / gm_stringtable

A module for Garry's Mod that provides interfaces to interact with stringtables from VALVe's engine.
https://github.com/danielga/gm_stringtable
Other
9 stars 2 forks source link

Prebuilt linux binary not working #6

Closed xaviergmail closed 4 years ago

xaviergmail commented 4 years ago
lua require "stringtable2"
addons/xlib/lua/xlib_extended/sh_devcommand.lua:71: error loading module 'stringtable2' from file 'gmsv_stringtable2_linux.dll':
/home/container/garrysmod/lua/bin/gmsv_stringtable2_linux.dll: undefined symbol: _ZN12SymbolFinder7ResolveEPKvPKcjS1_
stack traceback:
[C]: in function 'error'
lua/includes/modules/require.lua:65: in function 'searcher'
lua/includes/modules/require.lua:148: in function <lua/includes/modules/require.lua:131>
[C]: in function 'xpcall'
addons/xlib/lua/xlib_extended/sh_devcommand.lua:71: in function 'fn'
addons/xlib/lua/xlib_extended/sh_devcommand.lua:96: in function <addons/xlib/lua/xlib_extended/sh_devcommand.lua:93>
lua/includes/modules/concommand.lua:54: in function <lua/includes/modules/concommand.lua:49>

I solved this by adding IncludeScanning() to the premake workspace and recompiling

danielga commented 4 years ago

This is a bug in garrysmod_common. helpers_extended uses utilities from the scanning module but doesn't actually include it. Working on a fix for it.

danielga commented 4 years ago

Here's the (hopefully) fixed build.