Replies: 3 comments 6 replies
-
What exactly do you want to achieve - build port sol2 with luajit instead of lua? vcpkg can't deal well with alternatives. There is a number of obstacles.
Maybe it is possible to create an overlay port for the |
Beta Was this translation helpful? Give feedback.
-
Wait, sol2 is header-only. The lua dependency is declared only for Windows. |
Beta Was this translation helpful? Give feedback.
-
Here is my vcpkg.json file that works
And here the cmake/findluajit.cmake file to support find_package of luajit https://github.com/yhyu13/HLVM-Engine/blob/d9e08c9b6fe6a3917f22626ce9e068457ff1c851/Engine/Source/Common/cmake/Findluajit.cmake And all you need to do is include
1, But one caveat thing is that luajit is not automatically enabled when used by sol2 (even compiled with laujit) You need to open ffi and jit to enable luajit with sol2
2, Another issue is that you must link with dynamic lib in order to load C Modules |
Beta Was this translation helpful? Give feedback.
-
PR #5863, motivated by #4019 moved LuaJIT headers to its own directory, i.e.
luajit/lua.h
, but sol2 searches for Lua and LuaJIT headers atlua.h
. How do I use these together now? I think the headers should never have been moved as LuaJIT is a drop-in replacement for Lua, so it makes sense you can't install them both at the same time.Beta Was this translation helpful? Give feedback.
All reactions