modu_lua compile error in freebsd
Hello, I am trying to compile freeswitch in freebsd. The lua package is installed on my system, but still freeswitch is unable to find -llua. Installed lua52 package #pkg info -l lua52 lua52-5.2.4: /usr/local/bin/lua52 /usr/local/bin/luac52 /usr/local/include/lua52/lauxlib.h /usr/local/include/lua52/lua.h /usr/local/include/lua52/lua.hpp /usr/local/include/lua52/luaconf.h /usr/local/include/lua52/lualib.h /usr/local/lib/liblua-5.2.a /usr/local/lib/liblua-5.2.so /usr/local/libdata/pkgconfig/lua-5.2.pc /usr/local/man/man1/lua52.1.gz /usr/local/man/man1/luac52.1.gz /usr/local/share/licenses/lua52-5.2.4/LICENSE /usr/local/share/licenses/lua52-5.2.4/MIT /usr/local/share/licenses/lua52-5.2.4/catalog.mk Compile flags have been set #echo $CPPFLAGS -I/usr/local/include/lua52 # echo $LDFLAGS -L/usr/local/lib -R/usr/local/lib Compile error gmake[4]: Entering directory '/src/freeswitch/src/mod/languages/mod_lua' CXXLD mod_lua.la /usr/bin/ld: cannot find -llua Makefile:761: recipe for target 'mod_lua.la' failed gmake[4]: *** [mod_lua.la] Error 1 gmake[4]: Leaving directory '/src/freeswitch/src/mod/languages/mod_lua' Makefile:650: recipe for target 'mod_lua-all' failed gmake[3]: *** [mod_lua-all] Error 1 gmake[3]: Leaving directory '/src/freeswitch/src/mod' Makefile:562: recipe for target 'all-recursive' failed gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory '/src/freeswitch/src' Makefile:2652: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/src/freeswitch' Makefile:1063: recipe for target 'all' failed gmake: *** [all] Error 2 anything i maybe missing? Thanks
try setting path for pkg-config On Thursday, June 25, 2015, Rajil Saraswat <rajil.s@gmail.com> wrote:
Hello,
I am trying to compile freeswitch in freebsd. The lua package is installed on my system, but still freeswitch is unable to find -llua.
Installed lua52 package #pkg info -l lua52 lua52-5.2.4: /usr/local/bin/lua52 /usr/local/bin/luac52 /usr/local/include/lua52/lauxlib.h /usr/local/include/lua52/lua.h /usr/local/include/lua52/lua.hpp /usr/local/include/lua52/luaconf.h /usr/local/include/lua52/lualib.h /usr/local/lib/liblua-5.2.a /usr/local/lib/liblua-5.2.so /usr/local/libdata/pkgconfig/lua-5.2.pc /usr/local/man/man1/lua52.1.gz /usr/local/man/man1/luac52.1.gz /usr/local/share/licenses/lua52-5.2.4/LICENSE /usr/local/share/licenses/lua52-5.2.4/MIT /usr/local/share/licenses/lua52-5.2.4/catalog.mk
Compile flags have been set #echo $CPPFLAGS -I/usr/local/include/lua52 # echo $LDFLAGS -L/usr/local/lib -R/usr/local/lib
Compile error gmake[4]: Entering directory '/src/freeswitch/src/mod/languages/mod_lua' CXXLD mod_lua.la /usr/bin/ld: cannot find -llua Makefile:761: recipe for target 'mod_lua.la' failed gmake[4]: *** [mod_lua.la] Error 1 gmake[4]: Leaving directory '/src/freeswitch/src/mod/languages/mod_lua' Makefile:650: recipe for target 'mod_lua-all' failed gmake[3]: *** [mod_lua-all] Error 1 gmake[3]: Leaving directory '/src/freeswitch/src/mod' Makefile:562: recipe for target 'all-recursive' failed gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory '/src/freeswitch/src' Makefile:2652: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/src/freeswitch' Makefile:1063: recipe for target 'all' failed gmake: *** [all] Error 2
anything i maybe missing?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:;> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You should not need to do this, providing a PKG_CONFIG_PATH to point to the location of the .pc file should fix this.
On Jun 26, 2015, at 1:44 PM, Rajil Saraswat <rajil.s@gmail.com> wrote:
On Jun 25, 2015 7:10 AM, "Michael Jerris" <mike@jerris.com <mailto:mike@jerris.com>> wrote:
try setting path for pkg-config
Thanks after modifying the configure script to -llua-5.2 from -llua the compile was successful.
participants (2)
-
Michael Jerris
-
Rajil Saraswat