osrm-backend: luabind check doesn't find 5.2

With the new luabind check in dev branch, compilation fails with:

-- Looking for Luabind...
-- Found Luabind: /usr/lib/libluabind.so  
-- Found Luabind: /usr/lib/libluabind.so
-- Found Lua52: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so  
-- Looking for LuaJIT 5.2
-- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR) 
-- Performing Test LUABIND_WORKS
-- Performing Test LUABIND_WORKS - Failed
-- Luabind/Lua5.2 not feasible, falling back to Lua 5.1.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find Lua51 (missing: LUA_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindLua51.cmake:76 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/check_luabind.cmake:24 (find_package)
  CMakeLists.txt:229 (include)

If I check out the commit before the new luabind check was introduced, b1bbf2ef8412baea127c23f5fa029ffe397c552d, compilation works:

-- Found Lua52: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so  
-- Looking for LuaJIT 5.2
-- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR) 
-- Looking for Luabind...
-- Found Luabind: /usr/lib/libluabind.so  
-- Found Luabind: /usr/lib/libluabind.so
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.1") 
...

The resulting binaries work as expected when compiling this older version.

Ping @alex85k.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I’m running ubuntu server 14.04. Lua has been installed with:

apt-get install install lua5.2 liblua5.2-dev libluabind-dev

Lua packages installed:

dpkg --get-selections | grep lua
liblua5.2-0:amd64               install
liblua5.2-dev:amd64             install
libluabind-dev                  install
libluabind0.9.1                 install
libluajit-5.1-2:amd64               deinstall
lua5.2                      install