Solved Error when building vlc in freebsd 12

Hi all

i'm trying to build vlc from source and get this error:

Code:
checking for LUA... no
configure: WARNING: Package 'lua5.2', required by 'virtual:world', not found, trying lua 5.1 instead
checking for LUA... no
configure: WARNING: Package 'lua5.1', required by 'virtual:world', not found, trying lua >= 5.1 instead
checking for LUA... no
configure: WARNING: Package 'lua', required by 'virtual:world', not found, trying manual detection instead
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking lauxlib.h usability... no
checking lauxlib.h presence... no
checking for lauxlib.h... no
checking lualib.h usability... no
checking lualib.h presence... no
checking for lualib.h... no
checking for luaL_newstate in -llua5.2 ... no
checking for luaL_newstate in -llua5.1 ... no
checking for luaL_newstate in -llua51 ... no
checking for luaL_newstate in -llua ... no
configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

i have lua52 and lua51 installed.

i'm using freebsd 12 on virtualbox.
 
Hi all,
sorry to be late, i have vlc installed with pkg, but for developpement purpose i want to build it from source,(also for fun).

i found that in file configure it uses this command to search for lua:

Code:
  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5

which generate the error above, it should use the syntax "lua-5.2" instead.
 
The reason FreeBSD has a thing called "ports" is because source code often needs patches and specific library paths in order for the code to build cleanly. The name "ports" is directly related to a software engineering term called porting. By building the code from source you will have to do this "porting" process by hand.
 
Back
Top