You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great tool! I think this will work well for remote development from my Android phone. I had to do the following to get it compiled with Termux. Not sure if these can be worked into the build process but at least here it is for documentation purposes if anyone else has issues.
After installing lua with pkg install lua52, I had to remove the reference to LUA_MATH_LIBRARY in FindLua.cmake, similar to the Apple path. I just did this.
diff --git a/cmake/FindLua.cmake b/cmake/FindLua.cmake
index 6628209..8d2c1ae 100644
--- a/cmake/FindLua.cmake
+++ b/cmake/FindLua.cmake
@@ -94,7 +94,7 @@ IF(LUA_LIBRARY)
# include the math library for Unix
IF(UNIX AND NOT APPLE)
FIND_LIBRARY(LUA_MATH_LIBRARY m)
- SET( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
+ SET( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
Using liblua54 failed with the following message, no idea why, so I used lua 5.2 as mentioned above.
/data/data/com.termux/files/home/programs/lsyncd/lsyncd.c:1817:16: error: use of undeclared identifier 'facilitynames'
for( i = 0; facilitynames[ i ].c_name; i++ )
I don't see it defined anywhere in the code, maybe it is in some external library that doesn't exist on Termux or in a newer version of lua or something. To fix this I looked in the git history and resurrected the old definition of facilitynames:
There is i bug in lua 5.4.4 that causes a segfault when building the lua object code. I just reported the bug to the lua mailing list.
lua 5.3, 5.1 should work.
I will look into the facility names bug. This array is defined in syslog.c, but might be protected in some way.
Great tool! I think this will work well for remote development from my Android phone. I had to do the following to get it compiled with Termux. Not sure if these can be worked into the build process but at least here it is for documentation purposes if anyone else has issues.
pkg install lua52
, I had to remove the reference to LUA_MATH_LIBRARY in FindLua.cmake, similar to the Apple path. I just did this.make
I got the following error:I don't see it defined anywhere in the code, maybe it is in some external library that doesn't exist on Termux or in a newer version of lua or something. To fix this I looked in the git history and resurrected the old definition of
facilitynames
:The text was updated successfully, but these errors were encountered: