liblua54.so not found on linux arm and arm64
I'm trying to use this on .net 5 ,it seems no liblua54.so in path Debug\net5.0\runtimes\linux-arm\native and Debug\net5.0\runtimes\linux-arm64\native. when I run it on aarch64 GNU/Linux I got an error
is it possible to support arm?
and , I tried to compile https://github.com/NLua/lua.git and copy liblua54.so to target folder, it also throw an error
Hi @chenxuuu in theory building an aarch64 should be enough.
If you want to add instructions to cross-compile to aarch64 on Azure DevOps feel free to do it, I will happy to merge it
I built lua(repo) on that machine and moved liblua54.so to it's folder, it can run lua but behavior is very strange
such as abort with import("System")
print(11111111)
print(2222)
import("System")
print(DateTime.Now.Ticks)
print("end")
──> ./test
11111111
2222
[1] 3694 abort ./test
I have no idea🤔
Try to run tests and see what you get. I don't have a arm64 device to try :/
I built lua(repo) on that machine and moved liblua54.so to it's folder, it can run lua but behavior is very strange such as abort with
import("System")print(11111111) print(2222) import("System") print(DateTime.Now.Ticks) print("end")──> ./test 11111111 2222 [1] 3694 abort ./testI have no idea🤔
maybe this is another bug, I'll test this
Try to run KeraLua tests
- nuget restore KeraLua.sln
- msbuild KeraLua.sln /p:Configuration=Release /t:Restore
- msbuild KeraLua.sln /p:Configuration=Release
- dotnet test ./tests/build/net45/bin/Release/KeraLuaTest.dll
https://github.com/NLua/KeraLua/blob/master/.travis.yml#L19
Trying to get this running in dotnet core on Raspberry Pi.
When running the tests I get:
lua/test $ ../install/bin/lua all.lua
Starting Tests
random seeds: 1669504626, 29307220
current path:
/usr/local/share/lua/5.4/?.lua;/usr/local/share/lua/5.4/?/init.lua;/usr/local/lib/lua/5.4/?.lua;/usr/local/lib/lua/5.4/?/init.lua;./?.lua;./?/init.lua
---- total memory: 36.9K, max memory: 36.9K ----
time: 0.000142 (+0.000142)
***** FILE 'main.lua'*****
testing stand-alone interpreter
progname: ../install/bin/lua
Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
(temporary program file used in these tests: /tmp/lua_ezDFqI)
testing warnings
../install/bin/lua: main.lua:343: assertion failed!
stack traceback:
[C]: in function 'assert'in.lua:343: in main chunk
(...tail calls...)
all.lua:155: in main chunk
[C]: in ?